|
||||||||||
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 | |
---|---|
private String |
extendedAttributeName
|
private String |
extendedAttributeValue
|
private String |
group
|
private boolean |
hidden
|
private String |
locale
|
private String |
logicalPath
|
private String |
mediatype
|
private Collection |
metadataFields
|
private PageMetadataImpl |
pageMetadata
|
private org.apache.jetspeed.page.document.Node |
parent
|
private String |
path
|
private String |
role
|
private String |
subsite
|
private String |
user
|
Fields inherited from interface org.apache.jetspeed.page.document.Node |
---|
PATH_SEPARATOR, PATH_SEPARATOR_CHAR |
Constructor Summary | |
---|---|
NodeImpl(SecurityConstraintsImpl constraints)
|
Method Summary | |
---|---|
void |
checkConstraints(List actions,
List userPrincipals,
List rolePrincipals,
List groupPrincipals,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkConstraints Check fully parameterized principal against specified security constraint scope. |
void |
checkPermissions(String path,
int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
protected String |
defaultTitleFromName()
defaultTitleFromName Compute default title from name. |
static String |
getCanonicalNodePath(String path)
getCanonicalNodePath Format paths used to set and query NodeImpl instances. |
org.apache.jetspeed.om.page.PageSecurity |
getEffectivePageSecurity()
getEffectivePageSecurity |
String |
getLogicalPermissionPath()
getLogicalPermissionPath |
org.apache.jetspeed.om.common.GenericMetadata |
getMetadata()
|
String |
getName()
getName |
PageMetadataImpl |
getPageMetadata()
getPageMetadata Get page manager specific metadata implementation. |
org.apache.jetspeed.page.document.Node |
getParent()
|
String |
getPath()
|
String |
getPhysicalPermissionPath()
getPhysicalPermissionPath |
String |
getShortTitle(Locale locale)
|
String |
getTitle(Locale locale)
|
abstract String |
getType()
|
String |
getUrl()
|
boolean |
isHidden()
|
PageMetadataImpl |
newPageMetadata(Collection fields)
newPageMetadata Construct page manager specific metadata implementation. |
void |
setHidden(boolean hidden)
|
void |
setName(String name)
setName |
void |
setParent(org.apache.jetspeed.page.document.Node parent)
|
void |
setPath(String path)
|
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 |
Field Detail |
---|
private org.apache.jetspeed.page.document.Node parent
private boolean hidden
private Collection metadataFields
private String path
private String subsite
private String user
private String role
private String group
private String mediatype
private String locale
private String extendedAttributeName
private String extendedAttributeValue
private PageMetadataImpl pageMetadata
private String logicalPath
Constructor Detail |
---|
public NodeImpl(SecurityConstraintsImpl constraints)
Method Detail |
---|
public static String getCanonicalNodePath(String path)
path
- specified path
public PageMetadataImpl newPageMetadata(Collection fields)
fields
- mutable fields collection
public PageMetadataImpl getPageMetadata()
protected String defaultTitleFromName()
public String getName()
BaseElementImpl
getName
in interface org.apache.jetspeed.page.document.Node
getName
in class BaseElementImpl
public void setName(String name)
BaseElementImpl
setName
in class BaseElementImpl
name
- element namepublic org.apache.jetspeed.om.page.PageSecurity getEffectivePageSecurity()
BaseElementImpl
getEffectivePageSecurity
in class BaseElementImpl
public void checkConstraints(List actions, List userPrincipals, List rolePrincipals, List groupPrincipals, boolean checkNodeOnly, boolean checkParentsOnly) throws 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
SecurityException
public void checkPermissions(String path, int mask, boolean checkNodeOnly, boolean checkParentsOnly) throws 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
SecurityException
public String getLogicalPermissionPath()
BaseElementImpl
getLogicalPermissionPath
in class BaseElementImpl
public String getPhysicalPermissionPath()
BaseElementImpl
getPhysicalPermissionPath
in class BaseElementImpl
public org.apache.jetspeed.page.document.Node getParent()
getParent
in interface org.apache.jetspeed.page.document.Node
public void setParent(org.apache.jetspeed.page.document.Node parent)
setParent
in interface org.apache.jetspeed.page.document.Node
public String getPath()
getPath
in interface org.apache.jetspeed.page.document.Node
public void setPath(String path)
setPath
in interface org.apache.jetspeed.page.document.Node
public org.apache.jetspeed.om.common.GenericMetadata getMetadata()
getMetadata
in interface org.apache.jetspeed.page.document.Node
public String getTitle(Locale locale)
getTitle
in interface org.apache.jetspeed.page.document.Node
public String getShortTitle(Locale locale)
getShortTitle
in interface org.apache.jetspeed.page.document.Node
public abstract String getType()
getType
in interface org.apache.jetspeed.page.document.Node
public String getUrl()
getUrl
in interface org.apache.jetspeed.page.document.Node
public boolean isHidden()
isHidden
in interface org.apache.jetspeed.page.document.Node
public void setHidden(boolean hidden)
setHidden
in interface org.apache.jetspeed.page.document.Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |