|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.om.page.psml.AbstractBaseElement
public abstract class AbstractBaseElement
Field Summary | |
---|---|
private org.apache.jetspeed.om.common.SecurityConstraints |
constraints
|
private boolean |
constraintsEnabled
|
private org.apache.jetspeed.page.document.DocumentHandlerFactory |
handlerFactory
|
private String |
id
|
private static org.apache.commons.logging.Log |
log
|
private boolean |
permissionsEnabled
|
private String |
shortTitle
|
private String |
title
|
Constructor Summary | |
---|---|
AbstractBaseElement()
|
Method Summary | |
---|---|
static org.apache.jetspeed.page.document.NodeSet |
checkAccess(org.apache.jetspeed.page.document.NodeSet nodes,
String actions)
checkAccess returns a set of nodes we can access. |
void |
checkAccess(String actions)
checkAccess |
void |
checkConstraints(List actions,
List userPrincipals,
List rolePrincipals,
List groupPrincipals,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkConstraints |
void |
checkConstraints(String actions)
checkConstraints |
void |
checkPermissions(int mask)
checkPermissions |
void |
checkPermissions(int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
void |
checkPermissions(String path,
int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
boolean |
equals(Object obj)
equals |
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
org.apache.jetspeed.om.page.PageSecurity |
getEffectivePageSecurity()
getEffectivePageSecurity |
org.apache.jetspeed.page.document.DocumentHandlerFactory |
getHandlerFactory()
getHandlerFactory |
String |
getId()
|
String |
getLogicalPermissionPath()
getLogicalPermissionPath |
boolean |
getPermissionsEnabled()
getPermissionsEnabled |
String |
getPhysicalPermissionPath()
getPhysicalPermissionPath |
org.apache.jetspeed.om.common.SecurityConstraints |
getSecurityConstraints()
getSecurityConstraints |
String |
getShortTitle()
getShortTitle |
String |
getTitle()
getTitle |
boolean |
grantViewActionAccess()
grantViewActionAccess |
int |
hashCode()
hashCode |
void |
marshalling()
marshalling - notification that this instance is to be saved to the persistent store |
org.apache.jetspeed.om.common.SecurityConstraint |
newSecurityConstraint()
newSecurityConstraint |
org.apache.jetspeed.om.common.SecurityConstraints |
newSecurityConstraints()
newSecurityConstraints |
void |
setConstraintsEnabled(boolean enabled)
setConstraintsEnabled |
void |
setHandlerFactory(org.apache.jetspeed.page.document.DocumentHandlerFactory factory)
setHandlerFactory |
void |
setId(String id)
|
void |
setPermissionsEnabled(boolean enabled)
setPermissionsEnabled |
void |
setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
setSecurityConstraints |
void |
setShortTitle(String title)
setShortTitle |
void |
setTitle(String title)
setTitle |
String |
toString()
toString |
void |
unmarshalled()
unmarshalled - notification that this instance has been loaded from the persistent store |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private String id
private String title
private String shortTitle
private boolean constraintsEnabled
private org.apache.jetspeed.om.common.SecurityConstraints constraints
private boolean permissionsEnabled
private org.apache.jetspeed.page.document.DocumentHandlerFactory handlerFactory
Constructor Detail |
---|
public AbstractBaseElement()
Method Detail |
---|
public String getId()
public void setId(String id)
public String getTitle()
getTitle
BaseElement.getTitle()
public void setTitle(String title)
setTitle
title
- BaseElement.setTitle(java.lang.String)
public String getShortTitle()
getShortTitle
BaseElement.getShortTitle()
public void setShortTitle(String title)
setShortTitle
title
- BaseElement.setShortTitle(java.lang.String)
public boolean getConstraintsEnabled()
getConstraintsEnabled
getConstraintsEnabled
in interface org.apache.jetspeed.om.common.SecuredResource
org.apache.jetspeed.om.common.SecureResource#getConstraintsEnabled()
public void setConstraintsEnabled(boolean enabled)
setConstraintsEnabled
enabled
- indicatorpublic org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
getSecurityConstraints
getSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
org.apache.jetspeed.om.common.SecureResource#getSecurityConstraints()
public org.apache.jetspeed.om.common.SecurityConstraints newSecurityConstraints()
newSecurityConstraints
newSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
org.apache.jetspeed.om.common.SecureResource#newSecurityConstraints()
public org.apache.jetspeed.om.common.SecurityConstraint newSecurityConstraint()
newSecurityConstraint
newSecurityConstraint
in interface org.apache.jetspeed.om.common.SecuredResource
org.apache.jetspeed.om.common.SecureResource#newSecurityConstraint()
public void setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
setSecurityConstraints
setSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
constraints
- org.apache.jetspeed.om.common.SecureResource#setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints)
public void checkConstraints(String actions) throws SecurityException
checkConstraints
checkConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
actions
-
SecurityException
org.apache.jetspeed.om.common.SecureResource#checkConstraints(java.lang.String)
public void checkConstraints(List actions, List userPrincipals, List rolePrincipals, List groupPrincipals, boolean checkNodeOnly, boolean checkParentsOnly) throws SecurityException
checkConstraints
actions
- userPrincipals
- rolePrincipals
- groupPrincipals
- checkNodeOnly
- checkParentsOnly
-
SecurityException
public boolean getPermissionsEnabled()
getPermissionsEnabled
getPermissionsEnabled
in interface org.apache.jetspeed.om.common.SecuredResource
org.apache.jetspeed.om.common.SecureResource#getPermissionsEnabled()
public void setPermissionsEnabled(boolean enabled)
setPermissionsEnabled
enabled
- indicatorpublic void checkPermissions(int mask) throws SecurityException
checkPermissions
checkPermissions
in interface org.apache.jetspeed.om.common.SecuredResource
mask
- Mask of actions requested
SecurityException
SecuredResource.checkPermissions(int)
public void checkPermissions(int mask, boolean checkNodeOnly, boolean checkParentsOnly) throws SecurityException
checkPermissions
mask
- of actionscheckNodeOnly
- checkParentsOnly
-
SecurityException
public void checkPermissions(String path, int mask, boolean checkNodeOnly, boolean checkParentsOnly) throws SecurityException
checkPermissions
path
- mask
- Mask of actions requestedcheckNodeOnly
- checkParentsOnly
-
SecurityException
public String getLogicalPermissionPath()
getLogicalPermissionPath
public String getPhysicalPermissionPath()
getPhysicalPermissionPath
public void checkAccess(String actions) throws SecurityException
checkAccess
checkAccess
in interface org.apache.jetspeed.om.common.SecuredResource
actions
-
SecurityException
org.apache.jetspeed.om.common.SecureResource#checkAccess(java.lang.String)
public boolean grantViewActionAccess()
grantViewActionAccess
public org.apache.jetspeed.om.page.PageSecurity getEffectivePageSecurity()
public org.apache.jetspeed.page.document.DocumentHandlerFactory getHandlerFactory()
getHandlerFactory
public void setHandlerFactory(org.apache.jetspeed.page.document.DocumentHandlerFactory factory)
setHandlerFactory
factory
- element handler factorypublic boolean equals(Object obj)
equals
equals
in class Object
obj
-
Object.equals(java.lang.Object)
public int hashCode()
hashCode
hashCode
in class Object
Object.hashCode()
public String toString()
toString
toString
in class Object
Object.toString()
public static org.apache.jetspeed.page.document.NodeSet checkAccess(org.apache.jetspeed.page.document.NodeSet nodes, String actions)
checkAccess returns a set of nodes we can access. It may be the passed in node set or a partial copy.
nodes
- actions
-
public void unmarshalled()
public void marshalling()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |