public class RoleSet extends SecuritySet<Role>
idMap, nameMap
Constructor and Description |
---|
RoleSet()
Constructs an empty RoleSet
|
RoleSet(Collection<? extends Role> roles)
Constructs a new RoleSet with specified contents.
|
Modifier and Type | Method and Description |
---|---|
Role |
getRoleById(Object roleId)
Deprecated.
Use getById()
|
Role |
getRoleByName(String roleName)
Deprecated.
use getByName()
|
String |
toString()
Print out a RoleSet as a String
|
add, add, addAll, clear, contains, containsAll, containsId, containsName, getById, getByName, getIds, getNames, getSet, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
public RoleSet()
public RoleSet(Collection<? extends Role> roles)
roles
- A collection of roles to be contained in the set.@Deprecated public Role getRoleByName(String roleName)
roleName
- Name of Role.@Deprecated public Role getRoleById(Object roleId)
roleId
- id of the Role.public String toString()
toString
in class SecuritySet<Role>
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.