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

java.lang.Object
  extended by org.apache.jetspeed.om.page.psml.AbstractBaseElement
      extended by org.apache.jetspeed.page.document.psml.AbstractNode
          extended by org.apache.jetspeed.om.page.psml.DocumentImpl
              extended by org.apache.jetspeed.om.page.psml.PageImpl
All Implemented Interfaces:
java.io.Serializable, SecuredResource, BaseElement, Document, Page, Node

public class PageImpl
extends DocumentImpl
implements Page

Version:
$Id: PageImpl.java 550655 2007-06-26 01:41:35Z taylor $
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
PageImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           equals
 java.lang.String getDefaultDecorator(java.lang.String fragmentType)
          Returns the name of the default decorator that applies in this page to fragments of the specified type
 DefaultsImpl getDefaults()
           
 java.lang.String getEffectiveDefaultDecorator(java.lang.String fragmentType)
          Returns the name of the default decorator as set here or in parent folders that applies in this page to fragments of the specified type.
 Fragment getFragmentById(java.lang.String id)
          Retrieves the fragment contained within this page, with the specified Id.
 java.util.List getFragmentsByName(java.lang.String name)
          Retrieves the fragments contained within this page, with the specified name.
 java.util.List getMenuDefinitions()
          getMenuDefinitions - get list of menu definitions
 Fragment getRootFragment()
          Retrieves the top level fragment of this page.
 java.lang.String getSkin()
          Returns the name of the default skin that applies to this page.
 java.lang.String getType()
           getType
 int hashCode()
           hashCode
 void marshalling()
          marshalling - notification that this instance is to be saved to the persistent store
 MenuDefinition newMenuDefinition()
          newMenuDefinition - creates a new empty menu definition
 MenuExcludeDefinition newMenuExcludeDefinition()
          newMenuExcludeDefinition - creates a new empty menu exclude definition
 MenuIncludeDefinition newMenuIncludeDefinition()
          newMenuIncludeDefinition - creates a new empty menu include definition
 MenuOptionsDefinition newMenuOptionsDefinition()
          newMenuOptionsDefinition - creates a new empty menu options definition
 MenuSeparatorDefinition newMenuSeparatorDefinition()
          newMenuSeparatorDefinition - creates a new empty menu separator definition
 Fragment removeFragmentById(java.lang.String id)
          Removes the fragment contained within this page, with the specified Id.
 void setDefaultDecorator(java.lang.String decoratorName, java.lang.String fragmentType)
          Modifies the default decorator for the specified fragment type.
 void setDefaults(DefaultsImpl defaults)
           
 void setId(java.lang.String id)
           setId
 void setMenuDefinitions(java.util.List definitions)
          setMenuDefinitions - set list of menu definitions
 void setRootFragment(Fragment root)
          Sets the top level fragment of this page.
 void setSkin(java.lang.String skinName)
          Modifies the skin for this page.
 void unmarshalled()
          unmarshalled - notification that this instance has been loaded from the persistent store
 
Methods inherited from class org.apache.jetspeed.om.page.psml.DocumentImpl
getVersion, isDirty, setDirty, setVersion
 
Methods inherited from class org.apache.jetspeed.page.document.psml.AbstractNode
checkConstraints, checkPermissions, getEffectivePageSecurity, 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, newSecurityConstraint, newSecurityConstraints, setConstraintsEnabled, setHandlerFactory, setPermissionsEnabled, setSecurityConstraints, setShortTitle, setTitle, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.page.Document
getVersion, isDirty, setDirty, setVersion
 
Methods inherited from interface org.apache.jetspeed.page.document.Node
getMetadata, getName, getParent, getPath, getShortTitle, getTitle, getUrl, isHidden, setHidden, 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, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints
 

Constructor Detail

PageImpl

public PageImpl()
Method Detail

setId

public void setId(java.lang.String id)

setId

Overrides:
setId in class AbstractBaseElement
Parameters:
id -
See Also:
AbstractBaseElement.setId(java.lang.String)

equals

