|
||||||||||
| 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 PageManagerPageManager.getPermissionsEnabled()public boolean getConstraintsEnabled()
getConstraintsEnabled
getConstraintsEnabled in interface PageManagerPageManager.getConstraintsEnabled()public Page newPage(java.lang.String path)
PageManager
newPage in interface PageManagerpublic Folder newFolder(java.lang.String path)
PageManager
newFolder in interface PageManagerpublic Link newLink(java.lang.String path)
PageManager
newLink in interface PageManagerpublic PageSecurity newPageSecurity()
PageManager
newPageSecurity in interface PageManagerpublic Fragment newFragment()
PageManager
newFragment in interface PageManagerpublic Fragment newPortletFragment()
PageManager
newPortletFragment in interface PageManagerpublic MenuDefinition newFolderMenuDefinition()
newFolderMenuDefinition in interface PageManagerpublic MenuExcludeDefinition newFolderMenuExcludeDefinition()
newFolderMenuExcludeDefinition in interface PageManagerpublic MenuIncludeDefinition newFolderMenuIncludeDefinition()
newFolderMenuIncludeDefinition in interface PageManagerpublic MenuOptionsDefinition newFolderMenuOptionsDefinition()
newFolderMenuOptionsDefinition in interface PageManagerpublic MenuSeparatorDefinition newFolderMenuSeparatorDefinition()
newFolderMenuSeparatorDefinition in interface PageManagerpublic MenuDefinition newPageMenuDefinition()
newPageMenuDefinition in interface PageManagerpublic MenuExcludeDefinition newPageMenuExcludeDefinition()
newPageMenuExcludeDefinition in interface PageManagerpublic MenuIncludeDefinition newPageMenuIncludeDefinition()
newPageMenuIncludeDefinition in interface PageManagerpublic MenuOptionsDefinition newPageMenuOptionsDefinition()
newPageMenuOptionsDefinition in interface PageManagerpublic MenuSeparatorDefinition newPageMenuSeparatorDefinition()
newPageMenuSeparatorDefinition in interface PageManagerpublic SecurityConstraints newSecurityConstraints()
newSecurityConstraints in interface PageManagerpublic SecurityConstraint newFolderSecurityConstraint()
newFolderSecurityConstraint in interface PageManagerpublic SecurityConstraint newPageSecurityConstraint()
newPageSecurityConstraint in interface PageManagerpublic SecurityConstraint newFragmentSecurityConstraint()
newFragmentSecurityConstraint in interface PageManagerpublic SecurityConstraint newLinkSecurityConstraint()
newLinkSecurityConstraint in interface PageManagerpublic SecurityConstraint newPageSecuritySecurityConstraint()
newPageSecuritySecurityConstraint in interface PageManagerpublic SecurityConstraintsDef newSecurityConstraintsDef()
newSecurityConstraintsDef in interface PageManagerpublic FragmentPreference newFragmentPreference()
newFragmentPreference in interface PageManagerpublic void addListener(PageManagerEventListener listener)
addListener in interface PageManagerlistener - page manager event listenerpublic void removeListener(PageManagerEventListener listener)
removeListener in interface PageManagerlistener - page manager event listenerpublic void reset()
PageManager
reset in interface PageManagerpublic 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 known
public Folder copyFolder(Folder source,
java.lang.String path)
throws NodeException
PageManager
copyFolder in interface PageManagersource - 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 PageManagersource - 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 PageManagersource - The source Fragment object to be copied
NodeException
public Link copyLink(Link source,
java.lang.String path)
throws NodeException
PageManager
copyLink in interface PageManagersource - 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 PageManagersource - 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 PageManagersource - source folderdest - destination folder
NodeException
public Page getUserPage(java.lang.String userName,
java.lang.String pageName)
throws PageNotFoundException,
NodeException
PageManager
getUserPage in interface PageManagerPageNotFoundException
NodeException
public Folder getUserFolder(java.lang.String userName)
throws FolderNotFoundException,
InvalidFolderException,
NodeException
PageManager
getUserFolder in interface PageManagerFolderNotFoundException
InvalidFolderException
NodeExceptionpublic boolean folderExists(java.lang.String folderName)
PageManager
folderExists in interface PageManagerpublic boolean pageExists(java.lang.String pageName)
PageManager
pageExists in interface PageManagerpublic boolean linkExists(java.lang.String linkName)
PageManager
linkExists in interface PageManagerpublic 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 PageManagersubject -
NodeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||