|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.om.registry.base.BaseRegistryEntry
org.apache.jetspeed.om.registry.base.BaseSecurityEntry
Interface for manipulatin the Security Entry on the registry entries
| Field Summary | |
static java.lang.String |
ALL_ACTIONS
|
static java.lang.String |
ALL_GROUP_ROLES
|
static java.lang.String |
ALL_GROUPS
|
static java.lang.String |
ALL_ROLES
|
static java.lang.String |
ALL_USERS
|
| Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry |
_hidden, hidden, id, metaInfo, name, security, securityRef |
| Constructor Summary | |
BaseSecurityEntry()
|
|
BaseSecurityEntry(long id)
|
|
| Method Summary | |
boolean |
allowsGroup(java.lang.String group,
java.lang.String action)
Aututhorizes action for a group. |
boolean |
allowsGroupRole(java.lang.String group,
java.lang.String role,
java.lang.String action)
Authorizes action for a group role. |
boolean |
allowsRole(java.lang.String role,
java.lang.String action)
Aututhorizes action for a role. |
boolean |
allowsSpecificGroup(java.lang.String action,
java.lang.String group)
Checks whether a group is specifically allowed to access the request action This method ignores the "*" action and is here to play a maintenance role. |
boolean |
allowsSpecificGroupRole(java.lang.String action,
java.lang.String group,
java.lang.String role)
Checks whether a group role is specifically allowed to access the request action This method ignores the "*" action and is here to play a maintenance role. |
boolean |
allowsSpecificRole(java.lang.String action,
java.lang.String role)
Checks whether a role is specifically allowed to access the request action This method ignores the "*" action and is here to play a maintenance role. |
boolean |
allowsSpecificUser(java.lang.String action,
java.lang.String user)
Checks whether a role is specifically allowed to access the request action This method ignores the "*" action and is here to play a maintenance role. |
boolean |
allowsUser(java.lang.String userName,
java.lang.String action)
Aututhorizes action for a named user |
boolean |
allowsUser(java.lang.String userName,
java.lang.String action,
java.lang.String owner)
Aututhorizes action for a named user |
boolean |
equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal. |
SecurityAccess |
getAccess(java.lang.String action)
Returns the SecurityAccess object for the action
requested or null if no specific access is defined for this action. |
java.util.Vector |
getAccesses()
Getter for property accesses. |
boolean |
grantGroupAccess(java.lang.String action,
java.lang.String group)
Grants access for a specific action to a specific group for this SecurityEntry. |
boolean |
grantGroupRoleAccess(java.lang.String action,
java.lang.String group,
java.lang.String role)
Grants access for a specific action to a specific group fole for this SecurityEntry. |
boolean |
grantRoleAccess(java.lang.String action,
java.lang.String role)
Grants access for a specific action to a specific role for this SecurityEntry. |
boolean |
grantUserAccess(java.lang.String action,
java.lang.String user)
Grants access for a specific action to a specific user for this SecurityEntry. |
void |
revokeAccess(java.lang.String action)
Removes a security access for the named action. |
boolean |
revokeGroupAccess(java.lang.String action,
java.lang.String group)
Removes a group's access to a specific action. |
boolean |
revokeGroupRoleAccess(java.lang.String action,
java.lang.String group,
java.lang.String role)
Removes a group role's access to a specific action. |
boolean |
revokeRoleAccess(java.lang.String action,
java.lang.String role)
Removes a role's access to a specific action. |
boolean |
revokeUserAccess(java.lang.String action,
java.lang.String user)
Removes a user's access to a specific action. |
void |
setAccesses(java.util.Vector accesses)
Setter for property accesses. |
| Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry |
getBaseMetaInfo, getBaseSecurity, getDescription, getHidden, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setBaseMetaInfo, setBaseSecurity, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jetspeed.om.registry.SecurityEntry |
getDescription, getId, getMetaInfo, getName, getSecurityRef, getTitle, isHidden, setDescription, setHidden, setMetaInfo, setName, setSecurityRef, setTitle |
| Field Detail |
public static final java.lang.String ALL_ACTIONS
public static final java.lang.String ALL_ROLES
public static final java.lang.String ALL_GROUPS
public static final java.lang.String ALL_GROUP_ROLES
public static final java.lang.String ALL_USERS
| Constructor Detail |
public BaseSecurityEntry()
public BaseSecurityEntry(long id)
| Method Detail |
public boolean equals(java.lang.Object object)
equals in class BaseRegistryEntrypublic java.util.Vector getAccesses()
getAccesses in interface SecurityEntrypublic void setAccesses(java.util.Vector accesses)
setAccesses in interface SecurityEntryaccesses - New value of property accesses.
public boolean allowsRole(java.lang.String role,
java.lang.String action)
allowsRole in interface SecurityEntryrole - requesting actionaction - being requested
true if action is allowed for role
public boolean allowsGroup(java.lang.String group,
java.lang.String action)
allowsGroup in interface SecurityEntrygroup - requesting actionaction - being requested
true if action is allowed for group
public boolean allowsGroupRole(java.lang.String group,
java.lang.String role,
java.lang.String action)
allowsGroupRole in interface SecurityEntrygroup - requesting actionrole - requesting actionaction - being requested
true if action is allowed for group role
public boolean allowsUser(java.lang.String userName,
java.lang.String action)
allowsUser in interface SecurityEntryuserName - requesting actionaction - being requested
true if action is allowed for named user
public boolean allowsUser(java.lang.String userName,
java.lang.String action,
java.lang.String owner)
allowsUser in interface SecurityEntryuserName - requesting actionaction - being requestedowner - User
true if action is allowed for named user
public boolean allowsSpecificRole(java.lang.String action,
java.lang.String role)
allowsSpecificRole in interface SecurityEntryrole has access
to this specific action.
public boolean allowsSpecificGroup(java.lang.String action,
java.lang.String group)
allowsSpecificGroup in interface SecurityEntrygroup has access
to this specific action.
public boolean allowsSpecificGroupRole(java.lang.String action,
java.lang.String group,
java.lang.String role)
allowsSpecificGroupRole in interface SecurityEntrygroup role has access
to this specific action.
public boolean allowsSpecificUser(java.lang.String action,
java.lang.String user)
allowsSpecificUser in interface SecurityEntryrole has access
to this specific action.public SecurityAccess getAccess(java.lang.String action)
action
requested or null if no specific access is defined for this action.
The "*" does change this, if an action is not specifically defined
in the registry, null is returned
getAccess in interface SecurityEntrynull if one is not specifically defined
public boolean grantRoleAccess(java.lang.String action,
java.lang.String role)
grantRoleAccess in interface SecurityEntryfalse means that this role already has specific access.
public boolean grantGroupAccess(java.lang.String action,
java.lang.String group)
grantGroupAccess in interface SecurityEntryfalse means that this group already has specific access.
public boolean grantGroupRoleAccess(java.lang.String action,
java.lang.String group,
java.lang.String role)
grantGroupRoleAccess in interface SecurityEntryfalse means that this group role already has specific access.
public boolean grantUserAccess(java.lang.String action,
java.lang.String user)
grantUserAccess in interface SecurityEntryfalse means that this role already has specific access.
public boolean revokeRoleAccess(java.lang.String action,
java.lang.String role)
revokeRoleAccess in interface SecurityEntryaction - Action to remove access from.role - The role whose access we are revoking.
public boolean revokeGroupAccess(java.lang.String action,
java.lang.String group)
revokeGroupAccess in interface SecurityEntryaction - Action to remove access from.group - The group whose access we are revoking.
public boolean revokeGroupRoleAccess(java.lang.String action,
java.lang.String group,
java.lang.String role)
revokeGroupRoleAccess in interface SecurityEntryaction - Action to remove access from.group - The group whose access we are revoking.role - The role whose access we are revoking.
public boolean revokeUserAccess(java.lang.String action,
java.lang.String user)
revokeUserAccess in interface SecurityEntryaction - Action to remove access from.
public void revokeAccess(java.lang.String action)
revokeAccess in interface SecurityEntry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||