org.wamblee.usermgt
Class AbstractUserSet

java.lang.Object
  extended by org.wamblee.usermgt.AbstractUserSet
All Implemented Interfaces:
UserSet
Direct Known Subclasses:
HibernateUserSet, InMemoryUserSet

public abstract class AbstractUserSet
extends java.lang.Object
implements UserSet

User set base class.


Constructor Summary
protected AbstractUserSet(NameValidator aPasswordValidator, MessageDigester aPasswordEncoder)
           
 
Method Summary
 User createUser(java.lang.String aUsername, java.lang.String aPassword, Group aGroup)
          Creates a user.
protected  void setPasswordInfo(User aUser)
          Sets the password validtor and encoder in the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wamblee.usermgt.UserSet
add, contains, find, list, list, remove, size, userModified
 

Constructor Detail

AbstractUserSet

protected AbstractUserSet(NameValidator aPasswordValidator,
                          MessageDigester aPasswordEncoder)
Method Detail

setPasswordInfo

protected void setPasswordInfo(User aUser)
Sets the password validtor and encoder in the user.

Parameters:
aUser - User.

createUser

public User createUser(java.lang.String aUsername,
                       java.lang.String aPassword,
                       Group aGroup)
                throws UserMgtException
Description copied from interface: UserSet
Creates a user.

Specified by:
createUser in interface UserSet
Parameters:
aUsername - User name.
aPassword - Password.
aGroup - Group.
Returns:
New user.
Throws:
UserMgtException - In case the user cannot be created.


Copyright © 2010. All Rights Reserved.