org.jboss.test.hibernate.model
Class User
java.lang.Object
org.jboss.test.hibernate.model.User
- All Implemented Interfaces:
- java.io.Serializable
- public class User
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
User()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
User
public User()
getHandle
public java.lang.String getHandle()
setHandle
public void setHandle(java.lang.String handle)
getId
public java.lang.Long getId()
getName
public Name (src) getName()
setName
public void setName(Name (src) name)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
changePassword
public boolean changePassword(java.lang.String newPassword)
- Change the password, as long as the new password has not already been
used.
getRoles
public java.util.List getRoles()
- Many-to-many association to Role. This is a collection of Roles (if we
don't want the extra information defined by UserRole).
getEmail
public java.lang.String getEmail()
setEmail
public void setEmail(java.lang.String email)
getTimeOfCreation
public java.util.Calendar getTimeOfCreation()
setTimeOfCreation
public void setTimeOfCreation(java.util.Calendar timeOfCreation)
getTimeOfLastUpdate
public java.util.Calendar getTimeOfLastUpdate()
addRole
public UserRole (src) addRole(Role (src) role)
removeRole
public void removeRole(int selectedRole)
getUserRoles
public java.util.List getUserRoles()
- Many-to-many association to Role. This is a collection of UserRoles, the
association class.
getPreviousPasswords
public java.util.Set getPreviousPasswords()
equals
public boolean equals(java.lang.Object other)
hashCode
public int hashCode()