public class SimpleRole extends Object implements Role, Cloneable
| Modifier and Type | Field and Description | 
|---|---|
| static String | ANYBODY | 
| static Role | ANYBODY_ROLE | 
| Constructor and Description | 
|---|
| SimpleRole(String roleName) | 
| SimpleRole(String roleName,
          Role parent) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Object | clone() | 
| boolean | containsAll(Role anotherRole)Indicate whether the argument role is equal or contained
 depending on the role-type | 
| boolean | equals(Object obj) | 
| Role | getParent()Gets a reference to the parent role, if one is available. | 
| String | getRoleName()Get Name of the Role | 
| RoleType | getType()Get type of role | 
| int | hashCode() | 
| String | toString() | 
public static final String ANYBODY
public static final Role ANYBODY_ROLE
public SimpleRole(String roleName)
public String getRoleName()
RolegetRoleName in interface Rolepublic boolean containsAll(Role anotherRole)
RolecontainsAll in interface RoleRole#contains(Role)public Role getParent()
Roleprotected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.