Package co.mastermindcms.modules.beans
Class User
- java.lang.Object
-
- co.mastermindcms.common.entities.Auditable<java.lang.String>
-
- co.mastermindcms.modules.beans.User
-
- All Implemented Interfaces:
java.io.Serializable
@TypeAlias("User") public class User extends Auditable<java.lang.String>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
active
private java.util.HashSet<EmbeddedBean>
fallIntoObjects
private java.lang.String
id
private java.lang.String
password
private java.lang.String
permissions
private java.lang.String
roles
private java.lang.String
savedPassword
static java.lang.String
SEQUENCE_NAME
private java.lang.String
username
-
Fields inherited from class co.mastermindcms.common.entities.Auditable
createdBy, createdDate, lastModifiedBy, lastModifiedDate, metaInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
User()
User(java.lang.String id, java.lang.String username, java.lang.String password, java.lang.String roles, java.lang.String permissions)
User(java.lang.String id, java.lang.String username, java.lang.String password, java.lang.String roles, java.lang.String permissions, boolean active)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.HashSet<EmbeddedBean>
getFallIntoObjects()
java.lang.String
getId()
java.lang.String
getPassword()
java.util.List<java.lang.String>
getPermissionList()
java.lang.String
getPermissions()
java.util.List<java.lang.String>
getRoleList()
java.lang.String
getRoles()
java.lang.String
getSavedPassword()
java.lang.String
getUsername()
int
hashCode()
boolean
isActive()
void
revertPasswordToSaved(java.lang.String password)
void
setActive(boolean active)
void
setFallIntoObjects(java.util.HashSet<EmbeddedBean> fallIntoObjects)
void
setId(java.lang.String id)
void
setPassword(java.lang.String password)
void
setPermissions(java.lang.String permissions)
void
setRoles(java.lang.String roles)
void
setSavedPassword(java.lang.String savedPassword)
void
setUsername(java.lang.String username)
java.lang.String
toString()
-
Methods inherited from class co.mastermindcms.common.entities.Auditable
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, getMetaInfo, putMetaInfo, removeMetaInfo, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDate, setMetaInfo
-
-
-
-
Field Detail
-
id
private java.lang.String id
-
username
private java.lang.String username
-
password
private java.lang.String password
-
savedPassword
private java.lang.String savedPassword
-
fallIntoObjects
private java.util.HashSet<EmbeddedBean> fallIntoObjects
-
active
private boolean active
-
roles
private java.lang.String roles
-
permissions
private java.lang.String permissions
-
SEQUENCE_NAME
public static final java.lang.String SEQUENCE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
User
public User(java.lang.String id, java.lang.String username, java.lang.String password, java.lang.String roles, java.lang.String permissions)
-
User
public User(java.lang.String id, java.lang.String username, java.lang.String password, java.lang.String roles, java.lang.String permissions, boolean active)
-
User
protected User()
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getUsername
public java.lang.String getUsername()
-
setUsername
public void setUsername(java.lang.String username)
-
getPassword
public java.lang.String getPassword()
-
setPassword
public void setPassword(java.lang.String password)
-
revertPasswordToSaved
public void revertPasswordToSaved(java.lang.String password)
-
setSavedPassword
public void setSavedPassword(java.lang.String savedPassword)
-
getSavedPassword
public java.lang.String getSavedPassword()
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
getFallIntoObjects
public java.util.HashSet<EmbeddedBean> getFallIntoObjects()
-
setFallIntoObjects
public void setFallIntoObjects(java.util.HashSet<EmbeddedBean> fallIntoObjects)
-
getRoles
public java.lang.String getRoles()
-
setRoles
public void setRoles(java.lang.String roles)
-
getPermissions
public java.lang.String getPermissions()
-
setPermissions
public void setPermissions(java.lang.String permissions)
-
getRoleList
public java.util.List<java.lang.String> getRoleList()
-
getPermissionList
public java.util.List<java.lang.String> getPermissionList()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-