|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.om.page.impl.BaseElementImpl
org.apache.jetspeed.page.document.impl.NodeImpl
public abstract class NodeImpl
NodeImpl
| Field Summary |
|---|
| Fields inherited from interface org.apache.jetspeed.page.document.Node |
|---|
PATH_SEPARATOR, PATH_SEPARATOR_CHAR |
| Constructor Summary | |
|---|---|
NodeImpl(SecurityConstraintsImpl constraints)
|
|
| Method Summary | |
|---|---|
void |
checkConstraints(java.util.List actions,
java.util.List userPrincipals,
java.util.List rolePrincipals,
java.util.List groupPrincipals,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkConstraints Check fully parameterized principal against specified security constraint scope. |
void |
checkPermissions(java.lang.String path,
int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
protected java.lang.String |
defaultTitleFromName()
defaultTitleFromName Compute default title from name. |
static java.lang.String |
getCanonicalNodePath(java.lang.String path)
getCanonicalNodePath Format paths used to set and query NodeImpl instances. |
PageSecurity |
getEffectivePageSecurity()
getEffectivePageSecurity |
java.lang.String |
getLogicalPermissionPath()
getLogicalPermissionPath |
GenericMetadata |
getMetadata()
getMetadata |
java.lang.String |
getName()
getName |
PageMetadataImpl |
getPageMetadata()
getPageMetadata Get page manager specific metadata implementation. |
Node |
getParent()
getParent |
java.lang.String |
getPath()
getPath |
java.lang.String |
getPhysicalPermissionPath()
getPhysicalPermissionPath |
java.lang.String |
getShortTitle(java.util.Locale locale)
getShortTitle |
java.lang.String |
getTitle(java.util.Locale locale)
getTitle |
abstract java.lang.String |
getType()
getType |
java.lang.String |
getUrl()
getUrl |
boolean |
isHidden()
isHidden |
PageMetadataImpl |
newPageMetadata(java.util.Collection fields)
newPageMetadata Construct page manager specific metadata implementation. |
void |
setHidden(boolean hidden)
setHidden |
void |
setName(java.lang.String name)
setName |
void |
setParent(Node parent)
setParent |
void |
setPath(java.lang.String path)
setPath |
| Methods inherited from class org.apache.jetspeed.om.page.impl.BaseElementImpl |
|---|
checkAccess, checkConstraints, checkPermissions, checkPermissions, equals, getConstraintsEnabled, getId, getPermissionsEnabled, getSecurityConstraints, getShortTitle, getTitle, grantViewActionAccess, hashCode, newSecurityConstraint, newSecurityConstraints, resetCachedSecurityConstraints, setConstraintsEnabled, setPermissionsEnabled, setSecurityConstraints, setShortTitle, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 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 |
|---|
public NodeImpl(SecurityConstraintsImpl constraints)
| Method Detail |
|---|
public static java.lang.String getCanonicalNodePath(java.lang.String path)
path - specified path
public PageMetadataImpl newPageMetadata(java.util.Collection fields)
fields - mutable fields collection
public PageMetadataImpl getPageMetadata()
protected java.lang.String defaultTitleFromName()
public java.lang.String getName()
BaseElementImpl
getName in interface NodegetName in class BaseElementImplpublic void setName(java.lang.String name)
BaseElementImpl
setName in class BaseElementImplname - element namepublic PageSecurity getEffectivePageSecurity()
BaseElementImpl
getEffectivePageSecurity in class BaseElementImpl
public void checkConstraints(java.util.List actions,
java.util.List userPrincipals,
java.util.List rolePrincipals,
java.util.List groupPrincipals,
boolean checkNodeOnly,
boolean checkParentsOnly)
throws java.lang.SecurityException
BaseElementImpl
checkConstraints in class BaseElementImplactions - actions to checkuserPrincipals - principal users listrolePrincipals - principal roles listgroupPrincipals - principal group listcheckNodeOnly - check node scope onlycheckParentsOnly - check parent folder scope only
java.lang.SecurityException
public void checkPermissions(java.lang.String path,
int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
throws java.lang.SecurityException
BaseElementImpl
checkPermissions in class BaseElementImplpath - permissions path to checkmask - mask of actions to checkcheckNodeOnly - check node scope onlycheckParentsOnly - check parent folder scope only
java.lang.SecurityExceptionpublic java.lang.String getLogicalPermissionPath()
BaseElementImpl
getLogicalPermissionPath in class BaseElementImplpublic java.lang.String getPhysicalPermissionPath()
BaseElementImpl
getPhysicalPermissionPath in class BaseElementImplpublic Node getParent()
NodegetParent
getParent in interface Nodepublic void setParent(Node parent)
NodesetParent
setParent in interface Nodepublic java.lang.String getPath()
NodegetPath
getPath in interface Nodepublic void setPath(java.lang.String path)
NodesetPath
Sets the full-qualified path of this node.
setPath in interface Nodepublic GenericMetadata getMetadata()
NodegetMetadata
getMetadata 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 getShortTitle(java.util.Locale locale)
NodegetShortTitle
Returns the short title for the specified locale.
getShortTitle in interface Nodepublic abstract 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 - flag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||