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

java.lang.Object
  extended byorg.apache.jetspeed.om.page.psml.AbstractBaseElement
      extended byorg.apache.jetspeed.page.document.AbstractNode
          extended byorg.apache.jetspeed.om.page.psml.PageImpl
All Implemented Interfaces:
org.apache.jetspeed.om.page.BaseElement, Cloneable, 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 PageImpl
extends AbstractNode
implements org.apache.jetspeed.om.page.Page

Version:
$Id: PageImpl.java 233224 2005-08-17 18:04:08Z weaver $
See Also:
Serialized Form

Field Summary
private  DefaultsImpl defaults
           
private  int hashCode
           
private  List menuDefinitions
          menuDefinitions - menu definitions for page
private  org.apache.jetspeed.om.page.Fragment root
           
 
Fields inherited from class org.apache.jetspeed.page.document.AbstractNode
 
Fields inherited from class org.apache.jetspeed.om.page.psml.AbstractBaseElement
 
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
PageImpl()
           
 
Method Summary
 Object clone()
          Create a clone of this object
 boolean equals(Object obj)
           equals
 String getDefaultDecorator(String fragmentType)
           
 org.apache.jetspeed.om.page.Defaults getDefaults()
           
 String getDefaultSkin()
           
 org.apache.jetspeed.om.page.Fragment getFragmentById(String id)
           
 List getMenuDefinitions()
          getMenuDefinitions - get list of menu definitions
 org.apache.jetspeed.om.page.Fragment getRootFragment()
           
 String getType()
           getType
 int hashCode()
           hashCode
 void marshalling()
          marshalling - notification that this instance is to be saved to the persistent store
 void setDefaultDecorator(String decoratorName, String fragmentType)
           
 void setDefaults(DefaultsImpl defaults)
           
 void setDefaultSkin(String skinName)
           
 void setId(String id)
           setId
 void setMenuDefinitions(List definitions)
          setMenuDefinitions - set list of menu definitions
 void setRootFragment(org.apache.jetspeed.om.page.Fragment root)
           
 void unmarshalled()
          unmarshalled - notification that this instance has been loaded from the persistent store
 
Methods inherited from class org.apache.jetspeed.page.document.AbstractNode
checkConstraints, checkPermissions, getLogicalPermissionPath, getMetadata, getMetadataFields, getName, getParent, getParent, getPath, getPhysicalPermissionPath, getProfiledPath, getShortTitle, getTitle, getTitleName, getUrl, isHidden, setHidden, setMetadata, setMetadataFields, setParent, setPath, setProfiledPath, setUrl
 
Methods inherited from class org.apache.jetspeed.om.page.psml.AbstractBaseElement
checkAccess, checkAccess, checkConstraints, checkPermissions, checkPermissions, getConstraintsEnabled, getHandlerFactory, getId, getPermissionsEnabled, getSecurityConstraints, getShortTitle, getTitle, grantViewActionAccess, setConstraintsEnabled, setHandlerFactory, setPermissionsEnabled, setSecurityConstraints, setShortTitle, setTitle, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.page.document.Node
getMetadata, getName, getParent, getPath, getShortTitle, getTitle, getUrl, isHidden, setParent, setPath
 
Methods inherited from interface org.apache.jetspeed.om.page.BaseElement
getId, getShortTitle, getTitle, setShortTitle, setTitle
 
Methods inherited from interface org.apache.jetspeed.om.common.SecuredResource
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, setSecurityConstraints
 

Field Detail

defaults

private DefaultsImpl defaults

root

private org.apache.jetspeed.om.page.Fragment root

hashCode

private int hashCode

menuDefinitions

private List menuDefinitions
menuDefinitions - menu definitions for page

Constructor Detail

PageImpl

public PageImpl()
Method Detail

setId

public void setId(String id)

setId

Specified by:
setId in interface org.apache.jetspeed.om.page.BaseElement
Overrides:
setId in class AbstractBaseElement
Parameters:
id -
See Also:
AbstractBaseElement.setId(java.lang.String)

equals

public boolean equals(Object obj)

equals

Overrides:
equals in class AbstractBaseElement
Parameters:
obj -
Returns:
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class AbstractBaseElement
Returns:
See Also:
Object.hashCode()

getDefaultSkin

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

getDefaultDecorator

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

getRootFragment

public org.apache.jetspeed.om.page.Fragment getRootFragment()
Specified by:
getRootFragment in interface org.apache.jetspeed.om.page.Page

setRootFragment

public void setRootFragment(org.apache.jetspeed.om.page.Fragment root)
Specified by:
setRootFragment in interface org.apache.jetspeed.om.page.Page

getFragmentById

public org.apache.jetspeed.om.page.Fragment getFragmentById(String id)
Specified by:
getFragmentById in interface org.apache.jetspeed.om.page.Page

getDefaults

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

setDefaults

public void setDefaults(DefaultsImpl defaults)

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: AbstractBaseElement
Create a clone of this object

Specified by:
clone in interface org.apache.jetspeed.om.page.Page
Overrides:
clone in class AbstractBaseElement
Throws:
CloneNotSupportedException

getType

public String getType()

getType

Specified by:
getType in interface org.apache.jetspeed.page.document.Node
Returns:
See Also:
Node.getType()

getMenuDefinitions

public List getMenuDefinitions()
getMenuDefinitions - get list of menu definitions

Specified by:
getMenuDefinitions in interface org.apache.jetspeed.om.page.Page
Returns:
definition list

setMenuDefinitions

public void setMenuDefinitions(List definitions)
setMenuDefinitions - set list of menu definitions

Specified by:
setMenuDefinitions in interface org.apache.jetspeed.om.page.Page
Parameters:
definitions - definition list

unmarshalled

public void unmarshalled()
unmarshalled - notification that this instance has been loaded from the persistent store

Overrides:
unmarshalled in class AbstractNode

marshalling

public void marshalling()
marshalling - notification that this instance is to be saved to the persistent store

Overrides:
marshalling in class AbstractBaseElement


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