| org.apache.lenya.ac.impl.AbstractItem org.apache.lenya.ac.impl.AbstractGroupable org.apache.lenya.ac.impl.AbstractUser
All known Subclasses: org.apache.lenya.ac.file.FileUser,
AbstractUser | abstract public class AbstractUser extends AbstractGroupable implements User(Code) | | Abstract user implementation.
version: $Id: AbstractUser.java 580116 2007-09-27 18:02:21Z rfrovarp $ |
AbstractUser | public AbstractUser(ItemManager itemManager, Logger logger)(Code) | | Creates a new User.
Parameters: itemManager - The item manager. Parameters: logger - The logger. |
AbstractUser | public AbstractUser(ItemManager itemManager, Logger logger, String id, String fullName, String _email, String password)(Code) | | Create a User instance
Parameters: itemManager - The item manager. Parameters: logger - The logger. Parameters: id - the user id Parameters: fullName - the full name of the user Parameters: _email - the users email address Parameters: password - the users password |
authenticate | public boolean authenticate(String password)(Code) | | Authenticate a user. This is done by encrypting the given password and
comparing this to the encryptedPassword.
Parameters: password - to authenticate with true if the given password matches the password for this user |
canChangePassword | public boolean canChangePassword()(Code) | | Checks support for changing password
true if password change is supported |
getDefaultDocumentLocale | public String getDefaultDocumentLocale()(Code) | | Returns the defaultDocumentLocale. |
getDefaultMenuLocale | public String getDefaultMenuLocale()(Code) | | Returns the defaultMenuLocale. |
getEmail | public String getEmail()(Code) | | Get the email address
a String |
getEncryptedPassword | protected String getEncryptedPassword()(Code) | | Get the encrypted password
the encrypted password |
setDefaultDocumentLocale | public void setDefaultDocumentLocale(String defaultDocumentLocale)(Code) | | Parameters: defaultDocumentLocale - The defaultDocumentLocale to set. |
setDefaultMenuLocale | public void setDefaultMenuLocale(String defaultMenuLocale)(Code) | | Parameters: defaultMenuLocale - The defaultMenuLocale to set. |
setEmail | public void setEmail(String _email)(Code) | | Set the email address
Parameters: _email - the new email address |
setEncryptedPassword | protected void setEncryptedPassword(String _encryptedPassword)(Code) | | This method can be used for subclasses to set the password without it
being encrypted again. Some subclass might have knowledge of the
encrypted password and needs to be able to set it.
Parameters: _encryptedPassword - the encrypted password |
setPassword | public void setPassword(String plainTextPassword)(Code) | | Sets the password.
Parameters: plainTextPassword - The plain text passwrod. |
|
|