|
||||||||||
| 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.SecurityExceptionpublic 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.SecurityExceptionpublic boolean getConstraintsEnabled()
SecuredResourcegetConstraintsEnabled
getConstraintsEnabled in interface SecuredResourcepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic SecurityConstraints getSecurityConstraints()
SecuredResourcegetSecurityConstraints
getSecurityConstraints in interface SecuredResourcepublic SecurityConstraints newSecurityConstraints()
SecuredResourcenewSecurityConstraints
newSecurityConstraints in interface SecuredResourcepublic SecurityConstraint newSecurityConstraint()
SecuredResourcenewSecurityConstraint
newSecurityConstraint in interface SecuredResourcepublic void setSecurityConstraints(SecurityConstraints constraints)
SecuredResourcesetSecurityConstraints
setSecurityConstraints in interface SecuredResourceconstraints - security constraints for resource
public void checkConstraints(java.lang.String actions)
throws java.lang.SecurityException
SecuredResourcecheckConstraints
checkConstraints in interface SecuredResourceactions - list to be checked against in CSV string form
java.lang.SecurityExceptionpublic void resetCachedSecurityConstraints()
public boolean getPermissionsEnabled()
SecuredResourcegetPermissionsEnabled
getPermissionsEnabled in interface SecuredResource
public void checkPermissions(int mask)
throws java.lang.SecurityException
SecuredResourcecheckPermissions
checkPermissions in interface SecuredResourcemask - Mask of actions to be checked
java.lang.SecurityException
public void checkAccess(java.lang.String actions)
throws java.lang.SecurityException
SecuredResourcecheckAccess
checkAccess in interface SecuredResourceactions - list to be checked against in CSV string form
java.lang.SecurityExceptionpublic java.lang.String getId()
BaseElement
getId in interface BaseElementpublic java.lang.String getTitle()
BaseElement
getTitle in interface BaseElementpublic void setTitle(java.lang.String title)
BaseElement
setTitle in interface BaseElementtitle - the new titlepublic java.lang.String getShortTitle()
BaseElement
getShortTitle in interface BaseElementpublic void setShortTitle(java.lang.String shortTitle)
BaseElement
setShortTitle in interface BaseElementshortTitle - the new title
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||