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 StringANYBODYstatic RoleANYBODY_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 Objectclone()booleancontainsAll(Role anotherRole)Indicate whether the argument role is equal or contained depending on the role-typebooleanequals(Object obj)RolegetParent()Gets a reference to the parent role, if one is available.StringgetRoleName()Get Name of the RoleRoleTypegetType()Get type of roleinthashCode()StringtoString()
-
-
-
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:RoleGet Name of the Role- Specified by:
getRoleNamein interfaceRole- Returns:
-
containsAll
public boolean containsAll(Role anotherRole)
Description copied from interface:RoleIndicate whether the argument role is equal or contained depending on the role-type- Specified by:
containsAllin interfaceRole- Returns:
- true or false
- See Also:
Role#contains(Role)
-
getParent
public Role getParent()
Description copied from interface:RoleGets a reference to the parent role, if one is available.
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-