Package pro.taskana.user.api.models
Interface User
- All Known Implementing Classes:
UserImpl
public interface User
The User holds some relevant information about the TASKANA users.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Duplicates this User.getData()Returns the data of the User.Returns the domains of the User.getEmail()Returns the email address of the User.Returns the first name of the User.Returns the full name of the User.Returns the groups of the User.getId()Returns the id of the User.Returns the last name of the User.Returns the long name of the User.Returns the mobile phone number of the User.Returns the orgLevel1 of the User.Returns the orgLevel2 of the User.Returns the orgLevel3 of the User.Returns the orgLevel4 of the User.Returns the permissions of the User.getPhone()Returns the phone number of the User.voidSets the data of the User.voidSets the email address of the User.voidsetFirstName(String firstName) Sets the first name of the User.voidsetFullName(String fullName) Sets the full name of the User.voidSets the groups of the User.voidSets the id of the User.voidsetLastName(String lastName) Sets the last name of the User.voidsetLongName(String longName) Sets the long name of the User.voidsetMobilePhone(String mobilePhone) Sets the mobile phone number of the User.voidsetOrgLevel1(String orgLevel1) Sets the orgLevel1 of the User.voidsetOrgLevel2(String orgLevel2) Sets the orgLevel2 of the User.voidsetOrgLevel3(String orgLevel3) Sets the orgLevel3 of the User.voidsetOrgLevel4(String orgLevel4) Sets the orgLevel4 of the User.voidsetPermissions(Set<String> permissions) Sets the permissions of the User.voidSets the phone number of the User.
-
Method Details
-
getId
String getId()Returns the id of the User.- Returns:
- userId
-
setId
Sets the id of the User.- Parameters:
id- the id of the User
-
getGroups
Returns the groups of the User.- Returns:
- userGroups
-
setGroups
Sets the groups of the User.- Parameters:
groups- the groups of the User
-
getPermissions
Returns the permissions of the User.- Returns:
- permissions
-
setPermissions
Sets the permissions of the User.- Parameters:
permissions- the permissions of the User
-
getFirstName
String getFirstName()Returns the first name of the User.- Returns:
- firstName
-
setFirstName
Sets the first name of the User.- Parameters:
firstName- the first name of the User
-
getLastName
String getLastName()Returns the last name of the User.- Returns:
- lastName
-
setLastName
Sets the last name of the User.- Parameters:
lastName- the last name of the User
-
getFullName
String getFullName()Returns the full name of the User.- Returns:
- fullName
-
setFullName
Sets the full name of the User.- Parameters:
fullName- the full name of the User
-
getLongName
String getLongName()Returns the long name of the User.- Returns:
- longName
-
setLongName
Sets the long name of the User.- Parameters:
longName- the long name of the User
-
getEmail
String getEmail()Returns the email address of the User.- Returns:
-
setEmail
Sets the email address of the User.- Parameters:
email- the email address of the User
-
getPhone
String getPhone()Returns the phone number of the User.- Returns:
- phone
-
setPhone
Sets the phone number of the User.- Parameters:
phone- the phone number of the User
-
getMobilePhone
String getMobilePhone()Returns the mobile phone number of the User.- Returns:
- mobilePhone
-
setMobilePhone
Sets the mobile phone number of the User.- Parameters:
mobilePhone- the mobile phone number of the User
-
getOrgLevel4
String getOrgLevel4()Returns the orgLevel4 of the User.- Returns:
- orgLevel4
-
setOrgLevel4
Sets the orgLevel4 of the User.- Parameters:
orgLevel4- the fourth organization level of the User
-
getOrgLevel3
String getOrgLevel3()Returns the orgLevel3 of the User.- Returns:
- orgLevel3
-
setOrgLevel3
Sets the orgLevel3 of the User.- Parameters:
orgLevel3- the third organization level of the User
-
getOrgLevel2
String getOrgLevel2()Returns the orgLevel2 of the User.- Returns:
- orgLevel2
-
setOrgLevel2
Sets the orgLevel2 of the User.- Parameters:
orgLevel2- the second organization level of the User
-
getOrgLevel1
String getOrgLevel1()Returns the orgLevel1 of the User.- Returns:
- orgLevel1
-
setOrgLevel1
Sets the orgLevel1 of the User.- Parameters:
orgLevel1- the first organization level of the User
-
getData
String getData()Returns the data of the User.- Returns:
- data
-
setData
Sets the data of the User.- Parameters:
data- the data of the User
-
getDomains
Returns the domains of the User.The domains are derived from the WorkbasketPermissions and the according TASKANA property TaskanaConfiguration.getMinimalPermissionsToAssignDomains().
- Returns:
- domains
-
copy
User copy()Duplicates this User.- Returns:
- a copy of this User
-