| com.methodhead.aikp.AutoIntKeyPersistable com.methodhead.reg.User
Constructor Summary | |
public | User() | public | User(DynaClass dynaClass) |
User | public User(DynaClass dynaClass)(Code) | | |
authenticate | public boolean authenticate(String password)(Code) | | |
delete | public void delete()(Code) | | |
encryptPassword | protected String encryptPassword(String password)(Code) | | Encrypts password by MD5 hashing it and Base64 encoding the
result.
|
getPasswordEncrypted | public boolean getPasswordEncrypted()(Code) | | |
getRoles | public List getRoles()(Code) | | Returns a list of
Role Role s for the user.
|
hasRole | public boolean hasRole(SiteContext siteContext, String name)(Code) | | Returns true if this user has the role name for the site
siteContext.
|
init | protected void init()(Code) | | |
saveNew | public void saveNew()(Code) | | |
set | public void set(String name, Object value)(Code) | | Extends default behaviour to handle password encryption if
passwordEncrypted flag is set.
|
setPasswordEncrypted | public void setPasswordEncrypted(boolean passwordEncrypted)(Code) | | Sets the password encrypted flag. When this flag is set, passwords are
hashed with MD5 and Base64 encoded before being saved in the database or
used in
User.authenticate authenticate() .
|
|
|