|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.page.AbstractPageManager
public abstract class AbstractPageManager
AbstractPageManagerService
Field Summary | |
---|---|
protected java.lang.Class |
folderClass
|
protected java.lang.Class |
folderMenuDefinitionClass
|
protected java.lang.Class |
folderMenuExcludeDefinitionClass
|
protected java.lang.Class |
folderMenuIncludeDefinitionClass
|
protected java.lang.Class |
folderMenuOptionsDefinitionClass
|
protected java.lang.Class |
folderMenuSeparatorDefinitionClass
|
protected java.lang.Class |
folderSecurityConstraintClass
|
protected java.lang.Class |
fragmentClass
|
protected java.lang.Class |
fragmentPreferenceClass
|
protected java.lang.Class |
fragmentSecurityConstraintClass
|
protected java.lang.Class |
linkClass
|
protected java.lang.Class |
linkSecurityConstraintClass
|
protected java.lang.Class |
pageClass
|
protected java.lang.Class |
pageMenuDefinitionClass
|
protected java.lang.Class |
pageMenuExcludeDefinitionClass
|
protected java.lang.Class |
pageMenuIncludeDefinitionClass
|
protected java.lang.Class |
pageMenuOptionsDefinitionClass
|
protected java.lang.Class |
pageMenuSeparatorDefinitionClass
|
protected java.lang.Class |
pageSecurityClass
|
protected java.lang.Class |
pageSecurityConstraintClass
|
protected java.lang.Class |
pageSecuritySecurityConstraintClass
|
protected java.lang.Class |
propertyClass
|
protected java.lang.Class |
securityConstraintsClass
|
protected java.lang.Class |
securityConstraintsDefClass
|
Fields inherited from interface org.apache.jetspeed.page.PageManager |
---|
SERVICE_NAME |
Constructor Summary | |
---|---|
AbstractPageManager(boolean permissionsEnabled,
boolean constraintsEnabled)
|
|
AbstractPageManager(boolean permissionsEnabled,
boolean constraintsEnabled,
java.util.Map modelClasses)
|
Method Summary | |
---|---|
void |
addListener(PageManagerEventListener listener)
addListener - add page manager event listener |
protected void |
copyConstraint(SecurityConstraint srcConstraint,
SecurityConstraint dstConstraint)
|
Folder |
copyFolder(Folder source,
java.lang.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,
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 |
Link |
copyLink(Link source,
java.lang.String path)
Copy the source link creating and returning a new copy of the link |
protected java.util.List |
copyMenuDefinitions(java.lang.String type,
java.util.List srcMenus)
|
protected java.lang.Object |
copyMenuElement(java.lang.String type,
java.lang.Object srcElement)
|
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 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. |
protected SecurityConstraints |
copySecurityConstraints(java.lang.String type,
SecurityConstraints 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 |
boolean |
folderExists(java.lang.String folderName)
Check if a folder exists for the given folder name |
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
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 |
linkExists(java.lang.String linkName)
Check if a link exists for the given link name |
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 |
FragmentPreference |
newFragmentPreference()
newFragmentPreference - creates a new security constraints definition |
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 |
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 |
void |
notifyNewNode(Node node)
notifyNewNode - notify page manager event listeners of new node event |
void |
notifyRemovedNode(Node node)
notifyRemovedNode - notify page manager event listeners of removed node event |
void |
notifyUpdatedNode(Node node)
notifyUpdatedNode - notify page manager event listeners of updated node event |
boolean |
pageExists(java.lang.String pageName)
Check if a page exists for the given page name |
void |
removeListener(PageManagerEventListener listener)
removeListener - remove page manager event listener |
void |
reset()
reset - force subsequent refresh from persistent store |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.page.PageManager |
---|
addPages, checkConstraint, getAll, getContentPage, getFolder, getFolder, getFolders, getLink, getLink, getLinks, getPage, getPage, getPages, getPageSecurity, getPageSecurity, removeFolder, removeLink, removePage, removePageSecurity, updateFolder, updateFolder, updateLink, updatePage, updatePageSecurity |
Field Detail |
---|
protected java.lang.Class fragmentClass
protected java.lang.Class pageClass
protected java.lang.Class folderClass
protected java.lang.Class linkClass
protected java.lang.Class pageSecurityClass
protected java.lang.Class propertyClass
protected java.lang.Class folderMenuDefinitionClass
protected java.lang.Class folderMenuExcludeDefinitionClass
protected java.lang.Class folderMenuIncludeDefinitionClass
protected java.lang.Class folderMenuOptionsDefinitionClass
protected java.lang.Class folderMenuSeparatorDefinitionClass
protected java.lang.Class pageMenuDefinitionClass
protected java.lang.Class pageMenuExcludeDefinitionClass
protected java.lang.Class pageMenuIncludeDefinitionClass
protected java.lang.Class pageMenuOptionsDefinitionClass
protected java.lang.Class pageMenuSeparatorDefinitionClass
protected java.lang.Class securityConstraintsClass
protected java.lang.Class folderSecurityConstraintClass
protected java.lang.Class pageSecurityConstraintClass
protected java.lang.Class fragmentSecurityConstraintClass
protected java.lang.Class linkSecurityConstraintClass
protected java.lang.Class pageSecuritySecurityConstraintClass
protected java.lang.Class securityConstraintsDefClass
protected java.lang.Class fragmentPreferenceClass
Constructor Detail |
---|
public AbstractPageManager(boolean permissionsEnabled, boolean constraintsEnabled)
public AbstractPageManager(boolean permissionsEnabled, boolean constraintsEnabled, java.util.Map modelClasses)
Method Detail |
---|
public boolean getPermissionsEnabled()
getPermissionsEnabled
getPermissionsEnabled
in interface PageManager
PageManager.getPermissionsEnabled()
public boolean getConstraintsEnabled()
getConstraintsEnabled
getConstraintsEnabled
in interface PageManager
PageManager.getConstraintsEnabled()
public Page newPage(java.lang.String path)
PageManager
newPage
in interface PageManager
public Folder newFolder(java.lang.String path)
PageManager
newFolder
in interface PageManager
public Link newLink(java.lang.String path)
PageManager
newLink
in interface PageManager
public PageSecurity newPageSecurity()
PageManager
newPageSecurity
in interface PageManager
public Fragment newFragment()
PageManager
newFragment
in interface PageManager
public Fragment newPortletFragment()
PageManager
newPortletFragment
in interface PageManager
public MenuDefinition newFolderMenuDefinition()
newFolderMenuDefinition
in interface PageManager
public MenuExcludeDefinition newFolderMenuExcludeDefinition()
newFolderMenuExcludeDefinition
in interface PageManager
public MenuIncludeDefinition newFolderMenuIncludeDefinition()
newFolderMenuIncludeDefinition
in interface PageManager
public MenuOptionsDefinition newFolderMenuOptionsDefinition()
newFolderMenuOptionsDefinition
in interface PageManager
public MenuSeparatorDefinition newFolderMenuSeparatorDefinition()
newFolderMenuSeparatorDefinition
in interface PageManager
public MenuDefinition newPageMenuDefinition()
newPageMenuDefinition
in interface PageManager
public MenuExcludeDefinition newPageMenuExcludeDefinition()
newPageMenuExcludeDefinition
in interface PageManager
public MenuIncludeDefinition newPageMenuIncludeDefinition()
newPageMenuIncludeDefinition
in interface PageManager
public MenuOptionsDefinition newPageMenuOptionsDefinition()
newPageMenuOptionsDefinition
in interface PageManager
public MenuSeparatorDefinition newPageMenuSeparatorDefinition()
newPageMenuSeparatorDefinition
in interface PageManager
public SecurityConstraints newSecurityConstraints()
newSecurityConstraints
in interface PageManager
public SecurityConstraint newFolderSecurityConstraint()
newFolderSecurityConstraint
in interface PageManager
public SecurityConstraint newPageSecurityConstraint()
newPageSecurityConstraint
in interface PageManager
public SecurityConstraint newFragmentSecurityConstraint()
newFragmentSecurityConstraint
in interface PageManager
public SecurityConstraint newLinkSecurityConstraint()
newLinkSecurityConstraint
in interface PageManager
public SecurityConstraint newPageSecuritySecurityConstraint()
newPageSecuritySecurityConstraint
in interface PageManager
public SecurityConstraintsDef newSecurityConstraintsDef()
newSecurityConstraintsDef
in interface PageManager
public FragmentPreference newFragmentPreference()
newFragmentPreference
in interface PageManager
public void addListener(PageManagerEventListener listener)
addListener
in interface PageManager
listener
- page manager event listenerpublic void removeListener(PageManagerEventListener listener)
removeListener
in interface PageManager
listener
- page manager event listenerpublic void reset()
PageManager
reset
in interface PageManager
public void notifyNewNode(Node node)
node
- new managed node if knownpublic void notifyUpdatedNode(Node node)
node
- updated managed node if knownpublic void notifyRemovedNode(Node node)
node
- removed managed node if knownpublic Folder copyFolder(Folder source, java.lang.String path) throws NodeException
PageManager
copyFolder
in interface PageManager
source
- The source Folder object to be copiedpath
- a PSML normalized path to the new folder to be created
NodeException
public Page copyPage(Page source, java.lang.String path) throws NodeException
PageManager
copyPage
in interface PageManager
source
- The source Page object to be copiedpath
- a PSML normalized path to the new page to be created
NodeException
public Fragment copyFragment(Fragment source, java.lang.String name) throws NodeException
PageManager
copyFragment
in interface PageManager
source
- The source Fragment object to be copied
NodeException
public Link copyLink(Link source, java.lang.String path) throws NodeException
PageManager
copyLink
in interface PageManager
source
- The source Link object to be copiedpath
- a PSML normalized path to the new link to be created
NodeException
public PageSecurity copyPageSecurity(PageSecurity source) throws NodeException
PageManager
copyPageSecurity
in interface PageManager
source
- The source PageSecurity definitions
NodeException
protected java.util.List copyMenuDefinitions(java.lang.String type, java.util.List srcMenus)
protected java.lang.Object copyMenuElement(java.lang.String type, java.lang.Object srcElement)
protected void copyConstraint(SecurityConstraint srcConstraint, SecurityConstraint dstConstraint)
protected SecurityConstraints copySecurityConstraints(java.lang.String type, SecurityConstraints source)
public void deepCopyFolder(Folder srcFolder, java.lang.String destinationPath, java.lang.String owner) throws NodeException
deepCopyFolder
in interface PageManager
source
- source folderdest
- destination folder
NodeException
public Page getUserPage(java.lang.String userName, java.lang.String pageName) throws PageNotFoundException, NodeException
PageManager
getUserPage
in interface PageManager
PageNotFoundException
NodeException
public Folder getUserFolder(java.lang.String userName) throws FolderNotFoundException, InvalidFolderException, NodeException
PageManager
getUserFolder
in interface PageManager
FolderNotFoundException
InvalidFolderException
NodeException
public boolean folderExists(java.lang.String folderName)
PageManager
folderExists
in interface PageManager
public boolean pageExists(java.lang.String pageName)
PageManager
pageExists
in interface PageManager
public boolean linkExists(java.lang.String linkName)
PageManager
linkExists
in interface PageManager
public boolean userFolderExists(java.lang.String userName)
PageManager
userFolderExists
in interface PageManager
public boolean userPageExists(java.lang.String userName, java.lang.String pageName)
PageManager
userPageExists
in interface PageManager
public void createUserHomePagesFromRoles(javax.security.auth.Subject subject) throws NodeException
createUserHomePagesFromRoles
in interface PageManager
subject
-
NodeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |