|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for manipulatin the security entries on the registry entries
Method Summary | |
boolean |
allowsGroup(java.lang.String group,
java.lang.String action)
Authorizes 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 user 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 ownerUserName)
Aututhorizes action for a named user |
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. |
java.lang.String |
getDescription()
Getter for property description. |
long |
getId()
Getter for property id. |
MetaInfo |
getMetaInfo()
Getter for property metaInfo. |
java.lang.String |
getName()
Getter for property name. |
SecurityReference |
getSecurityRef()
Getter for property securityRef. |
java.lang.String |
getTitle()
Getter for property title. |
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 role 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. |
boolean |
isHidden()
Getter for property hidden. |
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. |
void |
setDescription(java.lang.String description)
Setter for property description. |
void |
setHidden(boolean hidden)
Setter for property hidden. |
void |
setMetaInfo(MetaInfo metaInfo)
Setter for property metaInfo. |
void |
setName(java.lang.String name)
Setter for property name. |
void |
setSecurityRef(SecurityReference securityRef)
Setter for property securityRef. |
void |
setTitle(java.lang.String title)
Setter for property title. |
Method Detail |
public java.util.Vector getAccesses()
public void setAccesses(java.util.Vector accesses)
accesses
- New value of property accesses.public java.lang.String getName()
public void setName(java.lang.String name)
name
- New value of property name.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value of property description.public SecurityReference getSecurityRef()
public void setSecurityRef(SecurityReference securityRef)
securityRef
- New value of property securityRef.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- New value of property title.public MetaInfo getMetaInfo()
public void setMetaInfo(MetaInfo metaInfo)
metaInfo
- New value of property metaInfo.public boolean isHidden()
public void setHidden(boolean hidden)
hidden
- New value of property hidden.public long getId()
public boolean allowsRole(java.lang.String role, java.lang.String action)
role
- requesting actionaction
- being requested
true
if action is allowed for rolepublic boolean allowsGroup(java.lang.String group, java.lang.String action)
group
- requesting actionaction
- being requested
true
if action is allowed for rolepublic boolean allowsGroupRole(java.lang.String group, java.lang.String role, java.lang.String action)
group
- requesting actionrole
- requesting actionaction
- being requested
true
if action is allowed for rolepublic boolean allowsUser(java.lang.String userName, java.lang.String action)
userName
- requesting actionaction
- being requested
true
if action is allowed for named userpublic boolean allowsUser(java.lang.String userName, java.lang.String action, java.lang.String ownerUserName)
userName
- requesting actionaction
- being requestedownerUserName
- Onwers username
true
if action is allowed for named userpublic boolean grantRoleAccess(java.lang.String action, java.lang.String role)
false
means that this role already has specific access.public boolean allowsSpecificRole(java.lang.String action, java.lang.String role)
role
has access
to this specific action.public boolean grantGroupAccess(java.lang.String action, java.lang.String group)
false
means that this group already has specific access.public boolean allowsSpecificGroup(java.lang.String action, java.lang.String group)
group
has access
to this specific action.public boolean grantGroupRoleAccess(java.lang.String action, java.lang.String group, java.lang.String role)
false
means that this group role already has specific access.public boolean allowsSpecificGroupRole(java.lang.String action, java.lang.String group, java.lang.String role)
group role
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
null
if one is not specifically definedpublic boolean allowsSpecificUser(java.lang.String action, java.lang.String user)
user
has access
to this specific action.public boolean grantUserAccess(java.lang.String action, java.lang.String user)
false
means that this role already has specific access.public void revokeAccess(java.lang.String action)
public boolean revokeUserAccess(java.lang.String action, java.lang.String user)
action
- Action to remove access from.
public boolean revokeRoleAccess(java.lang.String action, java.lang.String role)
action
- Action to remove access from.role
- The role whose access we are revoking.
public boolean revokeGroupAccess(java.lang.String action, java.lang.String group)
action
- 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)
action
- Action to remove access from.group
- The group whose access we are revoking.role
- The role whose access we are revoking.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |