|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This service is responsible for loading and saving Pages into the selected persistent store.
Field Summary | |
static String |
SERVICE_NAME
The name of the service |
Method Summary | |
void |
addListener(PageManagerEventListener listener)
addListener - add page manager event listener |
Page |
clonePage(Page source,
String path)
Clone the source page creating and returning a new cloned page with the same portlet and fragment collection as the source All fragments are created with new fragment ids |
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
ContentPage |
getContentPage(String path)
ContentPage |
Folder |
getFolder(String folderPath)
getFolder |
Link |
getLink(String name)
getLink |
Page |
getPage(String id)
getPage |
PageSecurity |
getPageSecurity()
getPageSecurity |
boolean |
getPermissionsEnabled()
getPermissionsEnabled |
Folder |
newFolder(String path)
Create a new empty Folder instance |
Fragment |
newFragment()
Creates a new empty Fragment instance |
Link |
newLink(String path)
Creates a new empty Link instance |
MenuDefinition |
newMenuDefinition()
newMenuDefinition - creates a new empty menu definition |
MenuExcludeDefinition |
newMenuExcludeDefinition()
newMenuExcludeDefinition - creates a new empty menu exclude definition |
MenuIncludeDefinition |
newMenuIncludeDefinition()
newMenuIncludeDefinition - creates a new empty menu include definition |
MenuOptionsDefinition |
newMenuOptionsDefinition()
newMenuOptionsDefinition - creates a new empty menu options definition |
MenuSeparatorDefinition |
newMenuSeparatorDefinition()
newMenuSeparatorDefinition - creates a new empty menu separator definition |
Page |
newPage(String path)
Creates a new empty Page instance |
Property |
newProperty()
Creates a new empty Property instance |
SecurityConstraint |
newSecurityConstraint()
newSecurityConstraint - creates a new security constraint definition |
SecurityConstraints |
newSecurityConstraints()
newSecurityConstraints - creates a new empty security constraints definition |
void |
removeFolder(Folder folder)
Remove a folder. |
void |
removeLink(Link link)
Remove a link. |
void |
removeListener(PageManagerEventListener listener)
removeListener - remove page manager event listener |
void |
removePage(Page page)
Remove a document. |
void |
updateFolder(Folder folder)
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 |
Field Detail |
public static final String SERVICE_NAME
Method Detail |
public boolean getConstraintsEnabled()
getConstraintsEnabled
public boolean getPermissionsEnabled()
getPermissionsEnabled
public Page newPage(String path)
public Folder newFolder(String path)
public Link newLink(String path)
public Fragment newFragment()
public Property newProperty()
public MenuDefinition newMenuDefinition()
public MenuExcludeDefinition newMenuExcludeDefinition()
public MenuIncludeDefinition newMenuIncludeDefinition()
public MenuOptionsDefinition newMenuOptionsDefinition()
public MenuSeparatorDefinition newMenuSeparatorDefinition()
public SecurityConstraints newSecurityConstraints()
public SecurityConstraint newSecurityConstraint()
public Page getPage(String id) throws PageNotFoundException, NodeException
getPage
Returns a PSML document for the given key
PageNotFoundException
- if the page cannot be found
NodeException
public ContentPage getContentPage(String path) throws PageNotFoundException, NodeException
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(String name) throws DocumentNotFoundException, UnsupportedDocumentTypeException, FolderNotFoundException, NodeException
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
FolderNotFoundException
public PageSecurity getPageSecurity() throws DocumentNotFoundException, UnsupportedDocumentTypeException, FolderNotFoundException, NodeException
getPageSecurity
Returns the PageSecurity document
PageNotFoundException
- if the page cannot be found
NodeException
DocumentNotFoundException
UnsupportedDocumentTypeException
FolderNotFoundException
public Folder getFolder(String folderPath) throws FolderNotFoundException, InvalidFolderException, NodeException
getFolder
Locates a folder for the given path.
folderPath
-
Folder
object represented by the folderPath
or
null
if no such folder exists.
DocumentException
FolderNotFoundException
NodeException
InvalidFolderException
public void updatePage(Page page) throws JetspeedException, PageNotUpdatedException
page
- The page to be updated.
JetspeedException
PageNotUpdatedException
public void removePage(Page page) throws JetspeedException, PageNotRemovedException
page
- The page to be removed.
JetspeedException
PageNotRemovedException
public void updateFolder(Folder folder) throws JetspeedException, FolderNotUpdatedException
folder
- The folder to be updated.
JetspeedException
FolderNotUpdatedException
public void removeFolder(Folder folder) throws JetspeedException, FolderNotRemovedException
JetspeedException
FolderNotRemovedException
public void updateLink(Link link) throws JetspeedException, LinkNotUpdatedException
link
- The link to be updated.
JetspeedException
LinkNotUpdatedException
public void removeLink(Link link) throws JetspeedException, LinkNotRemovedException
JetspeedException
LinkNotRemovedException
public void addListener(PageManagerEventListener listener)
listener
- page manager event listenerpublic void removeListener(PageManagerEventListener listener)
listener
- page manager event listenerpublic Page clonePage(Page source, String path) throws JetspeedException, PageNotUpdatedException
source
- The source Page object to be clonedpath
- a PSML normalized path to the new page to be created
JetspeedException
PageNotUpdatedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |