|
||||||||||
| 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.psml.CastorXmlPageManager
public class CastorXmlPageManager
This service is responsible for loading and saving PSML pages serialized to disk
| Field Summary |
|---|
| Fields inherited from interface org.apache.jetspeed.page.PageManager |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
CastorXmlPageManager(IdGenerator generator,
DocumentHandlerFactory handlerFactory,
FolderHandler folderHandler,
FileCache fileCache,
boolean permissionsEnabled,
boolean constraintsEnabled)
|
|
| 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 |
Page |
copy(Page source)
|
void |
evict(FileCacheEntry entry)
evict file cache entry |
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 path)
getLink |
NodeSet |
getLinks(Folder folder)
getLinks |
Page |
getPage(Folder folder,
java.lang.String name)
getPage |
Page |
getPage(java.lang.String path)
getPage |
NodeSet |
getPages(Folder folder)
getPages |
PageSecurity |
getPageSecurity()
getPageSecurity |
PageSecurity |
getPageSecurity(Folder folder)
getPageSecurity |
Fragment |
newFragment()
newFragment |
Fragment |
newPortletFragment()
Creates a new empty Portlet Fragment instance |
void |
refresh(FileCacheEntry entry)
refresh file cache entry |
void |
removeFolder(Folder folder)
removeFolder |
void |
removeLink(Link link)
removeLink |
void |
removePage(Page page)
removePage |
void |
removePageSecurity(PageSecurity pageSecurity)
Remove a page security document. |
void |
reset()
reset - force subsequent refresh from persistent store |
void |
updateFolder(Folder folder)
updateFolder |
void |
updateFolder(Folder folder,
boolean deep)
Update a folder in persistent storage |
void |
updateLink(Link link)
updateLink |
void |
updatePage(Page page)
updatePage |
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 CastorXmlPageManager(IdGenerator generator,
DocumentHandlerFactory handlerFactory,
FolderHandler folderHandler,
FileCache fileCache,
boolean permissionsEnabled,
boolean constraintsEnabled)
throws java.io.FileNotFoundException
java.io.FileNotFoundException| Method Detail |
|---|
public Fragment newFragment()
newFragment
newFragment in interface PageManagernewFragment in class AbstractPageManagerPageManager.newFragment()public Fragment newPortletFragment()
PageManager
newPortletFragment in interface PageManagernewPortletFragment in class AbstractPageManager
public Page getPage(java.lang.String path)
throws PageNotFoundException,
NodeException
getPage
getPage in interface PageManagerpath -
PageNotFoundException
NodeException
FolderNotFoundExceptionPageManager.getPage(java.lang.String)
public void updatePage(Page page)
throws NodeException
updatePage
updatePage in interface PageManagerpage - The page to be updated.
NodeExceptionorg.apache.jetspeed.services.page.PageManagerService#updatePage(org.apache.jetspeed.om.page.Page)
public void removePage(Page page)
throws NodeException
removePage
removePage in interface PageManagerpage - The page to be removed.
NodeExceptionorg.apache.jetspeed.services.page.PageManagerService#removePage(org.apache.jetspeed.om.page.Page)
public Link getLink(java.lang.String path)
throws DocumentNotFoundException,
UnsupportedDocumentTypeException,
NodeException
getLink
getLink in interface PageManagerpath -
DocumentNotFoundException
UnsupportedDocumentTypeException
NodeException
PageNotFoundException - if the page cannot be foundPageManager.getLink(java.lang.String)
public void updateLink(Link link)
throws NodeException
updateLink
updateLink in interface PageManagerlink - The link to be updated.
NodeExceptionorg.apache.jetspeed.services.page.PageManagerService#updateLink(org.apache.jetspeed.om.page.Link)
public void removeLink(Link link)
throws NodeException
removeLink
removeLink in interface PageManagerlink - The link to be removed.
NodeExceptionorg.apache.jetspeed.services.page.PageManagerService#removeLink(org.apache.jetspeed.om.page.Link)
public boolean checkConstraint(java.lang.String securityConstraintName,
java.lang.String actions)
PageManager
checkConstraint in interface PageManagersecurityConstraintName - the name of the security constraint definitionactions - one or more portlet actions (view,edit,help,..)
public PageSecurity getPageSecurity()
throws DocumentNotFoundException,
UnsupportedDocumentTypeException,
NodeException
getPageSecurity
getPageSecurity in interface PageManagerDocumentNotFoundException
UnsupportedDocumentTypeException
NodeExceptionPageManager.getPageSecurity()
public void updatePageSecurity(PageSecurity pageSecurity)
throws NodeException,
FailedToUpdateDocumentException
PageManager
updatePageSecurity in interface PageManagerpageSecurity - The document to be updated.
NodeException
FailedToUpdateDocumentException
public void removePageSecurity(PageSecurity pageSecurity)
throws NodeException,
FailedToDeleteDocumentException
PageManager
removePageSecurity in interface PageManagerpageSecurity - The document to be removed.
NodeException
FailedToDeleteDocumentException
public Folder getFolder(java.lang.String folderPath)
throws FolderNotFoundException,
InvalidFolderException,
NodeException
getFolder
getFolder in interface PageManagerfolderPath -
FolderNotFoundException
NodeException
InvalidFolderExceptionPageManager.getFolder(java.lang.String)
public NodeSet getFolders(Folder folder)
throws DocumentException
PageManagergetFolders
Locates folders within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
getFolders in interface PageManagerfolder - The parent folder.
NodeSet containing all sub-folders
directly under this folder.
DocumentExceptionorg.apache.jetspeed.om.folder.Folder#getFolders(org.apache.jetspeed.om.folder.Folder)
public Folder getFolder(Folder folder,
java.lang.String name)
throws FolderNotFoundException,
DocumentException
PageManagergetFolder
Locates folders within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
getFolder in interface PageManagerfolder - The parent folder.name - The name of folder to retrieve.
FolderNotFoundException
DocumentExceptionorg.apache.jetspeed.om.folder.Folder#getFolder(org.apache.jetspeed.om.folder.Folder,java.lang.String)
public NodeSet getPages(Folder folder)
throws NodeException
PageManagergetPages
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
getPages in interface PageManagerfolder - The parent folder.
NodeSet of all the Pages referenced
by this Folder.
NodeExceptionorg.apache.jetspeed.om.folder.Folder#getPages(org.apache.jetspeed.om.folder.Folder)
public Page getPage(Folder folder,
java.lang.String name)
throws PageNotFoundException,
NodeException
PageManagergetPage
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
getPage in interface PageManagerfolder - The parent folder.name - The name of page to retrieve.
PageNotFoundException - if the Page requested could not be found.
NodeExceptionorg.apache.jetspeed.om.folder.Folder#getPage(org.apache.jetspeed.om.folder.Folder,java.lang.String)
public NodeSet getLinks(Folder folder)
throws NodeException
PageManagergetLinks
getLinks in interface PageManagerfolder - The parent folder.
NodeExceptionLocates 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
PageManagergetLink
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
getLink in interface PageManagerfolder - The parent folder.name - The name of page to retrieve.
DocumentNotFoundException - if the document requested could not be found.
NodeExceptionorg.apache.jetspeed.om.folder.Folder#getLink(org.apache.jetspeed.om.folder.Folder,java.lang.String)
public PageSecurity getPageSecurity(Folder folder)
throws DocumentNotFoundException,
NodeException
PageManagergetPageSecurity
Locates documents within a specified parent folder. Returned documents are filtered according to security constraints and/or permissions.
getPageSecurity in interface PageManagerfolder - The parent folder.
DocumentNotFoundException - if the document requested could not be found.
NodeExceptionorg.apache.jetspeed.om.folder.Folder#getPageSecurity(org.apache.jetspeed.om.folder.Folder)
public NodeSet getAll(Folder folder)
throws DocumentException
PageManagergetAll
Locates folders and documents within a specified parent folder. Returned folders and documents are filtered according to security constraints and/or permissions.
getAll in interface PageManagerfolder - The parent folder.
NodeSet containing all sub-folders
and documents directly under this folder.
DocumentExceptionorg.apache.jetspeed.om.folder.Folder#getAll(org.apache.jetspeed.om.folder.Folder)
public void updateFolder(Folder folder)
throws NodeException,
FolderNotUpdatedException
updateFolder
updateFolder in interface PageManagerfolder - The folder to be updated.
NodeException
FolderNotUpdatedExceptionorg.apache.jetspeed.services.page.PageManagerService#updateFolder(org.apache.jetspeed.om.folder.Folder)
public void updateFolder(Folder folder,
boolean deep)
throws NodeException,
FolderNotUpdatedException
PageManager
updateFolder in interface PageManagerfolder - The folder to be updated.deep - Flag to control recursive deep updates.
NodeException
FolderNotUpdatedException
public void removeFolder(Folder folder)
throws NodeException
removeFolder
removeFolder in interface PageManagerNodeExceptionorg.apache.jetspeed.services.page.PageManagerService#removeFolder(org.apache.jetspeed.om.folder.Folder)public void reset()
PageManager
reset in interface PageManagerreset in class AbstractPageManager
public void refresh(FileCacheEntry entry)
throws java.lang.Exception
refresh file cache entry
refresh in interface FileCacheEventListenerentry -
java.lang.ExceptionFileCacheEventListener.refresh(org.apache.jetspeed.cache.file.FileCacheEntry)
public void evict(FileCacheEntry entry)
throws java.lang.Exception
evict file cache entry
evict in interface FileCacheEventListenerentry -
java.lang.ExceptionFileCacheEventListener.evict(org.apache.jetspeed.cache.file.FileCacheEntry)
public ContentPage getContentPage(java.lang.String path)
throws PageNotFoundException,
NodeException
PageManagerContentPage
Returns a PSML document suitable for use in content rendering, for the given key
getContentPage in interface PageManagerPageNotFoundException - if the page cannot be found
NodeExceptionContentPage,
Fragmentpublic Page copy(Page source)
public int addPages(Page[] pages)
throws NodeException
addPages in interface PageManagerNodeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||