Package com.axelor.auth.db
Class User
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.auth.db.User
-
@Entity public class User extends AuditableModel
This object stores the users.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetaPermission(MetaPermission item)
Add the givenMetaPermission
item to themetaPermissions
collection.void
addPermission(Permission item)
Add the givenPermission
item to thepermissions
collection.void
addRole(Role item)
Add the givenRole
item to theroles
collection.void
clearMetaPermissions()
Clear themetaPermissions
collection.void
clearPermissions()
Clear thepermissions
collection.void
clearRoles()
Clear theroles
collection.boolean
equals(Object obj)
LocalDateTime
getActivateOn()
Activate the user from the specified date.Boolean
getBlocked()
Block the user for an indefinite period.String
getCode()
String
getEmail()
LocalDateTime
getExpiresOn()
Disable the user from the specified date.Boolean
getForcePasswordChange()
Force the user to change their password at next login.Group
getGroup()
String
getHomeAction()
Long
getId()
byte[]
getImage()
Max size 4MB.String
getLanguage()
Set<MetaPermission>
getMetaPermissions()
String
getName()
Boolean
getNoHelp()
Whether to show help messages.String
getPassword()
LocalDateTime
getPasswordUpdatedOn()
Set<Permission>
getPermissions()
Set<Role>
getRoles()
Boolean
getSingleTab()
Whether to use tabbed ui.String
getTheme()
int
hashCode()
void
removeMetaPermission(MetaPermission item)
Remove the givenMetaPermission
item from themetaPermissions
collection.void
removePermission(Permission item)
Remove the givenPermission
item from thepermissions
collection.void
removeRole(Role item)
Remove the givenRole
item from theroles
collection.void
setActivateOn(LocalDateTime activateOn)
void
setBlocked(Boolean blocked)
void
setCode(String code)
void
setEmail(String email)
void
setExpiresOn(LocalDateTime expiresOn)
void
setForcePasswordChange(Boolean forcePasswordChange)
void
setGroup(Group group)
void
setHomeAction(String homeAction)
void
setId(Long id)
void
setImage(byte[] image)
void
setLanguage(String language)
void
setMetaPermissions(Set<MetaPermission> metaPermissions)
void
setName(String name)
void
setNoHelp(Boolean noHelp)
void
setPassword(String password)
void
setPasswordUpdatedOn(LocalDateTime passwordUpdatedOn)
void
setPermissions(Set<Permission> permissions)
void
setRoles(Set<Role> roles)
void
setSingleTab(Boolean singleTab)
void
setTheme(String theme)
String
toString()
-
Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
-
Methods inherited from class com.axelor.db.Model
getArchived, getCid, getVersion, isSelected, setArchived, setCid, setSelected, setVersion
-
-
-
-
Method Detail
-
getCode
public String getCode()
-
setCode
public void setCode(String code)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getPasswordUpdatedOn
public LocalDateTime getPasswordUpdatedOn()
-
setPasswordUpdatedOn
public void setPasswordUpdatedOn(LocalDateTime passwordUpdatedOn)
-
getForcePasswordChange
public Boolean getForcePasswordChange()
Force the user to change their password at next login.- Returns:
- the property value
-
setForcePasswordChange
public void setForcePasswordChange(Boolean forcePasswordChange)
-
getImage
public byte[] getImage()
Max size 4MB.- Returns:
- the property value
-
setImage
public void setImage(byte[] image)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getLanguage
public String getLanguage()
-
setLanguage
public void setLanguage(String language)
-
getHomeAction
public String getHomeAction()
-
setHomeAction
public void setHomeAction(String homeAction)
-
getTheme
public String getTheme()
-
setTheme
public void setTheme(String theme)
-
getSingleTab
public Boolean getSingleTab()
Whether to use tabbed ui.- Returns:
- the property value
-
setSingleTab
public void setSingleTab(Boolean singleTab)
-
getNoHelp
public Boolean getNoHelp()
Whether to show help messages.- Returns:
- the property value
-
setNoHelp
public void setNoHelp(Boolean noHelp)
-
getBlocked
public Boolean getBlocked()
Block the user for an indefinite period.- Returns:
- the property value
-
setBlocked
public void setBlocked(Boolean blocked)
-
getActivateOn
public LocalDateTime getActivateOn()
Activate the user from the specified date.- Returns:
- the property value
-
setActivateOn
public void setActivateOn(LocalDateTime activateOn)
-
getExpiresOn
public LocalDateTime getExpiresOn()
Disable the user from the specified date.- Returns:
- the property value
-
setExpiresOn
public void setExpiresOn(LocalDateTime expiresOn)
-
getGroup
public Group getGroup()
-
setGroup
public void setGroup(Group group)
-
addRole
public void addRole(Role item)
Add the givenRole
item to theroles
collection.- Parameters:
item
- the item to add
-
removeRole
public void removeRole(Role item)
Remove the givenRole
item from theroles
collection.- Parameters:
item
- the item to remove
-
clearRoles
public void clearRoles()
Clear theroles
collection.
-
getPermissions
public Set<Permission> getPermissions()
-
setPermissions
public void setPermissions(Set<Permission> permissions)
-
addPermission
public void addPermission(Permission item)
Add the givenPermission
item to thepermissions
collection.- Parameters:
item
- the item to add
-
removePermission
public void removePermission(Permission item)
Remove the givenPermission
item from thepermissions
collection.- Parameters:
item
- the item to remove
-
clearPermissions
public void clearPermissions()
Clear thepermissions
collection.
-
getMetaPermissions
public Set<MetaPermission> getMetaPermissions()
-
setMetaPermissions
public void setMetaPermissions(Set<MetaPermission> metaPermissions)
-
addMetaPermission
public void addMetaPermission(MetaPermission item)
Add the givenMetaPermission
item to themetaPermissions
collection.- Parameters:
item
- the item to add
-
removeMetaPermission
public void removeMetaPermission(MetaPermission item)
Remove the givenMetaPermission
item from themetaPermissions
collection.- Parameters:
item
- the item to remove
-
clearMetaPermissions
public void clearMetaPermissions()
Clear themetaPermissions
collection.
-
-