public boolean equals(java.lang.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()

getSkin

public java.lang.String getSkin()
Description copied from interface: Page
Returns the name of the default skin that applies to this page.

Specified by:
getSkin in interface Page
Returns:
the page default skin name

setSkin

public void setSkin(java.lang.String skinName)
Description copied from interface: Page
Modifies the skin for this page.

Specified by:
setSkin in interface Page
Parameters:
skinName - the name of the new skin for the page

getEffectiveDefaultDecorator

public java.lang.String getEffectiveDefaultDecorator(java.lang.String fragmentType)
Description copied from interface: Page
Returns the name of the default decorator as set here or in parent folders that applies in this page to fragments of the specified type.

Specified by:
getEffectiveDefaultDecorator in interface Page
Parameters:
fragmentType - the type of fragment considered
Returns:
the decorator name for the selected type

getDefaultDecorator

public java.lang.String getDefaultDecorator(java.lang.String fragmentType)
Description copied from interface: Page
Returns the name of the default decorator that applies in this page to fragments of the specified type

Specified by:
getDefaultDecorator in interface Page
Parameters:
fragmentType - the type of fragment considered
Returns:
the decorator name for the selected type

setDefaultDecorator

public void setDefaultDecorator(java.lang.String decoratorName,
                                java.lang.String fragmentType)
Description copied from interface: Page
Modifies the default decorator for the specified fragment type.

Specified by:
setDefaultDecorator in interface Page
Parameters:
decoratorName - the name of the new decorator for the type
fragmentType - the type of fragment considered

getRootFragment

public Fragment getRootFragment()
Description copied from interface: Page
Retrieves the top level fragment of this page. This Fragment should never be null.

Specified by:
getRootFragment in interface Page
Returns:
the base Fragment object for this page.

setRootFragment

public void setRootFragment(Fragment root)
Description copied from interface: Page
Sets the top level fragment of this page. This Fragment should never be null.

Specified by:
setRootFragment in interface Page

getFragmentById

public Fragment getFragmentById(java.lang.String id)
Description copied from interface: Page
Retrieves the fragment contained within this page, with the specified Id.

Specified by:
getFragmentById in interface Page
Parameters:
id - the fragment id to look for
Returns:
the found Fragment object or null if not found

removeFragmentById

public Fragment removeFragmentById(java.lang.String id)
Description copied from interface: Page
Removes the fragment contained within this page, with the specified Id.

Specified by:
removeFragmentById in interface Page
Parameters:
id - the fragment id to remove
Returns:
the removed Fragment object or null if not found

getFragmentsByName

public java.util.List getFragmentsByName(java.lang.String name)
Description copied from interface: Page
Retrieves the fragments contained within this page, with the specified name.

Specified by:
getFragmentsByName in interface Page
Parameters:
name - the fragment name to look for
Returns:
the list of found Fragment objects or null if not found

getDefaults

public DefaultsImpl getDefaults()

setDefaults

public void setDefaults(DefaultsImpl defaults)

getType

public java.lang.String getType()

getType

Specified by:
getType in interface Node
Returns:
See Also:
Node.getType()

getMenuDefinitions

public java.util.List getMenuDefinitions()
getMenuDefinitions - get list of menu definitions

Specified by:
getMenuDefinitions in interface Page
Returns:
definition list

newMenuDefinition

public MenuDefinition newMenuDefinition()
newMenuDefinition - creates a new empty menu definition

Specified by:
newMenuDefinition in interface Page
Returns:
a newly created MenuDefinition object for use in Page

newMenuExcludeDefinition

public MenuExcludeDefinition newMenuExcludeDefinition()
newMenuExcludeDefinition - creates a new empty menu exclude definition

Specified by:
newMenuExcludeDefinition in interface Page
Returns:
a newly created MenuExcludeDefinition object for use in Page

newMenuIncludeDefinition

public MenuIncludeDefinition newMenuIncludeDefinition()
newMenuIncludeDefinition - creates a new empty menu include definition

Specified by:
newMenuIncludeDefinition in interface Page
Returns:
a newly created MenuIncludeDefinition object for use in Page

newMenuOptionsDefinition

public MenuOptionsDefinition newMenuOptionsDefinition()
newMenuOptionsDefinition - creates a new empty menu options definition

Specified by:
newMenuOptionsDefinition in interface Page
Returns:
a newly created MenuOptionsDefinition object for use in Page

newMenuSeparatorDefinition

public MenuSeparatorDefinition newMenuSeparatorDefinition()
newMenuSeparatorDefinition - creates a new empty menu separator definition

Specified by:
newMenuSeparatorDefinition in interface Page
Returns:
a newly created MenuSeparatorDefinition object for use in Page

setMenuDefinitions

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

Specified by:
setMenuDefinitions in interface 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 DocumentImpl

marshalling

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

Overrides:
marshalling in class AbstractBaseElement


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