Package org.apache.fulcrum.security.util
Klasse RoleSet
- Alle implementierten Schnittstellen:
- Serializable,- Iterable<Role>,- Collection<Role>,- Set<Role>
This class represents a set of Roles. It makes it easy to build a UI that
 would allow someone to add a group of Roles to a User. It enforces that only
 Role objects are allowed in the set and only relevant methods are available.
- Version:
- $Id$
- Autor:
- John D. McNally, Brett McLaughlin, Marco Knüttel, Henning P. Schmiedehausen
- Siehe auch:
- 
FeldübersichtVon Klasse geerbte Felder org.apache.fulcrum.security.util.SecuritySetidMap, nameMap
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungRoleSet()Constructs an empty RoleSetRoleSet(Collection<? extends Role> roles) Constructs a new RoleSet with specified contents.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibunggetRoleById(Object roleId) Veraltet.Use getById()getRoleByName(String roleName) Veraltet.use getByName()toString()Print out a RoleSet as a StringVon Klasse geerbte Methoden org.apache.fulcrum.security.util.SecuritySetadd, add, addAll, clear, contains, containsAll, containsId, containsName, getById, getByName, getIds, getNames, getSet, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayVon Klasse geerbte Methoden java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.CollectionparallelStream, removeIf, stream, toArrayVon Schnittstelle geerbte Methoden java.util.Setequals, hashCode, spliterator
- 
Konstruktordetails- 
RoleSetpublic RoleSet()Constructs an empty RoleSet
- 
RoleSetConstructs a new RoleSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.- Parameter:
- roles- A collection of roles to be contained in the set.
 
 
- 
- 
Methodendetails- 
getRoleByNameVeraltet.use getByName()Returns a Role with the given name, if it is contained in this RoleSet.- Parameter:
- roleName- Name of Role.
- Gibt zurück:
- Role if argument matched a Role in this RoleSet; null if no match.
 
- 
getRoleByIdVeraltet.Use getById()Returns a Role with the given id, if it is contained in this RoleSet.- Parameter:
- roleId- id of the Role.
- Gibt zurück:
- Role if argument matched a Role in this RoleSet; null if no match.
 
- 
toStringPrint out a RoleSet as a String- Setzt außer Kraft:
- toStringin Klasse- SecuritySet<Role>
- Gibt zurück:
- The Role Set as String
 
 
-