org.apache.jetspeed.om.page
Class ContentPageImpl
java.lang.Object
org.apache.jetspeed.om.page.ContentPageImpl
- All Implemented Interfaces:
- Serializable, org.apache.jetspeed.om.common.SecuredResource, org.apache.jetspeed.om.page.BaseElement, org.apache.jetspeed.om.page.ContentPage, org.apache.jetspeed.om.page.Document, org.apache.jetspeed.om.page.Page, org.apache.jetspeed.page.document.Node
public class ContentPageImpl
- extends Object
- implements org.apache.jetspeed.om.page.ContentPage
- See Also:
- Serialized Form
Fields inherited from interface org.apache.jetspeed.om.page.Page |
DOCUMENT_TYPE |
Fields inherited from interface org.apache.jetspeed.page.document.Node |
PATH_SEPARATOR, PATH_SEPARATOR_CHAR |
page
private final org.apache.jetspeed.om.page.Page page
cachedFragments
private final Map cachedFragments
rootContentFragment
private org.apache.jetspeed.om.page.ContentFragment rootContentFragment
dirty
private boolean dirty
ContentPageImpl
public ContentPageImpl(org.apache.jetspeed.om.page.Page page)
setRootContentFragment
public void setRootContentFragment(org.apache.jetspeed.om.page.ContentFragment frag)
- Specified by:
setRootContentFragment
in interface org.apache.jetspeed.om.page.ContentPage
toString
public String toString()
- Overrides:
toString
in class Object
getContentFragmentById
public org.apache.jetspeed.om.page.ContentFragment getContentFragmentById(String id)
- Specified by:
getContentFragmentById
in interface org.apache.jetspeed.om.page.ContentPage
getFragmentById
public org.apache.jetspeed.om.page.Fragment getFragmentById(String id)
- Specified by:
getFragmentById
in interface org.apache.jetspeed.om.page.ContentPage
- Specified by:
getFragmentById
in interface org.apache.jetspeed.om.page.Page
removeFragmentById
public org.apache.jetspeed.om.page.Fragment removeFragmentById(String id)
- Specified by:
removeFragmentById
in interface org.apache.jetspeed.om.page.Page
getContentFragmentsByName
public List getContentFragmentsByName(String name)
- Specified by:
getContentFragmentsByName
in interface org.apache.jetspeed.om.page.ContentPage
getFragmentsByName
public List getFragmentsByName(String name)
- Specified by:
getFragmentsByName
in interface org.apache.jetspeed.om.page.ContentPage
- Specified by:
getFragmentsByName
in interface org.apache.jetspeed.om.page.Page
getRootContentFragment
public org.apache.jetspeed.om.page.ContentFragment getRootContentFragment()
- Specified by:
getRootContentFragment
in interface org.apache.jetspeed.om.page.ContentPage
getRootFragment
public org.apache.jetspeed.om.page.Fragment getRootFragment()
- Specified by:
getRootFragment
in interface org.apache.jetspeed.om.page.ContentPage
- Specified by:
getRootFragment
in interface org.apache.jetspeed.om.page.Page
getEffectiveDefaultDecorator
public String getEffectiveDefaultDecorator(String fragmentType)
- Specified by:
getEffectiveDefaultDecorator
in interface org.apache.jetspeed.om.page.Page
getDefaultDecorator
public String getDefaultDecorator(String fragmentType)
- Specified by:
getDefaultDecorator
in interface org.apache.jetspeed.om.page.Page
getSkin
public String getSkin()
- Specified by:
getSkin
in interface org.apache.jetspeed.om.page.Page
setDefaultDecorator
public void setDefaultDecorator(String decoratorName,
String fragmentType)
- Specified by:
setDefaultDecorator
in interface org.apache.jetspeed.om.page.Page
setSkin
public void setSkin(String skinName)
- Specified by:
setSkin
in interface org.apache.jetspeed.om.page.Page
setRootFragment
public void setRootFragment(org.apache.jetspeed.om.page.Fragment fragment)
- Specified by:
setRootFragment
in interface org.apache.jetspeed.om.page.Page
getMenuDefinitions
public List getMenuDefinitions()
- Specified by:
getMenuDefinitions
in interface org.apache.jetspeed.om.page.Page
newMenuDefinition
public org.apache.jetspeed.om.folder.MenuDefinition newMenuDefinition()
- Specified by:
newMenuDefinition
in interface org.apache.jetspeed.om.page.Page
newMenuExcludeDefinition
public org.apache.jetspeed.om.folder.MenuExcludeDefinition newMenuExcludeDefinition()
- Specified by:
newMenuExcludeDefinition
in interface org.apache.jetspeed.om.page.Page
newMenuIncludeDefinition
public org.apache.jetspeed.om.folder.MenuIncludeDefinition newMenuIncludeDefinition()
- Specified by:
newMenuIncludeDefinition
in interface org.apache.jetspeed.om.page.Page
newMenuOptionsDefinition
public org.apache.jetspeed.om.folder.MenuOptionsDefinition newMenuOptionsDefinition()
- Specified by:
newMenuOptionsDefinition
in interface org.apache.jetspeed.om.page.Page
newMenuSeparatorDefinition
public org.apache.jetspeed.om.folder.MenuSeparatorDefinition newMenuSeparatorDefinition()
- Specified by:
newMenuSeparatorDefinition
in interface org.apache.jetspeed.om.page.Page
setMenuDefinitions
public void setMenuDefinitions(List definitions)
- Specified by:
setMenuDefinitions
in interface org.apache.jetspeed.om.page.Page
getMetadata
public org.apache.jetspeed.om.common.GenericMetadata getMetadata()
- Specified by:
getMetadata
in interface org.apache.jetspeed.page.document.Node
getName
public String getName()
- Specified by:
getName
in interface org.apache.jetspeed.page.document.Node
getParent
public org.apache.jetspeed.page.document.Node getParent()
- Specified by:
getParent
in interface org.apache.jetspeed.page.document.Node
getPath
public String getPath()
- Specified by:
getPath
in interface org.apache.jetspeed.page.document.Node
getShortTitle
public String getShortTitle(Locale locale)
- Specified by:
getShortTitle
in interface org.apache.jetspeed.page.document.Node
getTitle
public String getTitle(Locale locale)
- Specified by:
getTitle
in interface org.apache.jetspeed.page.document.Node
getType
public String getType()
- Specified by:
getType
in interface org.apache.jetspeed.page.document.Node
getUrl
public String getUrl()
- Specified by:
getUrl
in interface org.apache.jetspeed.page.document.Node
isHidden
public boolean isHidden()
- Specified by:
isHidden
in interface org.apache.jetspeed.page.document.Node
setHidden
public void setHidden(boolean hidden)
- Specified by:
setHidden
in interface org.apache.jetspeed.page.document.Node
setParent
public void setParent(org.apache.jetspeed.page.document.Node parent)
- Specified by:
setParent
in interface org.apache.jetspeed.page.document.Node
setPath
public void setPath(String path)
- Specified by:
setPath
in interface org.apache.jetspeed.page.document.Node
checkAccess
public void checkAccess(String actions)
throws SecurityException
- Specified by:
checkAccess
in interface org.apache.jetspeed.om.common.SecuredResource
- Throws:
SecurityException
checkConstraints
public void checkConstraints(String actions)
throws SecurityException
- Specified by:
checkConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
- Throws:
SecurityException
checkPermissions
public void checkPermissions(int mask)
throws SecurityException
- Specified by:
checkPermissions
in interface org.apache.jetspeed.om.common.SecuredResource
- Throws:
SecurityException
getConstraintsEnabled
public boolean getConstraintsEnabled()
- Specified by:
getConstraintsEnabled
in interface org.apache.jetspeed.om.common.SecuredResource
getPermissionsEnabled
public boolean getPermissionsEnabled()
- Specified by:
getPermissionsEnabled
in interface org.apache.jetspeed.om.common.SecuredResource
getSecurityConstraints
public org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
- Specified by:
getSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
newSecurityConstraints
public org.apache.jetspeed.om.common.SecurityConstraints newSecurityConstraints()
- Specified by:
newSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
newSecurityConstraint
public org.apache.jetspeed.om.common.SecurityConstraint newSecurityConstraint()
- Specified by:
newSecurityConstraint
in interface org.apache.jetspeed.om.common.SecuredResource
setSecurityConstraints
public void setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
- Specified by:
setSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
getId
public String getId()
- Specified by:
getId
in interface org.apache.jetspeed.om.page.BaseElement
getShortTitle
public String getShortTitle()
- Specified by:
getShortTitle
in interface org.apache.jetspeed.om.page.BaseElement
getTitle
public String getTitle()
- Specified by:
getTitle
in interface org.apache.jetspeed.om.page.BaseElement
setShortTitle
public void setShortTitle(String title)
- Specified by:
setShortTitle
in interface org.apache.jetspeed.om.page.BaseElement
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interface org.apache.jetspeed.om.page.BaseElement
getPage
public org.apache.jetspeed.om.page.Page getPage()
- getPage - access wrapped page
- Returns:
- wrapped page
getVersion
public String getVersion()
- Specified by:
getVersion
in interface org.apache.jetspeed.om.page.Document
setVersion
public void setVersion(String version)
- Specified by:
setVersion
in interface org.apache.jetspeed.om.page.Document
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interface org.apache.jetspeed.om.page.Document
setDirty
public void setDirty(boolean dirty)
- Specified by:
setDirty
in interface org.apache.jetspeed.om.page.Document
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.