Package com.proxemo.todo4.bom
Class ToDoUser
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoUser
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoUser extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADMIN
The user is an administrator with the permission to perform complex administration tasks based on the rolePermissionsstatic int
AGENT
The user is a normal agent.static int
EDITOR
The user is an editor with the permission to edit textmodules of the groups being member ofstatic int
ROLE_PERMISSION_CONTACTS
static int
ROLE_PERMISSION_CONTROL
static int
ROLE_PERMISSION_DATABASES
static int
ROLE_PERMISSION_EMAIL
static int
ROLE_PERMISSION_FORM
static int
ROLE_PERMISSION_GROUP
static int
ROLE_PERMISSION_LABEL
static int
ROLE_PERMISSION_LICENSE
static int
ROLE_PERMISSION_LOGGING
static int
ROLE_PERMISSION_MONITORING
static int
ROLE_PERMISSION_ORGANIZATION
static int
ROLE_PERMISSION_REPORTS
static int
ROLE_PERMISSION_RPC
static int
ROLE_PERMISSION_SCRIPTING
static int
ROLE_PERMISSION_SERVERPROPERTY
static int
ROLE_PERMISSION_SMS
static int
ROLE_PERMISSION_TEXTMODULES
static int
ROLE_PERMISSION_USER
static int
SUPER_ADMIN
The user is an administrator with the permission to perform complex administration tasks..static int
SUPERVISOR
The user is a supervisor with the permission to perform simple administration tasks and to view statistics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRole(int role)
void
anonymize()
void
clearForTransmission()
void
clearRememberMeIds()
void
deleteRememberMeId(java.lang.String cookieId)
boolean
equals(java.lang.Object object)
java.util.Date
getAbsentFromDate()
java.util.Date
getAbsentUntilDate()
java.lang.String
getBilling()
java.lang.String
getCompany()
java.lang.String
getContacts()
java.util.Set<java.lang.Long>
getContactsAsSet()
java.lang.String
getDepartment()
java.lang.String
getDescription()
java.lang.String
getEmail()
java.lang.String
getExtra()
java.lang.String
getFax()
java.lang.String
getFirstname()
java.util.Set<ToDoGroupPermission>
getGroupPermissions()
java.lang.Long
getId()
Method returning a canonical id of the object.java.lang.String
getJobfunction()
java.util.Date
getLastLogin()
java.lang.String
getLastname()
ToDoMembership
getMemberShip(ToDoWorkGroup group)
java.util.Set<ToDoMembership>
getMemberships()
java.lang.String
getMobilephone()
java.lang.String
getName()
java.lang.String
getPassword()
ToDoGroupPermission
getPermission(ToDoWorkGroup group)
java.lang.String
getPhone()
java.lang.String
getPropertiesJson()
JSONObject
getProperty(java.lang.String key)
java.lang.String
getPropertyString(java.lang.String key)
int
getRolePermissions()
int
getRoles()
java.lang.String
getRolesAsString()
java.lang.String
getSalutation()
java.lang.String
getUsername()
java.lang.Integer
getVersion()
Method returning the version of the instanceboolean
hasRememberMeId(java.lang.String id)
boolean
hasRole(int role)
boolean
hasRolePermission(int rolePermissions)
java.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)boolean
isAdministrator()
boolean
isAgent()
boolean
isDirectPermission()
boolean
isEditor()
boolean
isForcePasswordChange()
boolean
isPrioPermission()
boolean
isSuperAdmin()
boolean
isSupervisor()
boolean
mayAccessControl()
boolean
mayAccessDatabases()
boolean
mayAccessLicenseHandling()
boolean
mayAccessLogging()
boolean
mayAccessMonitoring()
boolean
mayAccessReports()
boolean
mayDoAdvancedScripting()
boolean
mayEditContacts()
boolean
mayEditEmail()
boolean
mayEditForm()
boolean
mayEditGroup()
boolean
mayEditLabel()
boolean
mayEditOrganization()
boolean
mayEditRpc()
boolean
mayEditServerproperty()
boolean
mayEditSMS()
boolean
mayEditTextmodules()
boolean
mayEditUser()
void
removeRole(int role)
void
setAbsentFromDate(java.util.Date absentFromDate)
void
setAbsentUntilDate(java.util.Date absentUntilDate)
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setBilling(java.lang.String billing)
void
setCompany(java.lang.String company)
void
setContacts(java.lang.String contacts)
void
setDepartment(java.lang.String department)
void
setDescription(java.lang.String description)
void
setDirectPermission(boolean directPermission)
void
setEmail(java.lang.String email)
void
setExtra(java.lang.String extra)
void
setFax(java.lang.String fax)
void
setFirstname(java.lang.String firstname)
void
setForcePasswordChange(boolean forcePasswordChange)
void
setGroupPermissions(java.util.Set<ToDoGroupPermission> groupPermissions)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setJobfunction(java.lang.String jobfunction)
void
setLastLogin(java.util.Date lastLogin)
void
setLastname(java.lang.String lastname)
void
setMemberships(java.util.Set<ToDoMembership> memberships)
void
setMobilephone(java.lang.String mobilephone)
void
setPassword(java.lang.String password)
void
setPhone(java.lang.String phone)
void
setPrioPermission(boolean prioPermission)
void
setProperty(java.lang.String key, JSONObject value)
void
setPropertyString(java.lang.String key, java.lang.String value)
void
setRolePermissions(int rolePermissions)
void
setRoles(int roles)
void
setSalutation(java.lang.String salutation)
void
setToActive()
Method to undelete an object logically.void
setUsername(java.lang.String username)
void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.java.lang.String
toString()
-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Field Detail
-
ROLE_PERMISSION_USER
public static final int ROLE_PERMISSION_USER
- See Also:
- Constant Field Values
-
ROLE_PERMISSION_ORGANIZATION
public static final int ROLE_PERMISSION_ORGANIZATION
- See Also:
- Constant Field Values
-
ROLE_PERMISSION_GROUP
public static final int ROLE_PERMISSION_GROUP
- See Also:
- Constant Field Values
-
ROLE_PERMISSION_EMAIL
public static final int ROLE_PERMISSION_EMAIL
- See Also:
- Constant Field Values
-
ROLE_PERMISSION_SMS
public static final int ROLE_PERMISSION_SMS
- See Also:
- Constant Field Values
-
ROLE_PERMISSION_RPC
public static final int ROLE_PERMISSION_RPC
- See Also:
- Constant Field Values
-
ROLE_PERMISSION_FORM
public static final int ROLE_PERMISSION_FORM
- 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_LABEL
public static final int ROLE_PERMISSION_LABEL
- 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
-
AGENT
public static final int AGENT
The user is a normal agent.- See Also:
roles
, 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.
-
getMemberShip
public ToDoMembership getMemberShip(ToDoWorkGroup group)
-
getPermission
public ToDoGroupPermission getPermission(ToDoWorkGroup group)
-
getGroupPermissions
public java.util.Set<ToDoGroupPermission> getGroupPermissions()
-
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 classjava.lang.Object
-
getName
public java.lang.String getName()
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.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 classToDoVersionedIdentifiable
- 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 classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
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 classToDoVersionedIdentifiable
- 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 classToDoVersionedIdentifiable
- 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 classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in classToDoVersionedIdentifiable
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
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)
-
-