org.apache.jetspeed.om.page.psml
Class ContentPageImpl

java.lang.Object
  extended byorg.apache.jetspeed.om.page.psml.ContentPageImpl
All Implemented Interfaces:
org.apache.jetspeed.om.page.BaseElement, Cloneable, org.apache.jetspeed.om.page.ContentPage, org.apache.jetspeed.om.page.Document, org.apache.jetspeed.page.document.Node, org.apache.jetspeed.om.page.Page, org.apache.jetspeed.om.common.SecuredResource, Serializable

public class ContentPageImpl
extends Object
implements org.apache.jetspeed.om.page.ContentPage

See Also:
Serialized Form

Field Summary
private  Map cachedFragments
           
private  org.apache.jetspeed.om.page.Page page
           
private  org.apache.jetspeed.om.page.ContentFragment rootContentFragment
           
 
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
 
Fields inherited from interface org.apache.jetspeed.om.common.SecuredResource
EDIT_ACTION, VIEW_ACTION
 
Constructor Summary
ContentPageImpl(org.apache.jetspeed.om.page.Page page)
           
 
Method Summary
 void checkAccess(String actions)
           
 void checkConstraints(String actions)
           
 void checkPermissions(String actions)
           
 Object clone()
           
 boolean getConstraintsEnabled()
           
 org.apache.jetspeed.om.page.ContentFragment getContentFragmentById(String id)
           
 String getDefaultDecorator(String fragmentType)
           
 org.apache.jetspeed.om.page.Defaults getDefaults()
           
 String getDefaultSkin()
           
 org.apache.jetspeed.om.page.Fragment getFragmentById(String id)
           
 String getId()
           
 List getMenuDefinitions()
           
 org.apache.jetspeed.om.common.GenericMetadata getMetadata()
           
 String getName()
           
 org.apache.jetspeed.om.page.Page getPage()
          getPage - access wrapped page
 org.apache.jetspeed.page.document.Node getParent()
           
 String getPath()
           
 boolean getPermissionsEnabled()
           
 org.apache.jetspeed.om.page.ContentFragment getRootContentFragment()
           
 org.apache.jetspeed.om.page.Fragment getRootFragment()
           
 org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
           
 String getShortTitle()
           
 String getShortTitle(Locale locale)
           
 String getTitle()
           
 String getTitle(Locale locale)
           
 String getType()
           
 String getUrl()
           
 boolean isHidden()
           
 void setDefaultDecorator(String decoratorName, String fragmentType)
           
 void setDefaultSkin(String skinName)
           
 void setId(String id)
           
 void setMenuDefinitions(List definitions)
           
 void setParent(org.apache.jetspeed.page.document.Node parent)
           
 void setPath(String path)
           
 void setRootFragment(org.apache.jetspeed.om.page.Fragment fragment)
           
 void setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
           
 void setShortTitle(String title)
           
 void setTitle(String title)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

page

private final org.apache.jetspeed.om.page.Page page

cachedFragments

private final Map cachedFragments

rootContentFragment

private org.apache.jetspeed.om.page.ContentFragment rootContentFragment
Constructor Detail

ContentPageImpl

public ContentPageImpl(org.apache.jetspeed.om.page.Page page)
Method Detail

toString

public String toString()

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

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

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface org.apache.jetspeed.om.page.Page
Throws:
CloneNotSupportedException

getDefaultDecorator

public String getDefaultDecorator(String fragmentType)
Specified by:
getDefaultDecorator in interface org.apache.jetspeed.om.page.Page

getDefaultSkin

public String getDefaultSkin()
Specified by:
getDefaultSkin 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

setDefaultSkin

public void setDefaultSkin(String skinName)
Specified by:
setDefaultSkin 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

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

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(String actions)
                      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

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

setId

public void setId(String id)
Specified by:
setId 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

getDefaults

public org.apache.jetspeed.om.page.Defaults getDefaults()
Specified by:
getDefaults in interface org.apache.jetspeed.om.page.Page


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.