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>

public class PermissionSet extends SecuritySet<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:
  • Konstruktordetails

    • PermissionSet

      public PermissionSet()
      Constructs an empty PermissionSet
    • PermissionSet

      public PermissionSet(Collection<? extends Permission> permissions)
      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

      @Deprecated public Permission getPermissionByName(String permissionName)
      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

      @Deprecated public Permission getPermissionById(Object permissionId)
      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

      public String toString()
      Print out a PermissionSet as a String
      Setzt außer Kraft:
      toString in Klasse SecuritySet<Permission>
      Gibt zurück:
      The Permission Set as String