java.lang.Object
com.atlassian.jira.plugins.auditing.rest.responses.UserResponse

public class UserResponse extends Object
  • Constructor Details

    • UserResponse

      public UserResponse(String username, String fullName, URI avatarUrl, Boolean deleted)
    • UserResponse

      public UserResponse()
  • Method Details

    • getUsername

      public String getUsername()
    • getFullName

      public String getFullName()
    • getAvatarUrl

      public URI getAvatarUrl()
    • getDeleted

      public Boolean getDeleted()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • fromUser

      public static UserResponse fromUser(ApplicationUser user)
    • fromKey

      public static UserResponse fromKey(String userKey)
      Tries to resolve the user based on the provided user key. In case the user is not found, a new user is returned with as the value for all fields. Returns null if the key is null.
      Parameters:
      userKey - the user key for which an user is requested
      Returns:
      a new instance of UserResponse