|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.om.page.ContentPageImpl
public class ContentPageImpl
| 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 | |
|---|---|
ContentPageImpl(Page page)
|
|
| Method Summary | |
|---|---|
void |
checkAccess(java.lang.String actions)
checkAccess |
void |
checkConstraints(java.lang.String actions)
checkConstraints |
void |
checkPermissions(int mask)
checkPermissions |
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
ContentFragment |
getContentFragmentById(java.lang.String id)
Returns a ContentFragment that wraps the actual Fragment metadata represented by the id argument. |
java.util.List |
getContentFragmentsByName(java.lang.String name)
Returns a list of ContentFragment that wrap the actual Fragment metadata represented by the name argument. |
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 |
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)
Overridden to to indicate that the Fragment returned
must also be an instance of ContentFragment. |
java.util.List |
getFragmentsByName(java.lang.String name)
Overridden to to indicate that the list of Fragment
instances returned must also be instances of ContentFragment. |
java.lang.String |
getId()
Returns the unique Id of this element. |
java.util.List |
getMenuDefinitions()
getMenuDefinitions - get list of menu definitions |
GenericMetadata |
getMetadata()
getMetadata |
java.lang.String |
getName()
getName |
Page |
getPage()
getPage - access wrapped page |
Node |
getParent()
getParent |
java.lang.String |
getPath()
getPath |
boolean |
getPermissionsEnabled()
getPermissionsEnabled |
ContentFragment |
getRootContentFragment()
Provides access to a per-request safe ContentFragment. |
Fragment |
getRootFragment()
Overridden to to indicate that the Fragment returned
must also be an instance of ContentFragment. |
SecurityConstraints |
getSecurityConstraints()
getSecurityConstraints |
java.lang.String |
getShortTitle()
Returns the short title in the default Locale |
java.lang.String |
getShortTitle(java.util.Locale locale)
getShortTitle |
java.lang.String |
getSkin()
Returns the name of the default skin that applies to this page. |
java.lang.String |
getTitle()
Returns the title in the default Locale |
java.lang.String |
getTitle(java.util.Locale locale)
getTitle |
java.lang.String |
getType()
getType |
java.lang.String |
getUrl()
getUrl |
java.lang.String |
getVersion()
Gets the version number |
boolean |
isDirty()
isDirty |
boolean |
isHidden()
isHidden |
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 |
SecurityConstraint |
newSecurityConstraint()
newSecurityConstraint |
SecurityConstraints |
newSecurityConstraints()
newSecurityConstraints |
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 |
setDirty(boolean dirty)
setDirty |
void |
setHidden(boolean hidden)
setHidden |
void |
setMenuDefinitions(java.util.List definitions)
setMenuDefinitions - set list of menu definitions |
void |
setParent(Node parent)
setParent |
void |
setPath(java.lang.String path)
setPath |
void |
setRootContentFragment(ContentFragment frag)
|
void |
setRootFragment(Fragment fragment)
Sets the top level fragment of this page. |
void |
setSecurityConstraints(SecurityConstraints constraints)
setSecurityConstraints |
void |
setShortTitle(java.lang.String title)
Sets the short title for the default Locale |
void |
setSkin(java.lang.String skinName)
Modifies the skin for this page. |
void |
setTitle(java.lang.String title)
Sets the title for the default Locale |
void |
setVersion(java.lang.String version)
Sets the version number |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentPageImpl(Page page)
| Method Detail |
|---|
public void setRootContentFragment(ContentFragment frag)
setRootContentFragment in interface ContentPagepublic java.lang.String toString()
toString in class java.lang.Objectpublic ContentFragment getContentFragmentById(java.lang.String id)
ContentPage
getContentFragmentById in interface ContentPageid - unique id of the Fragment we want to retrieve.
public Fragment getFragmentById(java.lang.String id)
ContentPageFragment returned
must also be an instance of ContentFragment.
getFragmentById in interface ContentPagegetFragmentById in interface Pageid - the fragment id to look for
public Fragment removeFragmentById(java.lang.String id)
Page
removeFragmentById in interface Pageid - the fragment id to remove
public java.util.List getContentFragmentsByName(java.lang.String name)
ContentPage
getContentFragmentsByName in interface ContentPagename - name of the Fragments we want to retrieve.
public java.util.List getFragmentsByName(java.lang.String name)
ContentPageFragment
instances returned must also be instances of ContentFragment.
getFragmentsByName in interface ContentPagegetFragmentsByName in interface Pagename - the fragments name to look for
public ContentFragment getRootContentFragment()
ContentPage
getRootContentFragment in interface ContentPagepublic Fragment getRootFragment()
ContentPageFragment returned
must also be an instance of ContentFragment.
getRootFragment in interface ContentPagegetRootFragment in interface Pagepublic java.lang.String getEffectiveDefaultDecorator(java.lang.String fragmentType)
Page
getEffectiveDefaultDecorator in interface PagefragmentType - the type of fragment considered
public java.lang.String getDefaultDecorator(java.lang.String fragmentType)
Page
getDefaultDecorator in interface PagefragmentType - the type of fragment considered
public java.lang.String getSkin()
Page
getSkin in interface Page
public void setDefaultDecorator(java.lang.String decoratorName,
java.lang.String fragmentType)
Page
setDefaultDecorator in interface PagedecoratorName - the name of the new decorator for the typefragmentType - the type of fragment consideredpublic void setSkin(java.lang.String skinName)
Page
setSkin in interface PageskinName - the name of the new skin for the pagepublic void setRootFragment(Fragment fragment)
Page
setRootFragment in interface Pagepublic java.util.List getMenuDefinitions()
Page
getMenuDefinitions in interface Pagepublic MenuDefinition newMenuDefinition()
Page
newMenuDefinition in interface Pagepublic MenuExcludeDefinition newMenuExcludeDefinition()
Page
newMenuExcludeDefinition in interface Pagepublic MenuIncludeDefinition newMenuIncludeDefinition()
Page
newMenuIncludeDefinition in interface Pagepublic MenuOptionsDefinition newMenuOptionsDefinition()
Page
newMenuOptionsDefinition in interface Pagepublic MenuSeparatorDefinition newMenuSeparatorDefinition()
Page
newMenuSeparatorDefinition in interface Pagepublic void setMenuDefinitions(java.util.List definitions)
Page
setMenuDefinitions in interface Pagedefinitions - definition listpublic GenericMetadata getMetadata()
NodegetMetadata
getMetadata in interface Nodepublic java.lang.String getName()
NodegetName
Returns the name of this node relative toNode.getParent().getPath()
getName in interface Nodepublic Node getParent()
NodegetParent
getParent in interface Nodepublic java.lang.String getPath()
NodegetPath
getPath in interface Nodepublic java.lang.String getShortTitle(java.util.Locale locale)
NodegetShortTitle
Returns the short title for the specified locale.
getShortTitle in interface Nodepublic java.lang.String getTitle(java.util.Locale locale)
NodegetTitle
Returns the title for the specified locale.
getTitle in interface Nodepublic java.lang.String getType()
NodegetType
getType in interface Nodepublic java.lang.String getUrl()
NodegetUrl
getUrl in interface Nodepublic boolean isHidden()
NodeisHidden
Whether or not this Node should be hidden in terms of the view. This MUST NOT restrict
the presence of this node in terms of being returned in
org.apache.jetspeed.page.document.NodeSet.
isHidden in interface Nodepublic void setHidden(boolean hidden)
NodesetHidden
Whether or not this Node should be hidden in terms of the view.
setHidden in interface Nodehidden - flagpublic void setParent(Node parent)
NodesetParent
setParent in interface Nodepublic void setPath(java.lang.String path)
NodesetPath
Sets the full-qualified path of this node.
setPath in interface Node
public void checkAccess(java.lang.String actions)
throws java.lang.SecurityException
SecuredResourcecheckAccess
checkAccess in interface SecuredResourceactions - list to be checked against in CSV string form
java.lang.SecurityException
public void checkConstraints(java.lang.String actions)
throws java.lang.SecurityException
SecuredResourcecheckConstraints
checkConstraints in interface SecuredResourceactions - list to be checked against in CSV string form
java.lang.SecurityException
public void checkPermissions(int mask)
throws java.lang.SecurityException
SecuredResourcecheckPermissions
checkPermissions in interface SecuredResourcemask - Mask of actions to be checked
java.lang.SecurityExceptionpublic boolean getConstraintsEnabled()
SecuredResourcegetConstraintsEnabled
getConstraintsEnabled in interface SecuredResourcepublic boolean getPermissionsEnabled()
SecuredResourcegetPermissionsEnabled
getPermissionsEnabled in interface SecuredResourcepublic SecurityConstraints getSecurityConstraints()
SecuredResourcegetSecurityConstraints
getSecurityConstraints in interface SecuredResourcepublic SecurityConstraints newSecurityConstraints()
SecuredResourcenewSecurityConstraints
newSecurityConstraints in interface SecuredResourcepublic SecurityConstraint newSecurityConstraint()
SecuredResourcenewSecurityConstraint
newSecurityConstraint in interface SecuredResourcepublic void setSecurityConstraints(SecurityConstraints constraints)
SecuredResourcesetSecurityConstraints
setSecurityConstraints in interface SecuredResourceconstraints - security constraints for resourcepublic java.lang.String getId()
BaseElement
getId in interface BaseElementpublic java.lang.String getShortTitle()
BaseElement
getShortTitle in interface BaseElementpublic java.lang.String getTitle()
BaseElement
getTitle in interface BaseElementpublic void setShortTitle(java.lang.String title)
BaseElement
setShortTitle in interface BaseElementtitle - the new titlepublic void setTitle(java.lang.String title)
BaseElement
setTitle in interface BaseElementtitle - the new titlepublic Page getPage()
public java.lang.String getVersion()
Document
getVersion in interface Documentpublic void setVersion(java.lang.String version)
Document
setVersion in interface Documentversion - version number is a string composed of optional point separated digitspublic boolean isDirty()
DocumentisDirty
Whether this node is dirty, i.e. should be updated in the persistent store.
isDirty in interface Documentpublic void setDirty(boolean dirty)
DocumentsetDirty
Flag the node as dirty / clean, i.e. should be resp. should not be updated in the persistent store
setDirty in interface Document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||