Klasse BasicUserImpl
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
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:
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungvoidAdd the group to the list of groupsGet the groups this user is part ofGet the groups this user is part of as a SetReturns the user's password.inthashCode()Calculate a hash code for this objectvoidremoveGroup(Group group) Remove the group from the list of groupsvoidSet the groups this user is part of<T extends Group>
 voidsetGroupsAsSet(Set<T> groups) Set the groups this user is part of as a SetvoidsetPassword(String password) Set password.Von Klasse geerbte Methoden org.apache.fulcrum.security.entity.impl.SecurityEntityImplequals, getId, getName, setId, setName, toStringVon Klasse geerbte Methoden java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.apache.fulcrum.security.entity.SecurityEntitygetId, getName, setId, setName
- 
Konstruktordetails- 
BasicUserImplpublic BasicUserImpl()
 
- 
- 
Methodendetails- 
getPasswordReturns 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 alsoUserManager.authenticate(User,String).- Angegeben von:
- getPasswordin Schnittstelle- User
- Gibt zurück:
- A String with the password for the user.
 
- 
setPasswordSet password. Application should not use this method directly, seegetPassword(). See alsoUserManager.changePassword(User,String,String).- Angegeben von:
- setPasswordin Schnittstelle- User
- Parameter:
- password- The new password.
 
- 
getGroupsGet the groups this user is part of
- 
setGroupsSet the groups this user is part of
- 
removeGroupRemove the group from the list of groups- Angegeben von:
- removeGroupin Schnittstelle- BasicUser
- Parameter:
- group- the group to remove
 
- 
addGroupAdd the group to the list of groups
- 
setGroupsAsSetSet the groups this user is part of as a Set- Angegeben von:
- setGroupsAsSetin Schnittstelle- BasicUser
- Parameter:
- groups- the set of groups
 
- 
getGroupsAsSetGet the groups this user is part of as a Set- Angegeben von:
- getGroupsAsSetin Schnittstelle- BasicUser
- Gibt zurück:
- a set of groups
 
- 
hashCodepublic int hashCode()Calculate a hash code for this object- Setzt außer Kraft:
- hashCodein Klasse- SecurityEntityImpl
- Siehe auch:
 
 
-