Package pro.taskana.user.rest.models
Class UserRepresentationModel
- java.lang.Object
-
- org.springframework.hateoas.RepresentationModel<UserRepresentationModel>
-
- pro.taskana.user.rest.models.UserRepresentationModel
-
public class UserRepresentationModel extends org.springframework.hateoas.RepresentationModel<UserRepresentationModel>
The entityModel class for User.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdataThe data of the User.protected StringemailThe email of the User.protected StringfirstNameThe first name of the User.protected StringfullNameThe full name of the User.protected StringlastNameThe last name of the User.protected StringlongNameThe long name of the User.protected StringmobilePhoneThe mobile phone number of the User.protected StringorgLevel1The first organisation level of the User.protected StringorgLevel2The second organisation level of the User.protected StringorgLevel3The third organisation level of the User.protected StringorgLevel4The fourth organisation level of the User.protected StringphoneThe phone number of the User.protected @NotNull StringuserIdUnique Id.
-
Constructor Summary
Constructors Constructor Description UserRepresentationModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetData()StringgetEmail()StringgetFirstName()StringgetFullName()StringgetLastName()StringgetLongName()StringgetMobilePhone()StringgetOrgLevel1()StringgetOrgLevel2()StringgetOrgLevel3()StringgetOrgLevel4()StringgetPhone()StringgetUserId()inthashCode()voidsetData(String data)voidsetEmail(String email)voidsetFirstName(String firstName)voidsetFullName(String fullName)voidsetLastName(String lastName)voidsetLongName(String longName)voidsetMobilePhone(String mobilePhone)voidsetOrgLevel1(String orgLevel1)voidsetOrgLevel2(String orgLevel2)voidsetOrgLevel3(String orgLevel3)voidsetOrgLevel4(String orgLevel4)voidsetPhone(String phone)voidsetUserId(String id)
-
-
-
Field Detail
-
userId
@NotNull protected @NotNull String userId
Unique Id.
-
firstName
protected String firstName
The first name of the User.
-
lastName
protected String lastName
The last name of the User.
-
fullName
protected String fullName
The full name of the User.
-
longName
protected String longName
The long name of the User.
-
email
protected String email
The email of the User.
-
phone
protected String phone
The phone number of the User.
-
mobilePhone
protected String mobilePhone
The mobile phone number of the User.
-
orgLevel4
protected String orgLevel4
The fourth organisation level of the User.
-
orgLevel3
protected String orgLevel3
The third organisation level of the User.
-
orgLevel2
protected String orgLevel2
The second organisation level of the User.
-
orgLevel1
protected String orgLevel1
The first organisation level of the User.
-
data
protected String data
The data of the User. This field is used for additional information about the User.
-
-
Method Detail
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String id)
-
getFirstName
public String getFirstName()
-
setFirstName
public void setFirstName(String firstName)
-
getLastName
public String getLastName()
-
setLastName
public void setLastName(String lastName)
-
getFullName
public String getFullName()
-
setFullName
public void setFullName(String fullName)
-
getLongName
public String getLongName()
-
setLongName
public void setLongName(String longName)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getPhone
public String getPhone()
-
setPhone
public void setPhone(String phone)
-
getMobilePhone
public String getMobilePhone()
-
setMobilePhone
public void setMobilePhone(String mobilePhone)
-
getOrgLevel4
public String getOrgLevel4()
-
setOrgLevel4
public void setOrgLevel4(String orgLevel4)
-
getOrgLevel3
public String getOrgLevel3()
-
setOrgLevel3
public void setOrgLevel3(String orgLevel3)
-
getOrgLevel2
public String getOrgLevel2()
-
setOrgLevel2
public void setOrgLevel2(String orgLevel2)
-
getOrgLevel1
public String getOrgLevel1()
-
setOrgLevel1
public void setOrgLevel1(String orgLevel1)
-
getData
public String getData()
-
setData
public void setData(String data)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.springframework.hateoas.RepresentationModel<UserRepresentationModel>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classorg.springframework.hateoas.RepresentationModel<UserRepresentationModel>
-
-