public interface PageManager
Type | Property and Description |
---|---|
FragmentProperty |
newFragment
newFragmentProperty - creates a new fragment property
|
Modifier and Type | Field and Description |
---|---|
static String |
ALL_PROPERTY_SCOPE
all standard property scopes
|
static 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 String |
GROUP_PROPERTY_SCOPE
group standard property scope
|
static String |
ROLE_PROPERTY_SCOPE
role standard property scope
|
static String |
SERVICE_NAME
The name of the service
|
static String |
USER_PROPERTY_SCOPE
user standard property scope
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
cleanupRequestCache()
Cleanup request level cache for current thread.
|
DynamicPage |
copyDynamicPage(DynamicPage source,
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,
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,
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,
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,
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,
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,
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,
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.
|
Page |
copyPage(Page source,
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,
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,
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.
|
<T> List<T> |
createList()
Create list suitable for list model members.
|
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.
|
void |
deepCopyFolder(Folder srcFolder,
String destinationPath,
String owner,
boolean copyIds)
Deep copy a folder.
|
void |
deepMergeFolder(Folder srcFolder,
String destinationPath,
String owner)
Deep merges a source folder into a destination folder.
|
void |
deepMergeFolder(Folder srcFolder,
String destinationPath,
String owner,
boolean copyIds)
Deep merges a source folder into a destination folder.
|
boolean |
dynamicPageExists(String pageName)
Check if a dynamic page exists for the given page name
|
boolean |
folderExists(String folderName)
Check if a folder exists for the given folder name
|
boolean |
fragmentDefinitionExists(String name)
Check if a fragment definition exists for the given name
|
NodeSet |
getAll(Folder folder)
getAll
|
boolean |
getConstraintsEnabled()
getConstraintsEnabled
|
DynamicPage |
getDynamicPage(Folder folder,
String name)
getDynamicPage
|
DynamicPage |
getDynamicPage(String path)
getDynamicPage
|
NodeSet |
getDynamicPages(Folder folder)
getDynamicPages
|
Folder |
getFolder(Folder folder,
String name)
getFolder
|
Folder |
getFolder(String folderPath)
getFolder
|
NodeSet |
getFolders(Folder folder)
getFolders
|
FragmentDefinition |
getFragmentDefinition(Folder folder,
String name)
getFragmentDefinition
|
FragmentDefinition |
getFragmentDefinition(String path)
getFragmentDefinition
|
NodeSet |
getFragmentDefinitions(Folder folder)
getFragmentDefinition
|
FragmentPropertyManagement |
getFragmentPropertyManager()
Supplemental and optional service supported by Page Managers.
|
Link |
getLink(Folder folder,
String name)
getLink
|
Link |
getLink(String name)
getLink
|
NodeSet |
getLinks(Folder folder)
getLinks
|
long |
getNodeReapingInterval()
Get node reaping interval.
|
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
|
PageTemplate |
getPageTemplate(Folder folder,
String name)
getPageTemplate
|
PageTemplate |
getPageTemplate(String path)
getPageTemplate
|
NodeSet |
getPageTemplates(Folder folder)
getPageTemplates
|
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 |
isDistributed()
Returns whether the page manager cache is currently part of a distributed
cache cluster.
|
boolean |
linkExists(String linkName)
Check if a link exists for the given link name
|
DynamicPage |
newDynamicPage(String path)
Creates a new empty DynamicPage instance
|
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
|
FragmentDefinition |
newFragmentDefinition(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(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
|
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(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(String pageName)
Check if a page exists for the given page name
|
boolean |
pageTemplateExists(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,
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(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
|
static final String SERVICE_NAME
static final String USER_PROPERTY_SCOPE
static final String GROUP_PROPERTY_SCOPE
static final String ROLE_PROPERTY_SCOPE
static final String GLOBAL_PROPERTY_SCOPE
static final String ALL_PROPERTY_SCOPE
static final boolean GROUP_AND_ROLE_PROPERTY_SCOPES_ENABLED
boolean getConstraintsEnabled()
getConstraintsEnabled
boolean getPermissionsEnabled()
getPermissionsEnabled
long getNodeReapingInterval()
Page newPage(String path)
PageTemplate newPageTemplate(String path)
DynamicPage newDynamicPage(String path)
FragmentDefinition newFragmentDefinition(String path)
Folder newFolder(String path)
Link newLink(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(String path) throws PageNotFoundException, NodeException
getPage
Returns a Page based on its pathpath
- PageNotFoundException
- if the page cannot be foundNodeException
PageTemplate getPageTemplate(String path) throws PageNotFoundException, NodeException
getPageTemplate
Returns a PageTemplate based on its pathpath
- PageNotFoundException
- if the page cannot be foundNodeException
DynamicPage getDynamicPage(String path) throws PageNotFoundException, NodeException
getDynamicPage
Returns a DynamicPage based on its pathpath
- PageNotFoundException
- if the page cannot be foundNodeException
FragmentDefinition getFragmentDefinition(String path) throws PageNotFoundException, NodeException
getFragmentDefinition
Returns a FragmentDefinition based on its pathpath
- PageNotFoundException
- if the page cannot be foundNodeException
Link getLink(String name) throws DocumentNotFoundException, UnsupportedDocumentTypeException, NodeException
getLink
Returns a Link document for the given pathname
- The path of the document to be retrieved.PageNotFoundException
- if the page cannot be foundNodeException
DocumentNotFoundException
UnsupportedDocumentTypeException
PageSecurity getPageSecurity() throws DocumentNotFoundException, UnsupportedDocumentTypeException, NodeException
getPageSecurity
Returns the PageSecurity documentDocumentNotFoundException
- if the document cannot be foundUnsupportedDocumentTypeException
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)
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, 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, 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, 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, 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, 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, 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, String path) throws NodeException
source
- The source Page object to be copiedpath
- a PSML normalized path to the new page to be createdNodeException
Page copyPage(Page source, 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 idsNodeException
PageTemplate copyPageTemplate(PageTemplate source, String path) throws NodeException
source
- The source PageTemplate object to be copiedpath
- a PSML normalized path to the new page template to be createdNodeException
PageTemplate copyPageTemplate(PageTemplate source, 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 idsNodeException
DynamicPage copyDynamicPage(DynamicPage source, String path) throws NodeException
source
- The source DynamicPage object to be copiedpath
- a PSML normalized path to the new dynamic page to be createdNodeException
DynamicPage copyDynamicPage(DynamicPage source, 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 idsNodeException
FragmentDefinition copyFragmentDefinition(FragmentDefinition source, String path) throws NodeException
source
- The source FragmentDefinition object to be copiedpath
- a PSML normalized path to the new fragment definition to be createdNodeException
FragmentDefinition copyFragmentDefinition(FragmentDefinition source, 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 idsNodeException
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 createdNodeException
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 createdNodeException
BaseFragmentElement copyFragment(BaseFragmentElement source, 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 nameNodeException
BaseFragmentElement copyFragment(BaseFragmentElement source, 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 idsNodeException
PageSecurity copyPageSecurity(PageSecurity source) throws NodeException
source
- The source PageSecurity definitionsNodeException
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 ownerNodeException
- if the root folder already existsvoid deepCopyFolder(Folder srcFolder, String destinationPath, 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 idsNodeException
- if the root folder already existsvoid deepMergeFolder(Folder srcFolder, String destinationPath, String owner) throws NodeException
source
- source folderdest
- destination folderowner
- set owner of the new folder(s), or null for no ownerNodeException
void deepMergeFolder(Folder srcFolder, String destinationPath, 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 idsNodeException
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 pageTemplateExists(String pageName)
pageName
- boolean dynamicPageExists(String pageName)
pageName
- boolean fragmentDefinitionExists(String name)
name
- 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,..)boolean isDistributed()
void notifyUpdatedNode(Node node)
node
- updated managed node if knownvoid cleanupRequestCache()
FragmentPropertyManagement getFragmentPropertyManager()
<T> List<T> createList()
T
- list element typeCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.