public class CurrentUserRepresentation extends BaseResourceRepresentation
UserRepresentation
.
Current user resource provides information required by client (application) for normal operation.
One example is effective list of roles. Without building this list on server side, client would have to explicitly go
through associated roles/groups, possibly with pagination operations. It is both difficult, and not possible if
ROLE_USER_MANAGEMENT_READ role is not present.Constructor and Description |
---|
CurrentUserRepresentation() |
Modifier and Type | Method and Description |
---|---|
List<RoleRepresentation> |
getEffectiveRoles() |
String |
getEmail() |
String |
getFirstName() |
String |
getId() |
String |
getLastName() |
Date |
getLastPasswordChange()
Deprecated.
|
org.joda.time.DateTime |
getLastPasswordChangeDateTime() |
String |
getPassword() |
String |
getPhone() |
Boolean |
getShouldResetPassword() |
String |
getUserName() |
void |
setEffectiveRoles(List<RoleRepresentation> effectiveRoles) |
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setId(String id) |
void |
setLastName(String lastName) |
void |
setLastPasswordChange(Date lastPasswordChange)
Deprecated.
|
void |
setLastPasswordChangeDateTime(org.joda.time.DateTime lastPasswordChange) |
void |
setPassword(String password) |
void |
setPhone(String phone) |
void |
setShouldResetPassword(Boolean shouldResetPassword) |
void |
setUserName(String userName) |
getSelf, getSelfDecoded, setSelf, toJSON, toString
@JSONProperty(ignoreIfNull=true) public String getId()
@JSONProperty(ignoreIfNull=true) public String getUserName()
public void setUserName(String userName)
@JSONProperty(ignoreIfNull=true) public String getPassword()
public void setPassword(String password)
@JSONProperty(ignoreIfNull=true) public String getFirstName()
public void setFirstName(String firstName)
@JSONProperty(ignoreIfNull=true) public String getLastName()
public void setLastName(String lastName)
@JSONProperty(ignoreIfNull=true) public String getPhone()
public void setPhone(String phone)
@JSONProperty(ignoreIfNull=true) public String getEmail()
public void setEmail(String email)
public void setId(String id)
@JSONProperty(ignoreIfNull=true) @JSONTypeHint(value=RoleRepresentation.class) public List<RoleRepresentation> getEffectiveRoles()
public void setEffectiveRoles(List<RoleRepresentation> effectiveRoles)
@JSONProperty(ignoreIfNull=true) public Boolean getShouldResetPassword()
public void setShouldResetPassword(Boolean shouldResetPassword)
@JSONProperty(value="deprecated_LastPasswordChange", ignore=true) @Deprecated public Date getLastPasswordChange()
@Deprecated public void setLastPasswordChange(Date lastPasswordChange)
@JSONProperty(value="lastPasswordChange", ignoreIfNull=true) @JSONConverter(type=com.cumulocity.model.DateTimeConverter.class) public org.joda.time.DateTime getLastPasswordChangeDateTime()
public void setLastPasswordChangeDateTime(org.joda.time.DateTime lastPasswordChange)
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.