Class SimpleRole
- java.lang.Object
-
- org.jboss.security.identity.plugins.SimpleRole
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Role
- Direct Known Subclasses:
SimpleRoleGroup
public class SimpleRole extends Object implements Role, Cloneable
Simple Role- Since:
- Nov 16, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANYBODY
static Role
ANYBODY_ROLE
-
Constructor Summary
Constructors Constructor Description SimpleRole(String roleName)
SimpleRole(String roleName, Role parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
clone()
boolean
containsAll(Role anotherRole)
Indicate whether the argument role is equal or contained depending on the role-typeboolean
equals(Object obj)
Role
getParent()
Gets a reference to the parent role, if one is available.String
getRoleName()
Get Name of the RoleRoleType
getType()
Get type of roleint
hashCode()
String
toString()
-
-
-
Field Detail
-
ANYBODY
public static final String ANYBODY
- See Also:
- Constant Field Values
-
ANYBODY_ROLE
public static final Role ANYBODY_ROLE
-
-
Method Detail
-
getRoleName
public String getRoleName()
Description copied from interface:Role
Get Name of the Role- Specified by:
getRoleName
in interfaceRole
- Returns:
-
containsAll
public boolean containsAll(Role anotherRole)
Description copied from interface:Role
Indicate whether the argument role is equal or contained depending on the role-type- Specified by:
containsAll
in interfaceRole
- Returns:
- true or false
- See Also:
Role#contains(Role)
-
getParent
public Role getParent()
Description copied from interface:Role
Gets a reference to the parent role, if one is available.
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-