org.romaframework.module.users.domain
Class BaseAccount
java.lang.Object
org.romaframework.module.users.domain.AbstractAccount
org.romaframework.module.users.domain.BaseAccount
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.security.Principal, org.romaframework.aspect.session.SessionAccount
public class BaseAccount
- extends AbstractAccount
- implements org.romaframework.aspect.session.SessionAccount, java.io.Serializable, java.lang.Cloneable
Class that represents an account
- Author:
- Luca Garulli (luca.garulli--at--assetdata.it)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
BaseAccount
public BaseAccount()
BaseAccount
public BaseAccount(java.lang.String name,
java.lang.String password,
BaseProfile iProfile)
BaseAccount
public BaseAccount(java.lang.String name,
java.lang.String password,
BaseProfile iProfile,
BaseAccountStatus iStatus)
toString
public java.lang.String toString()
- Specified by:
toString in interface java.security.Principal- Overrides:
toString in class java.lang.Object
getProfile
public BaseProfile getProfile()
- Specified by:
getProfile in interface org.romaframework.aspect.session.SessionAccount
setProfile
public void setProfile(java.lang.Object iProfile)
- Specified by:
setProfile in interface org.romaframework.aspect.session.SessionAccount
setProfile
public void setProfile(BaseProfile iProfile)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String iPassword)
getLastModified
public java.util.Date getLastModified()
setLastModified
public void setLastModified(java.util.Date lastModified)
getLastPasswordUpdate
public java.util.Date getLastPasswordUpdate()
setLastPasswordUpdate
public void setLastPasswordUpdate(java.util.Date date)
getSignedOn
public java.util.Date getSignedOn()
setSignedOn
public void setSignedOn(java.util.Date signedOn)
getStatus
public BaseAccountStatus getStatus()
setStatus
public void setStatus(BaseAccountStatus status)
getNotes
public java.lang.String getNotes()
setNotes
public void setNotes(java.lang.String notes)
isChangePasswordNextLogin
public java.lang.Boolean isChangePasswordNextLogin()
setChangePasswordNextLogin
public void setChangePasswordNextLogin(java.lang.Boolean changePasswordAtNextLogin)
getEmail
public java.lang.String getEmail()
setEmail
public void setEmail(java.lang.String email)
getDefaultGroup
public BaseGroup getDefaultGroup()
getGroups
public java.util.Set<BaseGroup> getGroups()
- Returns:
- the groups
setGroups
public void setGroups(java.util.Set<BaseGroup> groups)
- Parameters:
groups - the groups to set
addGroup
public boolean addGroup(BaseGroup iGroup)
getUserIdentification
public java.lang.String getUserIdentification()
setUserIdentification
public void setUserIdentification(java.lang.String userIdentification)
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.security.Principal- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals in interface java.security.Principal- Overrides:
equals in class java.lang.Object
getOldPasswords
public java.util.List<java.lang.String> getOldPasswords()
setOldPasswords
public void setOldPasswords(java.util.List<java.lang.String> oldPasswords)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException