Class ToDoUser

    • Field Detail

      • ROLE_PERMISSION_ORGANIZATION

        public static final int ROLE_PERMISSION_ORGANIZATION
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_SERVERPROPERTY

        public static final int ROLE_PERMISSION_SERVERPROPERTY
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_TEXTMODULES

        public static final int ROLE_PERMISSION_TEXTMODULES
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_CONTACTS

        public static final int ROLE_PERMISSION_CONTACTS
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_SCRIPTING

        public static final int ROLE_PERMISSION_SCRIPTING
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_LOGGING

        public static final int ROLE_PERMISSION_LOGGING
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_LICENSE

        public static final int ROLE_PERMISSION_LICENSE
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_DATABASES

        public static final int ROLE_PERMISSION_DATABASES
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_REPORTS

        public static final int ROLE_PERMISSION_REPORTS
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_MONITORING

        public static final int ROLE_PERMISSION_MONITORING
        See Also:
        Constant Field Values
      • ROLE_PERMISSION_CONTROL

        public static final int ROLE_PERMISSION_CONTROL
        See Also:
        Constant Field Values
      • SUPERVISOR

        public static final int SUPERVISOR
        The user is a supervisor with the permission to perform simple administration tasks and to view statistics.
        See Also:
        roles, Constant Field Values
      • ADMIN

        public static final int ADMIN
        The user is an administrator with the permission to perform complex administration tasks based on the rolePermissions
        See Also:
        #rolePermission, Constant Field Values
      • SUPER_ADMIN

        public static final int SUPER_ADMIN
        The user is an administrator with the permission to perform complex administration tasks..
        See Also:
        roles, Constant Field Values
      • EDITOR

        public static final int EDITOR
        The user is an editor with the permission to edit textmodules of the groups being member of
        See Also:
        roles, Constant Field Values
    • Constructor Detail

      • ToDoUser

        public ToDoUser()
      • ToDoUser

        public ToDoUser​(ToDoUser u)
    • Method Detail

      • getRolesAsString

        public java.lang.String getRolesAsString()
      • getPassword

        public java.lang.String getPassword()
        Returns:
        Returns the password.
      • setPassword

        public void setPassword​(java.lang.String password)
        Parameters:
        password - The password to set.
      • getRoles

        public int getRoles()
        Returns:
        Returns the roles.
      • getRolePermissions

        public int getRolePermissions()
      • setRolePermissions

        public void setRolePermissions​(int rolePermissions)
      • setRoles

        public void setRoles​(int roles)
        Parameters:
        roles - The roles to set.
      • addRole

        public void addRole​(int role)
      • removeRole

        public void removeRole​(int role)
      • hasRole

        public boolean hasRole​(int role)
      • isAgent

        public boolean isAgent()
      • isEditor

        public boolean isEditor()
      • isSupervisor

        public boolean isSupervisor()
      • isAdministrator

        public boolean isAdministrator()
      • isSuperAdmin

        public boolean isSuperAdmin()
      • hasRolePermission

        public boolean hasRolePermission​(int rolePermissions)
      • mayEditUser

        public boolean mayEditUser()
      • mayEditOrganization

        public boolean mayEditOrganization()
      • mayEditGroup

        public boolean mayEditGroup()
      • mayEditEmail

        public boolean mayEditEmail()
      • mayEditSMS

        public boolean mayEditSMS()
      • mayEditRpc

        public boolean mayEditRpc()
      • mayEditForm

        public boolean mayEditForm()
      • mayEditServerproperty

        public boolean mayEditServerproperty()
      • mayEditTextmodules

        public boolean mayEditTextmodules()
      • mayEditLabel

        public boolean mayEditLabel()
      • mayEditContacts

        public boolean mayEditContacts()
      • mayDoAdvancedScripting

        public boolean mayDoAdvancedScripting()
      • mayAccessLogging

        public boolean mayAccessLogging()
      • mayAccessLicenseHandling

        public boolean mayAccessLicenseHandling()
      • mayAccessDatabases

        public boolean mayAccessDatabases()
      • mayAccessReports

        public boolean mayAccessReports()
      • mayAccessMonitoring

        public boolean mayAccessMonitoring()
      • mayAccessControl

        public boolean mayAccessControl()
      • getMemberships

        public java.util.Set<ToDoMembership> getMemberships()
        Returns:
        Returns the memberships in workgroups.
      • setMemberships

        public void setMemberships​(java.util.Set<ToDoMembership> memberships)
        Parameters:
        workgroups - The workgroups to set.
      • setGroupPermissions

        public void setGroupPermissions​(java.util.Set<ToDoGroupPermission> groupPermissions)
      • isDirectPermission

        public boolean isDirectPermission()
      • setDirectPermission

        public void setDirectPermission​(boolean directPermission)
      • getAbsentFromDate

        public java.util.Date getAbsentFromDate()
      • setAbsentFromDate

        public void setAbsentFromDate​(java.util.Date absentFromDate)
      • getAbsentUntilDate

        public java.util.Date getAbsentUntilDate()
      • setAbsentUntilDate

        public void setAbsentUntilDate​(java.util.Date absentUntilDate)
      • isPrioPermission

        public boolean isPrioPermission()
      • setPrioPermission

        public void setPrioPermission​(boolean prioPermission)
      • getEmail

        public java.lang.String getEmail()
      • setEmail

        public void setEmail​(java.lang.String email)
      • getFirstname

        public java.lang.String getFirstname()
      • setFirstname

        public void setFirstname​(java.lang.String firstname)
      • getLastLogin

        public java.util.Date getLastLogin()
      • setLastLogin

        public void setLastLogin​(java.util.Date lastLogin)
      • getLastname

        public java.lang.String getLastname()
      • setLastname

        public void setLastname​(java.lang.String lastname)
      • getMobilephone

        public java.lang.String getMobilephone()
      • setMobilephone

        public void setMobilephone​(java.lang.String mobilephone)
      • getPhone

        public java.lang.String getPhone()
      • setPhone

        public void setPhone​(java.lang.String phone)
      • getSalutation

        public java.lang.String getSalutation()
      • setSalutation

        public void setSalutation​(java.lang.String salutation)
      • getUsername

        public java.lang.String getUsername()
      • setUsername

        public void setUsername​(java.lang.String username)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • getBilling

        public java.lang.String getBilling()
      • setBilling

        public void setBilling​(java.lang.String billing)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • isForcePasswordChange

        public boolean isForcePasswordChange()
      • setForcePasswordChange

        public void setForcePasswordChange​(boolean forcePasswordChange)
      • clearForTransmission

        public void clearForTransmission()
      • getCompany

        public java.lang.String getCompany()
      • setCompany

        public void setCompany​(java.lang.String company)
      • getDepartment

        public java.lang.String getDepartment()
      • setDepartment

        public void setDepartment​(java.lang.String department)
      • getJobfunction

        public java.lang.String getJobfunction()
      • setJobfunction

        public void setJobfunction​(java.lang.String jobfunction)
      • getFax

        public java.lang.String getFax()
      • setFax

        public void setFax​(java.lang.String fax)
      • getExtra

        public java.lang.String getExtra()
      • setExtra

        public void setExtra​(java.lang.String extra)
      • getId

        public java.lang.Long getId()
        Description copied from class: ToDoVersionedIdentifiable
        Method returning a canonical id of the object. Transient objects return -1;
        Specified by:
        getId in class ToDoVersionedIdentifiable
        Returns:
        id the id of the object. Id is canonical for all instances of a class.
      • setId

        public void setId​(java.lang.Long id)
        Description copied from class: ToDoVersionedIdentifiable
        Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.
        Specified by:
        setId in class ToDoVersionedIdentifiable
        Parameters:
        id - id of the object
      • setVersion

        public void setVersion​(java.lang.Integer version)
        Description copied from class: ToDoVersionedIdentifiable
        Method setting the version of the instance, Should under normal circumstances not be manually invoked.
        Specified by:
        setVersion in class ToDoVersionedIdentifiable
        Parameters:
        version - of the object
      • isActive

        public java.lang.Boolean isActive()
        Description copied from class: ToDoVersionedIdentifiable
        Method that returns whether the instance is active or not (means: logically deleted)
        Specified by:
        isActive in class ToDoVersionedIdentifiable
        Returns:
        boolean whether the object is active
      • setActive

        public void setActive​(java.lang.Boolean active)
        Description copied from class: ToDoVersionedIdentifiable
        Method setting the active flag. Invoking this method with false logically deletes the instance in the database.
        Specified by:
        setActive in class ToDoVersionedIdentifiable
        Parameters:
        active - is the object active or not
      • getContacts

        public java.lang.String getContacts()
      • setContacts

        public void setContacts​(java.lang.String contacts)
      • getContactsAsSet

        public java.util.Set<java.lang.Long> getContactsAsSet()
      • getPropertiesJson

        public java.lang.String getPropertiesJson()
      • getProperty

        public JSONObject getProperty​(java.lang.String key)
      • getPropertyString

        public java.lang.String getPropertyString​(java.lang.String key)
      • setProperty

        public void setProperty​(java.lang.String key,
                                JSONObject value)
      • setPropertyString

        public void setPropertyString​(java.lang.String key,
                                      java.lang.String value)
      • hasRememberMeId

        public boolean hasRememberMeId​(java.lang.String id)
      • clearRememberMeIds

        public void clearRememberMeIds()
      • deleteRememberMeId

        public void deleteRememberMeId​(java.lang.String cookieId)