Klasse GroupSet

java.lang.Object
org.apache.fulcrum.security.util.SecuritySet<Group>
org.apache.fulcrum.security.util.GroupSet
Alle implementierten Schnittstellen:
Serializable, Iterable<Group>, Collection<Group>, Set<Group>

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

    • GroupSet

      public GroupSet()
      Constructs an empty GroupSet
    • GroupSet

      public GroupSet(Collection<? extends Group> groups)
      Constructs 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

    • getGroupByName

      @Deprecated public Group getGroupByName(String groupName)
      Veraltet.
      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.
    • getGroupById

      @Deprecated public Group getGroupById(Object groupId)
      Veraltet.
      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.
    • toString

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