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()
Role
getRoleName
in interface Role
public boolean containsAll(Role anotherRole)
Role
containsAll
in interface Role
Role#contains(Role)
public Role getParent()
Role
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2019 JBoss by Red Hat. All rights reserved.