Klasse UserSet<T extends User>

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

public class UserSet<T extends User> extends SecuritySet<User>
This class represents a set of Users. It is based on UserSet. Hibernate doesn't return the right kind of set, so this is used to force the type of set.
Version:
$Id$
Autor:
Eric Pugh
Siehe auch:
  • Konstruktordetails

    • UserSet

      public UserSet()
      Constructs an empty UserSet
    • UserSet

      public UserSet(Collection<? extends User> users)
      Constructs a new UserSet with specified contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwritten.
      Parameter:
      users - A collection of users to be contained in the set.
  • Methodendetails

    • getUserByName

      @Deprecated public User getUserByName(String userName)
      Veraltet.
      use getByName()
      Returns a User with the given name, if it is contained in this UserSet.
      Parameter:
      userName - Name of User.
      Gibt zurück:
      User if argument matched a User in this UserSet; null if no match.
    • getUserById

      @Deprecated public User getUserById(Object userId)
      Veraltet.
      use getById()
      Returns a User with the given id, if it is contained in this UserSet.
      Parameter:
      userId - id of the User.
      Gibt zurück:
      User if argument matched a User in this UserSet; null if no match.
    • toString

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