Package org.apache.fulcrum.security.util
Klasse UserSet<T extends User>
- Alle implementierten Schnittstellen:
- Serializable,- Iterable<User>,- Collection<User>,- Set<User>
This class represents a set of Users. It is based on UserSet. Hibernate
 doesn't return the right kind of set, so this is used to force the type of
 set.
- Version:
- $Id$
- Autor:
- Eric Pugh
- Siehe auch:
- 
FeldübersichtVon Klasse geerbte Felder org.apache.fulcrum.security.util.SecuritySetidMap, nameMap
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungUserSet()Constructs an empty UserSetUserSet(Collection<? extends User> users) Constructs a new UserSet with specified contents.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibunggetUserById(Object userId) Veraltet.use getById()getUserByName(String userName) Veraltet.use getByName()toString()Print out a UserSet 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- 
UserSetpublic UserSet()Constructs an empty UserSet
- 
UserSetConstructs a new UserSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.- Parameter:
- users- A collection of users to be contained in the set.
 
 
- 
- 
Methodendetails- 
getUserByNameVeraltet.use getByName()Returns a User with the given name, if it is contained in this UserSet.- Parameter:
- userName- Name of User.
- Gibt zurück:
- User if argument matched a User in this UserSet; null if no match.
 
- 
getUserByIdVeraltet.use getById()Returns a User with the given id, if it is contained in this UserSet.- Parameter:
- userId- id of the User.
- Gibt zurück:
- User if argument matched a User in this UserSet; null if no match.
 
- 
toStringPrint out a UserSet as a String- Setzt außer Kraft:
- toStringin Klasse- SecuritySet<User>
- Gibt zurück:
- The User Set as String
 
 
-