| java.lang.Object org.apache.cocoon.samples.flow.prefs.UserRegistry
UserRegistry | public class UserRegistry (Code) | | Maintains a list of registered users. This is a very simple class,
there is no persistence of the users, but such thing should be easy
to add.
author: Ovidiu Predescu since: August 28, 2002 version: CVS $Id: UserRegistry.java 433543 2006-08-22 06:22:54Z crossley $ |
UserRegistry | protected UserRegistry()(Code) | | |
addUser | public synchronized boolean addUser(User user)(Code) | | |
getUserWithLogin | public User getUserWithLogin(String loginName, String password)(Code) | | Returns the
User object which represents an user. Note that
we require a password to be present, to avoid presenting private
information to anyone.
Parameters: loginName - a String value Parameters: password - a String value an User value |
isLoginNameTaken | public boolean isLoginNameTaken(String loginName)(Code) | | Checks is a particular login name is taken or not.
Parameters: loginName - a String value true if loginName is taken, false otherwise |
removeUser | public boolean removeUser(User user)(Code) | | |
|
|