|
||||||||||
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
public abstract class BaseElementImpl
BaseElementImpl
Constructor Summary | |
---|---|
protected |
BaseElementImpl(SecurityConstraintsImpl constraints)
|
Method Summary | |
---|---|
void |
checkAccess(java.lang.String actions)
checkAccess |
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 |
checkConstraints(java.lang.String actions)
checkConstraints |
void |
checkPermissions(int mask)
checkPermissions |
void |
checkPermissions(int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
void |
checkPermissions(java.lang.String path,
int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
boolean |
equals(java.lang.Object o)
|
boolean |
getConstraintsEnabled()
getConstraintsEnabled |
PageSecurity |
getEffectivePageSecurity()
getEffectivePageSecurity |
java.lang.String |
getId()
Returns the unique Id of this element. |
java.lang.String |
getLogicalPermissionPath()
getLogicalPermissionPath |
java.lang.String |
getName()
getName |
boolean |
getPermissionsEnabled()
getPermissionsEnabled |
java.lang.String |
getPhysicalPermissionPath()
getPhysicalPermissionPath |
SecurityConstraints |
getSecurityConstraints()
getSecurityConstraints |
java.lang.String |
getShortTitle()
Returns the short title in the default Locale |
java.lang.String |
getTitle()
Returns the title in the default Locale |
boolean |
grantViewActionAccess()
grantViewActionAccess |
int |
hashCode()
|
SecurityConstraint |
newSecurityConstraint()
newSecurityConstraint |
SecurityConstraints |
newSecurityConstraints()
newSecurityConstraints |
void |
resetCachedSecurityConstraints()
resetCachedSecurityConstraints |
void |
setConstraintsEnabled(boolean enabled)
setConstraintsEnabled |
void |
setName(java.lang.String name)
setName |
void |
setPermissionsEnabled(boolean enabled)
setPermissionsEnabled |
void |
setSecurityConstraints(SecurityConstraints constraints)
setSecurityConstraints |
void |
setShortTitle(java.lang.String shortTitle)
Sets the short title for the default Locale |
void |
setTitle(java.lang.String title)
Sets the title for the default Locale |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseElementImpl(SecurityConstraintsImpl constraints)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- element namepublic void setConstraintsEnabled(boolean enabled)
enabled
- enable/disable security constraints checkspublic void setPermissionsEnabled(boolean enabled)
enabled
- enable/disable security permissions checkspublic boolean grantViewActionAccess()
public PageSecurity getEffectivePageSecurity()
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
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 java.lang.String getLogicalPermissionPath()
public java.lang.String getPhysicalPermissionPath()
public void checkPermissions(int mask, boolean checkNodeOnly, boolean checkParentsOnly) throws java.lang.SecurityException
mask
- mask of actions to checkcheckNodeOnly
- 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
path
- permissions path to checkmask
- mask of actions to checkcheckNodeOnly
- check node scope onlycheckParentsOnly
- check parent folder scope only
java.lang.SecurityException
public boolean getConstraintsEnabled()
SecuredResource
getConstraintsEnabled
getConstraintsEnabled
in interface SecuredResource
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SecurityConstraints getSecurityConstraints()
SecuredResource
getSecurityConstraints
getSecurityConstraints
in interface SecuredResource
public SecurityConstraints newSecurityConstraints()
SecuredResource
newSecurityConstraints
newSecurityConstraints
in interface SecuredResource
public SecurityConstraint newSecurityConstraint()
SecuredResource
newSecurityConstraint
newSecurityConstraint
in interface SecuredResource
public void setSecurityConstraints(SecurityConstraints constraints)
SecuredResource
setSecurityConstraints
setSecurityConstraints
in interface SecuredResource
constraints
- security constraints for resourcepublic void checkConstraints(java.lang.String actions) throws java.lang.SecurityException
SecuredResource
checkConstraints
checkConstraints
in interface SecuredResource
actions
- list to be checked against in CSV string form
java.lang.SecurityException
public void resetCachedSecurityConstraints()
public boolean getPermissionsEnabled()
SecuredResource
getPermissionsEnabled
getPermissionsEnabled
in interface SecuredResource
public void checkPermissions(int mask) throws java.lang.SecurityException
SecuredResource
checkPermissions
checkPermissions
in interface SecuredResource
mask
- Mask of actions to be checked
java.lang.SecurityException
public void checkAccess(java.lang.String actions) throws java.lang.SecurityException
SecuredResource
checkAccess
checkAccess
in interface SecuredResource
actions
- list to be checked against in CSV string form
java.lang.SecurityException
public java.lang.String getId()
BaseElement
getId
in interface BaseElement
public java.lang.String getTitle()
BaseElement
getTitle
in interface BaseElement
public void setTitle(java.lang.String title)
BaseElement
setTitle
in interface BaseElement
title
- the new titlepublic java.lang.String getShortTitle()
BaseElement
getShortTitle
in interface BaseElement
public void setShortTitle(java.lang.String shortTitle)
BaseElement
setShortTitle
in interface BaseElement
shortTitle
- the new title
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |