|
||||||||||
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 Node
getName
in class BaseElementImpl
public void setName(java.lang.String name)
BaseElementImpl
setName
in class BaseElementImpl
name
- 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 BaseElementImpl
actions
- 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 BaseElementImpl
path
- permissions path to checkmask
- mask of actions to checkcheckNodeOnly
- check node scope onlycheckParentsOnly
- check parent folder scope only
java.lang.SecurityException
public java.lang.String getLogicalPermissionPath()
BaseElementImpl
getLogicalPermissionPath
in class BaseElementImpl
public java.lang.String getPhysicalPermissionPath()
BaseElementImpl
getPhysicalPermissionPath
in class BaseElementImpl
public Node getParent()
Node
getParent
getParent
in interface Node
public void setParent(Node parent)
Node
setParent
setParent
in interface Node
public java.lang.String getPath()
Node
getPath
getPath
in interface Node
public void setPath(java.lang.String path)
Node
setPath
Sets the full-qualified path of this node.
setPath
in interface Node
public GenericMetadata getMetadata()
Node
getMetadata
getMetadata
in interface Node
public java.lang.String getTitle(java.util.Locale locale)
Node
getTitle
Returns the title for the specified locale.
getTitle
in interface Node
public java.lang.String getShortTitle(java.util.Locale locale)
Node
getShortTitle
Returns the short title for the specified locale.
getShortTitle
in interface Node
public abstract java.lang.String getType()
Node
getType
getType
in interface Node
public java.lang.String getUrl()
Node
getUrl
getUrl
in interface Node
public boolean isHidden()
Node
isHidden
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 Node
public void setHidden(boolean hidden)
Node
setHidden
Whether or not this Node should be hidden in terms of the view.
setHidden
in interface Node
hidden
- flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |