Package com.axelor.auth.db
Class User
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.auth.db.User
This object stores the users.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the givenMetaPermission
item to themetaPermissions
collection.void
addPermission
(Permission item) Add the givenPermission
item to thepermissions
collection.void
Add the givenRole
item to theroles
collection.void
Clear themetaPermissions
collection.void
Clear thepermissions
collection.void
Clear theroles
collection.boolean
Activate the user from the specified date.Block the user for an indefinite period.getCode()
getEmail()
Disable the user from the specified date.Force the user to change their password at next login.getGroup()
getId()
byte[]
getImage()
Max size 4MB.getName()
Whether to show help messages.getRoles()
Whether to use tabbed ui.getTheme()
int
hashCode()
void
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
void
void
setExpiresOn
(LocalDateTime expiresOn) void
setForcePasswordChange
(Boolean forcePasswordChange) void
void
setHomeAction
(String homeAction) void
void
setImage
(byte[] image) void
setLanguage
(String language) void
setMetaPermissions
(Set<MetaPermission> metaPermissions) void
void
void
setPassword
(String password) void
setPasswordUpdatedOn
(LocalDateTime passwordUpdatedOn) void
setPermissions
(Set<Permission> permissions) void
void
setSingleTab
(Boolean singleTab) void
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
-
Constructor Details
-
User
public User() -
User
-
-
Method Details
-
getId
-
setId
-
getCode
-
setCode
-
getName
-
setName
-
getPassword
-
setPassword
-
getPasswordUpdatedOn
-
setPasswordUpdatedOn
-
getForcePasswordChange
Force the user to change their password at next login.- Returns:
- the property value
-
setForcePasswordChange
-
getImage
public byte[] getImage()Max size 4MB.- Returns:
- the property value
-
setImage
public void setImage(byte[] image) -
getEmail
-
setEmail
-
getLanguage
-
setLanguage
-
getHomeAction
-
setHomeAction
-
getTheme
-
setTheme
-
getSingleTab
Whether to use tabbed ui.- Returns:
- the property value
-
setSingleTab
-
getNoHelp
Whether to show help messages.- Returns:
- the property value
-
setNoHelp
-
getBlocked
Block the user for an indefinite period.- Returns:
- the property value
-
setBlocked
-
getActivateOn
Activate the user from the specified date.- Returns:
- the property value
-
setActivateOn
-
getExpiresOn
Disable the user from the specified date.- Returns:
- the property value
-
setExpiresOn
-
getGroup
-
setGroup
-
getRoles
-
setRoles
-
addRole
Add the givenRole
item to theroles
collection.- Parameters:
item
- the item to add
-
removeRole
Remove the givenRole
item from theroles
collection.- Parameters:
item
- the item to remove
-
clearRoles
public void clearRoles()Clear theroles
collection. -
getPermissions
-
setPermissions
-
addPermission
Add the givenPermission
item to thepermissions
collection.- Parameters:
item
- the item to add
-
removePermission
Remove the givenPermission
item from thepermissions
collection.- Parameters:
item
- the item to remove
-
clearPermissions
public void clearPermissions()Clear thepermissions
collection. -
getMetaPermissions
-
setMetaPermissions
-
addMetaPermission
Add the givenMetaPermission
item to themetaPermissions
collection.- Parameters:
item
- the item to add
-
removeMetaPermission
Remove the givenMetaPermission
item from themetaPermissions
collection.- Parameters:
item
- the item to remove
-
clearMetaPermissions
public void clearMetaPermissions()Clear themetaPermissions
collection. -
equals
-
hashCode
public int hashCode() -
toString
-