Class CurrentUserRepresentation

All Implemented Interfaces:
ResourceRepresentation, org.svenson.DynamicProperties

public class CurrentUserRepresentation extends AbstractExtensibleRepresentation
This class intentionally is not extending 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 Details

    • CurrentUserRepresentation

      public CurrentUserRepresentation()
  • Method Details

    • getId

      @JSONProperty(ignoreIfNull=true) public String getId()
    • getUserName

      @JSONProperty(ignoreIfNull=true) public String getUserName()
    • setUserName

      public void setUserName(String userName)
    • getPassword

      @JSONProperty(ignoreIfNull=true) public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getFirstName

      @JSONProperty(ignoreIfNull=true) public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      @JSONProperty(ignoreIfNull=true) public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • getPhone

      @JSONProperty(ignoreIfNull=true) public String getPhone()
    • setPhone

      public void setPhone(String phone)
    • getEmail

      @JSONProperty(ignoreIfNull=true) public String getEmail()
    • setEmail

      public void setEmail(String email)
    • setId

      public void setId(String id)
    • getEffectiveRoles

      @JSONProperty(ignoreIfNull=true) @JSONTypeHint(RoleRepresentation.class) public List<RoleRepresentation> getEffectiveRoles()
    • setEffectiveRoles

      public void setEffectiveRoles(List<RoleRepresentation> effectiveRoles)
    • getShouldResetPassword

      @JSONProperty(ignoreIfNull=true) public Boolean getShouldResetPassword()
    • setShouldResetPassword

      public void setShouldResetPassword(Boolean shouldResetPassword)
    • getLastPasswordChange

      @JSONProperty(value="deprecated_LastPasswordChange", ignore=true) @Deprecated public Date getLastPasswordChange()
      Deprecated.
    • setLastPasswordChange

      @Deprecated public void setLastPasswordChange(Date lastPasswordChange)
      Deprecated.
    • getLastPasswordChangeDateTime

      @JSONProperty(value="lastPasswordChange", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getLastPasswordChangeDateTime()
    • setLastPasswordChangeDateTime

      public void setLastPasswordChangeDateTime(org.joda.time.DateTime lastPasswordChange)