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übersicht
Von Klasse geerbte Felder org.apache.fulcrum.security.util.SecuritySet
idMap, nameMap
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs an empty PermissionSetPermissionSet
(Collection<? extends Permission> permissions) Constructs a new PermissionSet with specified contents. -
Methodenübersicht
Modifizierer 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.SecuritySet
add, add, addAll, clear, contains, containsAll, containsId, containsName, getById, getByName, getIds, getNames, getSet, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden java.util.Collection
parallelStream, removeIf, stream, toArray
Von Schnittstelle geerbte Methoden java.util.Set
equals, hashCode, spliterator
-
Konstruktordetails
-
PermissionSet
public PermissionSet()Constructs an empty PermissionSet -
PermissionSet
Constructs 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
-
getPermissionByName
Veraltet.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.
-
getPermissionById
Veraltet.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.
-
toString
Print out a PermissionSet as a String- Setzt außer Kraft:
toString
in KlasseSecuritySet<Permission>
- Gibt zurück:
- The Permission Set as String
-