Package org.apache.fulcrum.security.util
Klasse PermissionSet
java.lang.Object
org.apache.fulcrum.security.util.SecuritySet<Permission>
org.apache.fulcrum.security.util.PermissionSet
- Alle implementierten Schnittstellen:
- Serializable,- Iterable<Permission>,- Collection<Permission>,- Set<Permission>
This class represents a set of Permissions. It makes it easy to build a UI
 that would allow someone to add a group of Permissions to a Role. It enforces
 that only Permission 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übersichtKonstruktorenKonstruktorBeschreibungConstructs an empty PermissionSetPermissionSet(Collection<? extends Permission> permissions) Constructs a new PermissionSet with specified contents.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibunggetPermissionById(Object permissionId) Veraltet.Use getById()getPermissionByName(String permissionName) Veraltet.use getByName()toString()Print out a PermissionSet 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- 
PermissionSetpublic PermissionSet()Constructs an empty PermissionSet
- 
PermissionSetConstructs a new PermissionSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.- Parameter:
- permissions- A collection of permissions to be contained in the set.
 
 
- 
- 
Methodendetails- 
getPermissionByNameVeraltet.use getByName()Returns a Permission with the given name, if it is contained in this PermissionSet.- Parameter:
- permissionName- Name of Permission.
- Gibt zurück:
- Permission if argument matched a Permission in this PermissionSet; null if no match.
 
- 
getPermissionByIdVeraltet.Use getById()Returns a Permission with the given id, if it is contained in this PermissionSet.- Parameter:
- permissionId- Id of the Permission.
- Gibt zurück:
- Permission if argument matched a Permission in this PermissionSet; null if no match.
 
- 
toStringPrint out a PermissionSet as a String- Setzt außer Kraft:
- toStringin Klasse- SecuritySet<Permission>
- Gibt zurück:
- The Permission Set as String
 
 
-