|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.page.AbstractPageManager
org.apache.jetspeed.page.DelegatingPageManager
public class DelegatingPageManager
DelegatingPageManager
Field Summary |
---|
Fields inherited from interface org.apache.jetspeed.page.PageManager |
---|
SERVICE_NAME |
Constructor Summary | |
---|---|
DelegatingPageManager(boolean isPermissionsSecurity,
boolean isConstraintsSecurity,
java.util.Map modelClasses)
|
Method Summary | |
---|---|
int |
addPages(Page[] pages)
|
boolean |
checkConstraint(java.lang.String securityConstraintName,
java.lang.String actions)
For a given security constraint definition name, and the given action(s), make a constraint check for the current user subject |
NodeSet |
getAll(Folder folder)
getAll |
ContentPage |
getContentPage(java.lang.String path)
ContentPage |
Folder |
getFolder(Folder folder,
java.lang.String name)
getFolder |
Folder |
getFolder(java.lang.String folderPath)
getFolder |
NodeSet |
getFolders(Folder folder)
getFolders |
Link |
getLink(Folder folder,
java.lang.String name)
getLink |
Link |
getLink(java.lang.String name)
getLink |
NodeSet |
getLinks(Folder folder)
getLinks |
Page |
getPage(Folder folder,
java.lang.String name)
getPage |
Page |
getPage(java.lang.String id)
getPage |
NodeSet |
getPages(Folder folder)
getPages |
PageSecurity |
getPageSecurity()
getPageSecurity |
PageSecurity |
getPageSecurity(Folder folder)
getPageSecurity |
void |
removeFolder(Folder folder)
Remove a folder. |
void |
removeLink(Link link)
Remove a link. |
void |
removePage(Page page)
Remove a document. |
void |
removePageSecurity(PageSecurity pageSecurity)
Remove a page security document. |
void |
updateFolder(Folder folder)
Update a folder and all child folders and documents in persistent storage |
void |
updateFolder(Folder folder,
boolean deep)
Update a folder in persistent storage |
void |
updateLink(Link link)
Update a link in persistent storage |
void |
updatePage(Page page)
Update a page in persistent storage |
void |
updatePageSecurity(PageSecurity pageSecurity)
Update a page security document in persistent storage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingPageManager(boolean isPermissionsSecurity, boolean isConstraintsSecurity, java.util.Map modelClasses)
Method Detail |
---|
public Page getPage(java.lang.String id) throws PageNotFoundException, NodeException
PageManager
getPage
Returns a Page based on its path
PageNotFoundException
- if the page cannot be found
NodeException
public ContentPage getContentPage(java.lang.String path) throws PageNotFoundException, NodeException
PageManager
ContentPage
Returns a PSML document suitable for use in content rendering, for the given key
PageNotFoundException
- if the page cannot be found
NodeException
ContentPage
,
Fragment
public Link getLink(java.lang.String name) throws DocumentNotFoundException, UnsupportedDocumentTypeException, NodeException
PageManager
getLink
Returns a Link document for the given path
name
- The path of the document to be retrieved.
PageNotFoundException
- if the page cannot be found
NodeException
DocumentNotFoundException
UnsupportedDocumentTypeException
public PageSecurity getPageSecurity() throws DocumentNotFoundException, UnsupportedDocumentTypeException, NodeException
PageManager
getPageSecurity
Returns the PageSecurity document
DocumentNotFoundException
- if the document cannot be found
UnsupportedDocumentTypeException
NodeException
public boolean checkConstraint(java.lang.String securityConstraintName, java.lang.String actions)
PageManager
securityConstraintName
- the name of the security constraint definitionactions
- one or more portlet actions (view,edit,help,..)
public Folder getFolder(java.lang.String folderPath) throws FolderNotFoundException, InvalidFolderException, NodeException
PageManager
getFolder
Locates a folder for the given path.
Folder
object represented by the folderPath
FolderNotFoundException
InvalidFolderException
NodeException
public NodeSet getFolders(Folder folder) throws DocumentException
PageManager
getFolders
Locates folders within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.
NodeSet
containing all sub-folders
directly under this folder.
DocumentException
org.apache.jetspeed.om.folder.Folder#getFolders(org.apache.jetspeed.om.folder.Folder)
public Folder getFolder(Folder folder, java.lang.String name) throws FolderNotFoundException, DocumentException
PageManager
getFolder
Locates folders within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.name
- The name of folder to retrieve.
FolderNotFoundException
DocumentException
org.apache.jetspeed.om.folder.Folder#getFolder(org.apache.jetspeed.om.folder.Folder,java.lang.String)
public NodeSet getPages(Folder folder) throws NodeException
PageManager
getPages
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.
NodeSet
of all the Pages referenced
by this Folder.
NodeException
org.apache.jetspeed.om.folder.Folder#getPages(org.apache.jetspeed.om.folder.Folder)
public Page getPage(Folder folder, java.lang.String name) throws PageNotFoundException, NodeException
PageManager
getPage
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.name
- The name of page to retrieve.
PageNotFoundException
- if the Page requested could not be found.
NodeException
org.apache.jetspeed.om.folder.Folder#getPage(org.apache.jetspeed.om.folder.Folder,java.lang.String)
public NodeSet getLinks(Folder folder) throws NodeException
PageManager
getLinks
folder
- The parent folder.
NodeException
Locates documents within a specified parent folder.
Returned documents are filtered according to security
constraints and/or permissions.
public Link getLink(Folder folder, java.lang.String name) throws DocumentNotFoundException, NodeException
PageManager
getLink
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.name
- The name of page to retrieve.
DocumentNotFoundException
- if the document requested could not be found.
NodeException
org.apache.jetspeed.om.folder.Folder#getLink(org.apache.jetspeed.om.folder.Folder,java.lang.String)
public PageSecurity getPageSecurity(Folder folder) throws DocumentNotFoundException, NodeException
PageManager
getPageSecurity
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.
DocumentNotFoundException
- if the document requested could not be found.
NodeException
org.apache.jetspeed.om.folder.Folder#getPageSecurity(org.apache.jetspeed.om.folder.Folder)
public NodeSet getAll(Folder folder) throws DocumentException
PageManager
getAll
Locates folders and documents within a specified parent folder. Returned folders and documents are filtered according to security constraints and/or permissions.
folder
- The parent folder.
NodeSet
containing all sub-folders
and documents directly under this folder.
DocumentException
org.apache.jetspeed.om.folder.Folder#getAll(org.apache.jetspeed.om.folder.Folder)
public void updatePage(Page page) throws NodeException, PageNotUpdatedException
PageManager
page
- The page to be updated.
NodeException
PageNotUpdatedException
public void removePage(Page page) throws NodeException, PageNotRemovedException
PageManager
page
- The page to be removed.
NodeException
PageNotRemovedException
public void updateFolder(Folder folder) throws NodeException, FolderNotUpdatedException
PageManager
folder
- The folder to be updated.
NodeException
FolderNotUpdatedException
public void updateFolder(Folder folder, boolean deep) throws NodeException, FolderNotUpdatedException
PageManager
folder
- The folder to be updated.deep
- Flag to control recursive deep updates.
NodeException
FolderNotUpdatedException
public void removeFolder(Folder folder) throws NodeException, FolderNotRemovedException
PageManager
NodeException
FolderNotRemovedException
public void updateLink(Link link) throws NodeException, LinkNotUpdatedException
PageManager
link
- The link to be updated.
NodeException
LinkNotUpdatedException
public void removeLink(Link link) throws NodeException, LinkNotRemovedException
PageManager
link
- The link to be removed.
NodeException
LinkNotRemovedException
public void updatePageSecurity(PageSecurity pageSecurity) throws NodeException, FailedToUpdateDocumentException
PageManager
pageSecurity
- The document to be updated.
NodeException
FailedToUpdateDocumentException
public void removePageSecurity(PageSecurity pageSecurity) throws NodeException, FailedToDeleteDocumentException
PageManager
pageSecurity
- The document to be removed.
NodeException
FailedToDeleteDocumentException
public int addPages(Page[] pages) throws NodeException
NodeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |