Package org.apache.fulcrum.security.util
Klasse GroupSet
- Alle implementierten Schnittstellen:
- Serializable,- Iterable<Group>,- Collection<Group>,- Set<Group>
This class represents a set of Groups. It's useful for building
 administration UI. It enforces that only Group 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übersichtKonstruktorenKonstruktorBeschreibungGroupSet()Constructs an empty GroupSetGroupSet(Collection<? extends Group> groups) Constructs a new GroupSet with specified contents.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibunggetGroupById(Object groupId) Veraltet.Use getById()getGroupByName(String groupName) Veraltet.Use getByName()toString()Print out a GroupSet 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- 
GroupSetpublic GroupSet()Constructs an empty GroupSet
- 
GroupSetConstructs a new GroupSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.- Parameter:
- groups- A collection of groups to be contained in the set.
 
 
- 
- 
Methodendetails- 
getGroupByNameVeraltet.Use getByName()Returns a Group with the given name, if it is contained in this GroupSet.- Parameter:
- groupName- Name of Group.
- Gibt zurück:
- Group if argument matched a Group in this GroupSet; null if no match.
 
- 
getGroupByIdVeraltet.Use getById()Returns a Group with the given id, if it is contained in this GroupSet.- Parameter:
- groupId- Id of the group
- Gibt zurück:
- Group if argument matched a Group in this GroupSet; null if no match.
 
- 
toStringPrint out a GroupSet as a String- Setzt außer Kraft:
- toStringin Klasse- SecuritySet<Group>
- Gibt zurück:
- The Group Set as String
 
 
-