java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.basic.entity.impl.BasicUserImpl
Alle implementierten Schnittstellen:
Serializable, SecurityEntity, User, BasicUser
Bekannte direkte Unterklassen:
DynamicUserImpl

public class BasicUserImpl extends SecurityEntityImpl implements BasicUser
Represents the "basic" model where users can be part of multiple groups directly, with no roles or permissions.
Version:
$Id: BasicUser.java 437451 2006-08-27 20:20:44Z tv $
Autor:
Eric Pugh
Siehe auch:
  • Konstruktordetails

    • BasicUserImpl

      public BasicUserImpl()
  • Methodendetails

    • getPassword

      public String getPassword()
      Returns the user's password. This method should not be used by the application directly, because it's meaning depends upon the implementation of UserManager that manages this particular user object. Some implementations will use this attribute for storing a password encrypted in some way, other will not use it at all, when user entered password is presented to some external authority (like NT domain controller) to validate it. See also UserManager.authenticate(User,String) .
      Angegeben von:
      getPassword in Schnittstelle User
      Gibt zurück:
      A String with the password for the user.
    • setPassword

      public void setPassword(String password)
      Set password. Application should not use this method directly, see getPassword(). See also UserManager.changePassword(User,String,String) .
      Angegeben von:
      setPassword in Schnittstelle User
      Parameter:
      password - The new password.
    • getGroups

      public GroupSet getGroups()
      Get the groups this user is part of
      Angegeben von:
      getGroups in Schnittstelle BasicUser
      Gibt zurück:
      a set of groups
    • setGroups

      public void setGroups(GroupSet groups)
      Set the groups this user is part of
      Angegeben von:
      setGroups in Schnittstelle BasicUser
      Parameter:
      groups - the set of groups
    • removeGroup

      public void removeGroup(Group group)
      Remove the group from the list of groups
      Angegeben von:
      removeGroup in Schnittstelle BasicUser
      Parameter:
      group - the group to remove
    • addGroup

      public void addGroup(Group group)
      Add the group to the list of groups
      Angegeben von:
      addGroup in Schnittstelle BasicUser
      Parameter:
      group - the group to add
    • setGroupsAsSet

      public <T extends Group> void setGroupsAsSet(Set<T> groups)
      Set the groups this user is part of as a Set
      Angegeben von:
      setGroupsAsSet in Schnittstelle BasicUser
      Parameter:
      groups - the set of groups
    • getGroupsAsSet

      public <T extends Group> Set<T> getGroupsAsSet()
      Get the groups this user is part of as a Set
      Angegeben von:
      getGroupsAsSet in Schnittstelle BasicUser
      Gibt zurück:
      a set of groups
    • hashCode

      public int hashCode()
      Calculate a hash code for this object
      Setzt außer Kraft:
      hashCode in Klasse SecurityEntityImpl
      Siehe auch: