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 TypeMethodDescriptionvoidAdd the givenMetaPermissionitem to themetaPermissionscollection.voidaddPermission(Permission item) Add the givenPermissionitem to thepermissionscollection.voidAdd the givenRoleitem to therolescollection.voidClear themetaPermissionscollection.voidClear thepermissionscollection.voidClear therolescollection.booleanActivate 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()inthashCode()voidRemove the givenMetaPermissionitem from themetaPermissionscollection.voidremovePermission(Permission item) Remove the givenPermissionitem from thepermissionscollection.voidremoveRole(Role item) Remove the givenRoleitem from therolescollection.voidsetActivateOn(LocalDateTime activateOn) voidsetBlocked(Boolean blocked) voidvoidvoidsetExpiresOn(LocalDateTime expiresOn) voidsetForcePasswordChange(Boolean forcePasswordChange) voidvoidsetHomeAction(String homeAction) voidvoidsetImage(byte[] image) voidsetLanguage(String language) voidsetMetaPermissions(Set<MetaPermission> metaPermissions) voidvoidvoidsetPassword(String password) voidsetPasswordUpdatedOn(LocalDateTime passwordUpdatedOn) voidsetPermissions(Set<Permission> permissions) voidvoidsetSingleTab(Boolean singleTab) voidtoString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods 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 givenRoleitem to therolescollection.- Parameters:
item- the item to add
-
removeRole
Remove the givenRoleitem from therolescollection.- Parameters:
item- the item to remove
-
clearRoles
public void clearRoles()Clear therolescollection. -
getPermissions
-
setPermissions
-
addPermission
Add the givenPermissionitem to thepermissionscollection.- Parameters:
item- the item to add
-
removePermission
Remove the givenPermissionitem from thepermissionscollection.- Parameters:
item- the item to remove
-
clearPermissions
public void clearPermissions()Clear thepermissionscollection. -
getMetaPermissions
-
setMetaPermissions
-
addMetaPermission
Add the givenMetaPermissionitem to themetaPermissionscollection.- Parameters:
item- the item to add
-
removeMetaPermission
Remove the givenMetaPermissionitem from themetaPermissionscollection.- Parameters:
item- the item to remove
-
clearMetaPermissions
public void clearMetaPermissions()Clear themetaPermissionscollection. -
equals
-
hashCode
public int hashCode() -
toString
-