|
||||||||||
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 java.lang.String |
ALL_PROPERTY_SCOPE
all standard property scopes |
static java.lang.String |
GLOBAL_PROPERTY_SCOPE
global standard property scope |
static boolean |
GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
group and role standard property scopes enabled flag |
static java.lang.String |
GROUP_PROPERTY_SCOPE
group standard property scope |
static java.lang.String |
ROLE_PROPERTY_SCOPE
role standard property scope |
static java.lang.String |
SERVICE_NAME
The name of the service |
static java.lang.String |
USER_PROPERTY_SCOPE
user standard property scope |
Method Summary | |
---|---|
void |
addListener(PageManagerEventListener listener)
addListener - add page manager event listener |
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 |
void |
cleanupRequestCache()
Cleanup request level cache for current thread. |
DynamicPage |
copyDynamicPage(DynamicPage source,
java.lang.String path)
Copy the source dynamic page creating and returning a new copy of the dynamic page with the same portlet and fragment collection as the source. |
DynamicPage |
copyDynamicPage(DynamicPage source,
java.lang.String path,
boolean copyIds)
Copy the source dynamic page creating and returning a new copy of the dynamic page with the same portlet and fragment collection as the source. |
Folder |
copyFolder(Folder source,
java.lang.String path)
Copy the source folder creating and returning a new copy of the folder without copying any content from within the folder |
BaseFragmentElement |
copyFragment(BaseFragmentElement source,
java.lang.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 |
BaseFragmentElement |
copyFragment(BaseFragmentElement source,
java.lang.String name,
boolean copyIds)
Copy the source fragment creating and returning a new copy of the fragment with the parameter collection as the source |
FragmentDefinition |
copyFragmentDefinition(FragmentDefinition source,
java.lang.String path)
Copy the source fragment definition creating and returning a new copy of the fragment definition with the same portlet and fragment collection as the source. |
FragmentDefinition |
copyFragmentDefinition(FragmentDefinition source,
java.lang.String path,
boolean copyIds)
Copy the source fragment definition creating and returning a new copy of the fragment definition with the same portlet and fragment collection as the source. |
Link |
copyLink(Link source,
java.lang.String path)
Copy the source link creating and returning a new copy of the link |
Page |
copyPage(Page source,
java.lang.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. |
Page |
copyPage(Page source,
java.lang.String path,
boolean copyIds)
Copy the source page creating and returning a new copy of the page with the same portlet and fragment collection as the source. |
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. |
PageTemplate |
copyPageTemplate(PageTemplate source,
java.lang.String path)
Copy the source page template creating and returning a new copy of the page template with the same portlet and fragment collection as the source. |
PageTemplate |
copyPageTemplate(PageTemplate source,
java.lang.String path,
boolean copyIds)
Copy the source page template creating and returning a new copy of the page template with the same portlet and fragment collection as the source. |
void |
createUserHomePagesFromRoles(javax.security.auth.Subject subject)
Creates a user's home page from the roles of the current user. |
void |
deepCopyFolder(Folder srcFolder,
java.lang.String destinationPath,
java.lang.String owner)
Deep copy a folder. |
void |
deepCopyFolder(Folder srcFolder,
java.lang.String destinationPath,
java.lang.String owner,
boolean copyIds)
Deep copy a folder. |
void |
deepMergeFolder(Folder srcFolder,
java.lang.String destinationPath,
java.lang.String owner)
Deep merges a source folder into a destination folder. |
void |
deepMergeFolder(Folder srcFolder,
java.lang.String destinationPath,
java.lang.String owner,
boolean copyIds)
Deep merges a source folder into a destination folder. |
boolean |
dynamicPageExists(java.lang.String pageName)
Check if a dynamic page exists for the given page name |
boolean |
folderExists(java.lang.String folderName)
Check if a folder exists for the given folder name |
boolean |
fragmentDefinitionExists(java.lang.String name)
Check if a fragment definition exists for the given name |
NodeSet |
getAll(Folder folder)
getAll |
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
DynamicPage |
getDynamicPage(Folder folder,
java.lang.String name)
getDynamicPage |
DynamicPage |
getDynamicPage(java.lang.String path)
getDynamicPage |
NodeSet |
getDynamicPages(Folder folder)
getDynamicPages |
Folder |
getFolder(Folder folder,
java.lang.String name)
getFolder |
Folder |
getFolder(java.lang.String folderPath)
getFolder |
NodeSet |
getFolders(Folder folder)
getFolders |
FragmentDefinition |
getFragmentDefinition(Folder folder,
java.lang.String name)
getFragmentDefinition |
FragmentDefinition |
getFragmentDefinition(java.lang.String path)
getFragmentDefinition |
NodeSet |
getFragmentDefinitions(Folder folder)
getFragmentDefinition |
FragmentPropertyManagement |
getFragmentPropertyManager()
Supplemental and optional service supported by Page Managers. |
Link |
getLink(Folder folder,
java.lang.String name)
getLink |
Link |
getLink(java.lang.String name)
getLink |
NodeSet |
getLinks(Folder folder)
getLinks |
long |
getNodeReapingInterval()
Get node reaping interval. |
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 |
PageTemplate |
getPageTemplate(Folder folder,
java.lang.String name)
getPageTemplate |
PageTemplate |
getPageTemplate(java.lang.String path)
getPageTemplate |
NodeSet |
getPageTemplates(Folder folder)
getPageTemplates |
boolean |
getPermissionsEnabled()
getPermissionsEnabled |
Folder |
getUserFolder(java.lang.String userName)
Retrieve a user's folder |
Page |
getUserPage(java.lang.String userName,
java.lang.String pageName)
Retrieve a page for the given user name and page name |
boolean |
isDistributed()
Returns whether the page manager cache is currently part of a distributed cache cluster. |
boolean |
linkExists(java.lang.String linkName)
Check if a link exists for the given link name |
DynamicPage |
newDynamicPage(java.lang.String path)
Creates a new empty DynamicPage instance |
Folder |
newFolder(java.lang.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 |
FragmentDefinition |
newFragmentDefinition(java.lang.String path)
Creates a new empty FragmentDefinition instance |
FragmentPreference |
newFragmentPreference()
newFragmentPreference - creates a new fragment preference |
FragmentProperty |
newFragmentProperty()
newFragmentProperty - creates a new fragment property |
FragmentReference |
newFragmentReference()
Creates a new FragmentReference instance |
SecurityConstraint |
newFragmentSecurityConstraint()
newFragmentSecurityConstraint - creates a new security constraint definition |
Link |
newLink(java.lang.String path)
Creates a new empty Link instance |
SecurityConstraint |
newLinkSecurityConstraint()
newLinkSecurityConstraint - creates a new security constraint definition |
Page |
newPage(java.lang.String path)
Creates a new empty Page instance |
PageFragment |
newPageFragment()
Creates a new PageFragment 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 |
PageTemplate |
newPageTemplate(java.lang.String path)
Creates a new empty PageTemplate instance |
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 |
void |
notifyUpdatedNode(Node node)
Notify page manager listeners that node modification was externally detected. |
boolean |
pageExists(java.lang.String pageName)
Check if a page exists for the given page name |
boolean |
pageTemplateExists(java.lang.String pageName)
Check if a page template exists for the given page name |
void |
removeDynamicPage(DynamicPage dynamicPage)
Remove a dynamic page. |
void |
removeFolder(Folder folder)
Remove a folder. |
void |
removeFragmentDefinition(FragmentDefinition fragmentDefinition)
Remove a fragment definition. |
void |
removeLink(Link link)
Remove a link. |
void |
removeListener(PageManagerEventListener listener)
removeListener - remove page manager event listener |
void |
removePage(Page page)
Remove a page. |
void |
removePageSecurity(PageSecurity pageSecurity)
Remove a page security document. |
void |
removePageTemplate(PageTemplate pageTemplate)
Remove a page template. |
void |
reset()
reset - force subsequent refresh from persistent store |
void |
shutdown()
shutdown - gracefully shutdown page manager and disconnect from other singleton components, (e.g. |
void |
updateDynamicPage(DynamicPage dynamicPage)
Update a dynamic page in persistent storage |
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 |
updateFragmentDefinition(FragmentDefinition fragmentDefinition)
Update a fragment definition in persistent storage |
void |
updateFragmentProperties(BaseFragmentElement fragment,
java.lang.String scope)
Update fragment properties for specified scope. |
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 |
void |
updatePageTemplate(PageTemplate pageTemplate)
Update a page template in persistent storage |
boolean |
userFolderExists(java.lang.String userName)
Check if the root folder exists for a given user |
boolean |
userPageExists(java.lang.String userName,
java.lang.String pageName)
Check if a page exists for the given user |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
static final java.lang.String USER_PROPERTY_SCOPE
static final java.lang.String GROUP_PROPERTY_SCOPE
static final java.lang.String ROLE_PROPERTY_SCOPE
static final java.lang.String GLOBAL_PROPERTY_SCOPE
static final java.lang.String ALL_PROPERTY_SCOPE
static final boolean GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
Method Detail |
---|
boolean getConstraintsEnabled()
getConstraintsEnabled
boolean getPermissionsEnabled()
getPermissionsEnabled
long getNodeReapingInterval()
Page newPage(java.lang.String path)
PageTemplate newPageTemplate(java.lang.String path)
DynamicPage newDynamicPage(java.lang.String path)
FragmentDefinition newFragmentDefinition(java.lang.String path)
Folder newFolder(java.lang.String path)
Link newLink(java.lang.String path)
PageSecurity newPageSecurity()
Fragment newFragment()
Fragment newPortletFragment()
FragmentReference newFragmentReference()
PageFragment newPageFragment()
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()
FragmentProperty newFragmentProperty()
Page getPage(java.lang.String path) throws PageNotFoundException, NodeException
getPage
Returns a Page based on its path
path
-
PageNotFoundException
- if the page cannot be found
NodeException
PageTemplate getPageTemplate(java.lang.String path) throws PageNotFoundException, NodeException
getPageTemplate
Returns a PageTemplate based on its path
path
-
PageNotFoundException
- if the page cannot be found
NodeException
DynamicPage getDynamicPage(java.lang.String path) throws PageNotFoundException, NodeException
getDynamicPage
Returns a DynamicPage based on its path
path
-
PageNotFoundException
- if the page cannot be found
NodeException
FragmentDefinition getFragmentDefinition(java.lang.String path) throws PageNotFoundException, NodeException
getFragmentDefinition
Returns a FragmentDefinition based on its path
path
-
PageNotFoundException
- if the page cannot be found
NodeException
Link getLink(java.lang.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(java.lang.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, java.lang.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)
NodeSet getPageTemplates(Folder folder) throws NodeException
getPageTemplates
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 PageTemplates referenced
by this Folder.
NodeException
org.apache.jetspeed.om.folder.Folder#getPageTemplates(org.apache.jetspeed.om.folder.Folder)
NodeSet getDynamicPages(Folder folder) throws NodeException
getDynamicPages
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 DynamicPages referenced
by this Folder.
NodeException
org.apache.jetspeed.om.folder.Folder#getDynamicPages(org.apache.jetspeed.om.folder.Folder)
NodeSet getFragmentDefinitions(Folder folder) throws NodeException
getFragmentDefinition
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 FragmentDefinitions referenced
by this Folder.
NodeException
org.apache.jetspeed.om.folder.Folder#getFragmentDefinition(org.apache.jetspeed.om.folder.Folder)
Page getPage(Folder folder, java.lang.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)
PageTemplate getPageTemplate(Folder folder, java.lang.String name) throws PageNotFoundException, NodeException
getPageTemplate
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 template to retrieve.
PageNotFoundException
- if the PageTemplate requested could not be found.
NodeException
org.apache.jetspeed.om.folder.Folder#getPageTemplate(org.apache.jetspeed.om.folder.Folder,java.lang.String)
DynamicPage getDynamicPage(Folder folder, java.lang.String name) throws PageNotFoundException, NodeException
getDynamicPage
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 dynamic page to retrieve.
PageNotFoundException
- if the DynamicPage requested could not be found.
NodeException
org.apache.jetspeed.om.folder.Folder#getDynamicPage(org.apache.jetspeed.om.folder.Folder,java.lang.String)
FragmentDefinition getFragmentDefinition(Folder folder, java.lang.String name) throws PageNotFoundException, NodeException
getFragmentDefinition
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 fragment definition to retrieve.
PageNotFoundException
- if the FragmentDefinition requested could not be found.
NodeException
org.apache.jetspeed.om.folder.Folder#getFragmentDefinition(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, java.lang.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 updatePageTemplate(PageTemplate pageTemplate) throws NodeException, PageNotUpdatedException
pageTemplate
- The page template to be updated.
NodeException
PageNotUpdatedException
void removePageTemplate(PageTemplate pageTemplate) throws NodeException, PageNotRemovedException
pageTemplate
- The page template to be removed.
NodeException
PageNotRemovedException
void updateDynamicPage(DynamicPage dynamicPage) throws NodeException, PageNotUpdatedException
dynamicPage
- The dynamic page to be updated.
NodeException
PageNotUpdatedException
void removeDynamicPage(DynamicPage dynamicPage) throws NodeException, PageNotRemovedException
dynamicPage
- The dynamic page to be removed.
NodeException
PageNotRemovedException
void updateFragmentDefinition(FragmentDefinition fragmentDefinition) throws NodeException, PageNotUpdatedException
fragmentDefinition
- The fragment definition to be updated.
NodeException
PageNotUpdatedException
void removeFragmentDefinition(FragmentDefinition fragmentDefinition) throws NodeException, PageNotRemovedException
fragmentDefinition
- The fragment definition to be removed.
NodeException
PageNotRemovedException
void updateFragmentProperties(BaseFragmentElement fragment, java.lang.String scope) throws NodeException, PageNotUpdatedException
fragment
- owner of fragment properties to update.scope
- fragment property scope to update, (user, group, role, global, or all).
NodeException
PageNotUpdatedException
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()
void shutdown()
Page copyPage(Page source, java.lang.String path) throws NodeException
source
- The source Page object to be copiedpath
- a PSML normalized path to the new page to be created
NodeException
Page copyPage(Page source, java.lang.String path, boolean copyIds) throws NodeException
source
- The source Page object to be copiedpath
- a PSML normalized path to the new page to be createdcopyIds
- flag indicating whether to use new or copied ids
NodeException
PageTemplate copyPageTemplate(PageTemplate source, java.lang.String path) throws NodeException
source
- The source PageTemplate object to be copiedpath
- a PSML normalized path to the new page template to be created
NodeException
PageTemplate copyPageTemplate(PageTemplate source, java.lang.String path, boolean copyIds) throws NodeException
source
- The source PageTemplate object to be copiedpath
- a PSML normalized path to the new page template to be createdcopyIds
- flag indicating whether to use new or copied ids
NodeException
DynamicPage copyDynamicPage(DynamicPage source, java.lang.String path) throws NodeException
source
- The source DynamicPage object to be copiedpath
- a PSML normalized path to the new dynamic page to be created
NodeException
DynamicPage copyDynamicPage(DynamicPage source, java.lang.String path, boolean copyIds) throws NodeException
source
- The source DynamicPage object to be copiedpath
- a PSML normalized path to the new dynamic page to be createdcopyIds
- flag indicating whether to use new or copied ids
NodeException
FragmentDefinition copyFragmentDefinition(FragmentDefinition source, java.lang.String path) throws NodeException
source
- The source FragmentDefinition object to be copiedpath
- a PSML normalized path to the new fragment definition to be created
NodeException
FragmentDefinition copyFragmentDefinition(FragmentDefinition source, java.lang.String path, boolean copyIds) throws NodeException
source
- The source FragmentDefinition object to be copiedpath
- a PSML normalized path to the new fragment definition to be createdcopyIds
- flag indicating whether to use new or copied ids
NodeException
Link copyLink(Link source, java.lang.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, java.lang.String path) throws NodeException
source
- The source Folder object to be copiedpath
- a PSML normalized path to the new folder to be created
NodeException
BaseFragmentElement copyFragment(BaseFragmentElement source, java.lang.String name) throws NodeException
source
- The source Fragment object to be copiedname
- the new fragment name, can be the same as source fragment name
or null to copy existing name
NodeException
BaseFragmentElement copyFragment(BaseFragmentElement source, java.lang.String name, boolean copyIds) throws NodeException
source
- The source Fragment object to be copiedname
- the new fragment name, can be the same as source fragment name
or null to copy existing namecopyIds
- flag indicating whether to use new or copied ids
NodeException
PageSecurity copyPageSecurity(PageSecurity source) throws NodeException
source
- The source PageSecurity definitions
NodeException
void deepCopyFolder(Folder srcFolder, java.lang.String destinationPath, java.lang.String owner) throws NodeException
source
- source folderdest
- destination folderowner
- set owner of the new folder(s), or null for no owner
NodeException
- if the root folder already existsvoid deepCopyFolder(Folder srcFolder, java.lang.String destinationPath, java.lang.String owner, boolean copyIds) throws NodeException
source
- source folderdest
- destination folderowner
- set owner of the new folder(s), or null for no ownercopyIds
- flag indicating whether to use new or copied ids
NodeException
- if the root folder already existsvoid deepMergeFolder(Folder srcFolder, java.lang.String destinationPath, java.lang.String owner) throws NodeException
source
- source folderdest
- destination folderowner
- set owner of the new folder(s), or null for no owner
NodeException
void deepMergeFolder(Folder srcFolder, java.lang.String destinationPath, java.lang.String owner, boolean copyIds) throws NodeException
source
- source folderdest
- destination folderowner
- set owner of the new folder(s), or null for no ownercopyIds
- flag indicating whether to use new or copied ids
NodeException
Page getUserPage(java.lang.String userName, java.lang.String pageName) throws PageNotFoundException, NodeException
userName
- pageName
-
PageNotFoundException
NodeException
Folder getUserFolder(java.lang.String userName) throws FolderNotFoundException, InvalidFolderException, NodeException
userName
-
FolderNotFoundException
InvalidFolderException
NodeException
boolean folderExists(java.lang.String folderName)
folderName
-
boolean pageExists(java.lang.String pageName)
pageName
-
boolean pageTemplateExists(java.lang.String pageName)
pageName
-
boolean dynamicPageExists(java.lang.String pageName)
pageName
-
boolean fragmentDefinitionExists(java.lang.String name)
name
-
boolean linkExists(java.lang.String linkName)
linkName
-
boolean userFolderExists(java.lang.String userName)
userName
-
boolean userPageExists(java.lang.String userName, java.lang.String pageName)
userName
- pageName
-
void createUserHomePagesFromRoles(javax.security.auth.Subject subject) throws NodeException
subject
- The full user Java Security subject.
NodeException
int addPages(Page[] pages) throws NodeException
pages
-
NodeException
boolean checkConstraint(java.lang.String securityConstraintName, java.lang.String actions)
securityConstraintName
- the name of the security constraint definitionactions
- one or more portlet actions (view,edit,help,..)
boolean isDistributed()
void notifyUpdatedNode(Node node)
node
- updated managed node if knownvoid cleanupRequestCache()
FragmentPropertyManagement getFragmentPropertyManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |