|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageManager
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 |
int |
addPages(Page[] pages)
|
boolean |
checkConstraint(String securityConstraintName,
String actions)
For a given security constraint definition name, and the given action(s), make a constraint check for the current user subject |
Folder |
copyFolder(Folder source,
String path)
Copy the source folder creating and returning a new copy of the folder with the same content as the source All subobjects are created with new ids |
Fragment |
copyFragment(Fragment source,
String name)
Copy the source fragment creating and returning a new copy of the fragment with the parameter collection as the source The fragment is created with a new fragment id |
Link |
copyLink(Link source,
String path)
Copy the source link creating and returning a new copy of the link |
Page |
copyPage(Page source,
String path)
Copy the source page creating and returning a new copy of the page with the same portlet and fragment collection as the source All fragments are created with new fragment ids |
PageSecurity |
copyPageSecurity(PageSecurity source)
Copy the source page security (both global constraints and constraint references) creating and returning a new copy of the page security definition. |
void |
createUserHomePagesFromRoles(Subject subject)
Creates a user's home page from the roles of the current user. |
void |
deepCopyFolder(Folder srcFolder,
String destinationPath,
String owner)
Deep copy a folder. |
boolean |
folderExists(String folderName)
Check if a folder exists for the given folder name |
NodeSet |
getAll(Folder folder)
getAll |
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
ContentPage |
getContentPage(String path)
ContentPage |
Folder |
getFolder(Folder folder,
String name)
getFolder |
Folder |
getFolder(String folderPath)
getFolder |
NodeSet |
getFolders(Folder folder)
getFolders |
Link |
getLink(Folder folder,
String name)
getLink |
Link |
getLink(String name)
getLink |
NodeSet |
getLinks(Folder folder)
getLinks |
Page |
getPage(Folder folder,
String name)
getPage |
Page |
getPage(String path)
getPage |
NodeSet |
getPages(Folder folder)
getPages |
PageSecurity |
getPageSecurity()
getPageSecurity |
PageSecurity |
getPageSecurity(Folder folder)
getPageSecurity |
boolean |
getPermissionsEnabled()
getPermissionsEnabled |
Folder |
getUserFolder(String userName)
Retrieve a user's folder |
Page |
getUserPage(String userName,
String pageName)
Retrieve a page for the given user name and page name |
boolean |
linkExists(String linkName)
Check if a link exists for the given link name |
Folder |
newFolder(String path)
Create a new empty Folder instance |
MenuDefinition |
newFolderMenuDefinition()
newFolderMenuDefinition - creates a new empty menu definition |
MenuExcludeDefinition |
newFolderMenuExcludeDefinition()
newFolderMenuExcludeDefinition - creates a new empty menu exclude definition |
MenuIncludeDefinition |
newFolderMenuIncludeDefinition()
newFolderMenuIncludeDefinition - creates a new empty menu include definition |
MenuOptionsDefinition |
newFolderMenuOptionsDefinition()
newFolderMenuOptionsDefinition - creates a new empty menu options definition |
MenuSeparatorDefinition |
newFolderMenuSeparatorDefinition()
newFolderMenuSeparatorDefinition - creates a new empty menu separator definition |
SecurityConstraint |
newFolderSecurityConstraint()
newFolderSecurityConstraint - creates a new security constraint definition |
Fragment |
newFragment()
Creates a new empty Layout Fragment instance |
FragmentPreference |
newFragmentPreference()
newFragmentPreference - creates a new fragment preference |
SecurityConstraint |
newFragmentSecurityConstraint()
newFragmentSecurityConstraint - creates a new security constraint definition |
Link |
newLink(String path)
Creates a new empty Link instance |
SecurityConstraint |
newLinkSecurityConstraint()
newLinkSecurityConstraint - creates a new security constraint definition |
Page |
newPage(String path)
Creates a new empty Page instance |
MenuDefinition |
newPageMenuDefinition()
newPageMenuDefinition - creates a new empty menu definition |
MenuExcludeDefinition |
newPageMenuExcludeDefinition()
newPageMenuExcludeDefinition - creates a new empty menu exclude definition |
MenuIncludeDefinition |
newPageMenuIncludeDefinition()
newPageMenuIncludeDefinition - creates a new empty menu include definition |
MenuOptionsDefinition |
newPageMenuOptionsDefinition()
newPageMenuOptionsDefinition - creates a new empty menu options definition |
MenuSeparatorDefinition |
newPageMenuSeparatorDefinition()
newPageMenuSeparatorDefinition - creates a new empty menu separator definition |
PageSecurity |
newPageSecurity()
Creates a new empty PageSecurity instance |
SecurityConstraint |
newPageSecurityConstraint()
newPageSecurityConstraint - creates a new security constraint definition |
SecurityConstraint |
newPageSecuritySecurityConstraint()
newPageSecuritySecurityConstraint - creates a new security constraint definition |
Fragment |
newPortletFragment()
Creates a new empty Portlet Fragment instance |
SecurityConstraints |
newSecurityConstraints()
newSecurityConstraints - creates a new empty security constraints definition |
SecurityConstraintsDef |
newSecurityConstraintsDef()
newSecurityConstraintsDef - creates a new security constraints definition |
boolean |
pageExists(String pageName)
Check if a page exists for the given page name |
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 |
removePageSecurity(PageSecurity pageSecurity)
Remove a page security document. |
void |
reset()
reset - force subsequent refresh from persistent store |
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 |
boolean |
userFolderExists(String userName)
Check if the root folder exists for a given user |
boolean |
userPageExists(String userName,
String pageName)
Check if a page exists for the given user |
Field Detail |
---|
static final String SERVICE_NAME
Method Detail |
---|
boolean getConstraintsEnabled()
getConstraintsEnabled
boolean getPermissionsEnabled()
getPermissionsEnabled
Page newPage(String path)
Folder newFolder(String path)
Link newLink(String path)
PageSecurity newPageSecurity()
Fragment newFragment()
Fragment newPortletFragment()
MenuDefinition newFolderMenuDefinition()
MenuExcludeDefinition newFolderMenuExcludeDefinition()
MenuIncludeDefinition newFolderMenuIncludeDefinition()
MenuOptionsDefinition newFolderMenuOptionsDefinition()
MenuSeparatorDefinition newFolderMenuSeparatorDefinition()
MenuDefinition newPageMenuDefinition()
MenuExcludeDefinition newPageMenuExcludeDefinition()
MenuIncludeDefinition newPageMenuIncludeDefinition()
MenuOptionsDefinition newPageMenuOptionsDefinition()
MenuSeparatorDefinition newPageMenuSeparatorDefinition()
SecurityConstraints newSecurityConstraints()
SecurityConstraint newFolderSecurityConstraint()
SecurityConstraint newPageSecurityConstraint()
SecurityConstraint newFragmentSecurityConstraint()
SecurityConstraint newLinkSecurityConstraint()
SecurityConstraint newPageSecuritySecurityConstraint()
SecurityConstraintsDef newSecurityConstraintsDef()
FragmentPreference newFragmentPreference()
Page getPage(String path) throws PageNotFoundException, NodeException
getPage
Returns a Page based on its path
path
-
PageNotFoundException
- if the page cannot be found
NodeException
ContentPage getContentPage(String path) throws PageNotFoundException, NodeException
ContentPage
Returns a PSML document suitable for use in content rendering, for the given key
locator
- The locator descriptor of the document to be retrieved.
PageNotFoundException
- if the page cannot be found
NodeException
ContentPage
,
Fragment
Link getLink(String name) throws DocumentNotFoundException, UnsupportedDocumentTypeException, 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
PageSecurity getPageSecurity() throws DocumentNotFoundException, UnsupportedDocumentTypeException, NodeException
getPageSecurity
Returns the PageSecurity document
DocumentNotFoundException
- if the document cannot be found
UnsupportedDocumentTypeException
NodeException
Folder getFolder(String folderPath) throws FolderNotFoundException, InvalidFolderException, NodeException
getFolder
Locates a folder for the given path.
folderPath
-
Folder
object represented by the folderPath
FolderNotFoundException
NodeException
InvalidFolderException
NodeSet getFolders(Folder folder) throws DocumentException
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)
Folder getFolder(Folder folder, String name) throws FolderNotFoundException, DocumentException
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)
NodeSet getPages(Folder folder) throws NodeException
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)
Page getPage(Folder folder, String name) throws PageNotFoundException, NodeException
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)
NodeSet getLinks(Folder folder) throws NodeException
getLinks
folder
- The parent folder.
NodeException
Locates documents within a specified parent folder.
Returned documents are filtered according to security
constraints and/or permissions.
Link getLink(Folder folder, String name) throws DocumentNotFoundException, NodeException
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)
PageSecurity getPageSecurity(Folder folder) throws DocumentNotFoundException, NodeException
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)
NodeSet getAll(Folder folder) throws DocumentException
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)
void updatePage(Page page) throws NodeException, PageNotUpdatedException
page
- The page to be updated.
NodeException
PageNotUpdatedException
void removePage(Page page) throws NodeException, PageNotRemovedException
page
- The page to be removed.
NodeException
PageNotRemovedException
void updateFolder(Folder folder) throws NodeException, FolderNotUpdatedException
folder
- The folder to be updated.
NodeException
FolderNotUpdatedException
void updateFolder(Folder folder, boolean deep) throws NodeException, FolderNotUpdatedException
folder
- The folder to be updated.deep
- Flag to control recursive deep updates.
NodeException
FolderNotUpdatedException
void removeFolder(Folder folder) throws NodeException, FolderNotRemovedException
page
- The folder to be removed.
NodeException
FolderNotRemovedException
void updateLink(Link link) throws NodeException, LinkNotUpdatedException
link
- The link to be updated.
NodeException
LinkNotUpdatedException
void removeLink(Link link) throws NodeException, LinkNotRemovedException
link
- The link to be removed.
NodeException
LinkNotRemovedException
void updatePageSecurity(PageSecurity pageSecurity) throws NodeException, FailedToUpdateDocumentException
pageSecurity
- The document to be updated.
NodeException
FailedToUpdateDocumentException
void removePageSecurity(PageSecurity pageSecurity) throws NodeException, FailedToDeleteDocumentException
pageSecurity
- The document to be removed.
NodeException
FailedToDeleteDocumentException
void addListener(PageManagerEventListener listener)
listener
- page manager event listenervoid removeListener(PageManagerEventListener listener)
listener
- page manager event listenervoid reset()
Page copyPage(Page source, String path) throws NodeException
source
- The source Page object to be copiedpath
- a PSML normalized path to the new page to be created
NodeException
Link copyLink(Link source, String path) throws NodeException
source
- The source Link object to be copiedpath
- a PSML normalized path to the new link to be created
NodeException
Folder copyFolder(Folder source, String path) throws NodeException
source
- The source Folder object to be copiedpath
- a PSML normalized path to the new folder to be created
NodeException
Fragment copyFragment(Fragment source, String name) throws NodeException
source
- The source Fragment object to be copiedthe
- new fragment name, can be the same as source fragment name
NodeException
PageSecurity copyPageSecurity(PageSecurity source) throws NodeException
source
- The source PageSecurity definitions
NodeException
void deepCopyFolder(Folder srcFolder, String destinationPath, String owner) throws NodeException
source
- source folderdest
- destination folderowner
- set owner of the new folder(s), or null for no owner
NodeException
Page getUserPage(String userName, String pageName) throws PageNotFoundException, NodeException
userName
- pageName
-
PageNotFoundException
NodeException
Folder getUserFolder(String userName) throws FolderNotFoundException, InvalidFolderException, NodeException
userName
-
FolderNotFoundException
InvalidFolderException
NodeException
boolean folderExists(String folderName)
folderName
-
boolean pageExists(String pageName)
pageName
-
boolean linkExists(String linkName)
linkName
-
boolean userFolderExists(String userName)
userName
-
boolean userPageExists(String userName, String pageName)
userName
- pageName
-
void createUserHomePagesFromRoles(Subject subject) throws NodeException
subject
- The full user Java Security subject.
NodeException
int addPages(Page[] pages) throws NodeException
pages
-
NodeException
boolean checkConstraint(String securityConstraintName, String actions)
securityConstraintName
- the name of the security constraint definitionactions
- one or more portlet actions (view,edit,help,..)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |