Class User


  • @Entity
    public class User
    extends AuditableModel
    This object stores the users.
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • setId

        public void setId​(Long id)
        Specified by:
        setId in class Model
      • 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)
      • getRoles

        public Set<Role> getRoles()
      • setRoles

        public void setRoles​(Set<Role> roles)
      • addRole

        public void addRole​(Role item)
        Add the given Role item to the roles collection.
        Parameters:
        item - the item to add
      • removeRole

        public void removeRole​(Role item)
        Remove the given Role item from the roles collection.
        Parameters:
        item - the item to remove
      • clearRoles

        public void clearRoles()
        Clear the roles collection.
      • setPermissions

        public void setPermissions​(Set<Permission> permissions)
      • addPermission

        public void addPermission​(Permission item)
        Add the given Permission item to the permissions collection.
        Parameters:
        item - the item to add
      • removePermission

        public void removePermission​(Permission item)
        Remove the given Permission item from the permissions collection.
        Parameters:
        item - the item to remove
      • clearPermissions

        public void clearPermissions()
        Clear the permissions collection.
      • setMetaPermissions

        public void setMetaPermissions​(Set<MetaPermission> metaPermissions)
      • addMetaPermission

        public void addMetaPermission​(MetaPermission item)
        Add the given MetaPermission item to the metaPermissions collection.
        Parameters:
        item - the item to add
      • removeMetaPermission

        public void removeMetaPermission​(MetaPermission item)
        Remove the given MetaPermission item from the metaPermissions collection.
        Parameters:
        item - the item to remove
      • clearMetaPermissions

        public void clearMetaPermissions()
        Clear the metaPermissions collection.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object