|
||||||||||
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
Field Summary | |
---|---|
private SecurityConstraintsImpl |
constraints
|
private boolean |
constraintsEnabled
|
private int |
id
|
private String |
name
|
private boolean |
permissionsEnabled
|
private String |
shortTitle
|
private String |
title
|
Constructor Summary | |
---|---|
protected |
BaseElementImpl(SecurityConstraintsImpl constraints)
|
Method Summary | |
---|---|
void |
checkAccess(String actions)
|
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 |
checkConstraints(String actions)
|
void |
checkPermissions(int mask)
|
void |
checkPermissions(int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
void |
checkPermissions(String path,
int mask,
boolean checkNodeOnly,
boolean checkParentsOnly)
checkPermissions |
boolean |
equals(Object o)
|
boolean |
getConstraintsEnabled()
|
org.apache.jetspeed.om.page.PageSecurity |
getEffectivePageSecurity()
getEffectivePageSecurity |
String |
getId()
|
String |
getLogicalPermissionPath()
getLogicalPermissionPath |
String |
getName()
getName |
boolean |
getPermissionsEnabled()
|
String |
getPhysicalPermissionPath()
getPhysicalPermissionPath |
org.apache.jetspeed.om.common.SecurityConstraints |
getSecurityConstraints()
|
String |
getShortTitle()
|
String |
getTitle()
|
boolean |
grantViewActionAccess()
grantViewActionAccess |
int |
hashCode()
|
org.apache.jetspeed.om.common.SecurityConstraint |
newSecurityConstraint()
|
org.apache.jetspeed.om.common.SecurityConstraints |
newSecurityConstraints()
|
void |
resetCachedSecurityConstraints()
resetCachedSecurityConstraints |
void |
setConstraintsEnabled(boolean enabled)
setConstraintsEnabled |
void |
setName(String name)
setName |
void |
setPermissionsEnabled(boolean enabled)
setPermissionsEnabled |
void |
setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
|
void |
setShortTitle(String shortTitle)
|
void |
setTitle(String title)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int id
private String name
private String title
private String shortTitle
private SecurityConstraintsImpl constraints
private boolean constraintsEnabled
private boolean permissionsEnabled
Constructor Detail |
---|
protected BaseElementImpl(SecurityConstraintsImpl constraints)
Method Detail |
---|
public String getName()
public void setName(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 org.apache.jetspeed.om.page.PageSecurity getEffectivePageSecurity()
public void checkConstraints(List actions, List userPrincipals, List rolePrincipals, List groupPrincipals, boolean checkNodeOnly, boolean checkParentsOnly) throws SecurityException
actions
- actions to checkuserPrincipals
- principal users listrolePrincipals
- principal roles listgroupPrincipals
- principal group listcheckNodeOnly
- check node scope onlycheckParentsOnly
- check parent folder scope only
SecurityException
public String getLogicalPermissionPath()
public String getPhysicalPermissionPath()
public void checkPermissions(int mask, boolean checkNodeOnly, boolean checkParentsOnly) throws SecurityException
mask
- mask of actions to checkcheckNodeOnly
- check node scope onlycheckParentsOnly
- check parent folder scope only
SecurityException
public void checkPermissions(String path, int mask, boolean checkNodeOnly, boolean checkParentsOnly) throws SecurityException
path
- permissions path to checkmask
- mask of actions to checkcheckNodeOnly
- check node scope onlycheckParentsOnly
- check parent folder scope only
SecurityException
public boolean getConstraintsEnabled()
getConstraintsEnabled
in interface org.apache.jetspeed.om.common.SecuredResource
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public org.apache.jetspeed.om.common.SecurityConstraints getSecurityConstraints()
getSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
public org.apache.jetspeed.om.common.SecurityConstraints newSecurityConstraints()
newSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
public org.apache.jetspeed.om.common.SecurityConstraint newSecurityConstraint()
newSecurityConstraint
in interface org.apache.jetspeed.om.common.SecuredResource
public void setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints constraints)
setSecurityConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
public void checkConstraints(String actions) throws SecurityException
checkConstraints
in interface org.apache.jetspeed.om.common.SecuredResource
SecurityException
public void resetCachedSecurityConstraints()
public boolean getPermissionsEnabled()
getPermissionsEnabled
in interface org.apache.jetspeed.om.common.SecuredResource
public void checkPermissions(int mask) throws SecurityException
checkPermissions
in interface org.apache.jetspeed.om.common.SecuredResource
SecurityException
public void checkAccess(String actions) throws SecurityException
checkAccess
in interface org.apache.jetspeed.om.common.SecuredResource
SecurityException
public String getId()
getId
in interface org.apache.jetspeed.om.page.BaseElement
public String getTitle()
getTitle
in interface org.apache.jetspeed.om.page.BaseElement
public void setTitle(String title)
setTitle
in interface org.apache.jetspeed.om.page.BaseElement
public String getShortTitle()
getShortTitle
in interface org.apache.jetspeed.om.page.BaseElement
public void setShortTitle(String shortTitle)
setShortTitle
in interface org.apache.jetspeed.om.page.BaseElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |