Package org.jboss.security.identity
Interface Role
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
RoleGroup
- All Known Implementing Classes:
SimpleRole
,SimpleRoleGroup
public interface Role extends Serializable
Represents a Role- Since:
- Nov 16, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsAll(Role anotherRole)
Indicate whether the argument role is equal or contained depending on the role-typeRole
getParent()
Gets a reference to the parent role, if one is available.String
getRoleName()
Get Name of the RoleRoleType
getType()
Get type of role
-
-
-
Method Detail
-
getRoleName
String getRoleName()
Get Name of the Role- Returns:
-
getType
RoleType getType()
Get type of role- Returns:
- simple,group
-
containsAll
boolean containsAll(Role anotherRole)
Indicate whether the argument role is equal or contained depending on the role-type- Parameters:
anotherRole
-- Returns:
- true or false
-
getParent
Role getParent()
Gets a reference to the parent role, if one is available.- Returns:
- a reference to the parent role if one exists;
null
otherwise.
-
-