All Implemented Interfaces:
AddressableEntity, NamedEntity

public class User extends BasicUser
Complete information about a single JIRA user
Since:
v0.1
  • Field Details

  • Constructor Details

  • Method Details

    • getEmailAddress

      public String getEmailAddress()
    • isActive

      public boolean isActive()
    • getAvatarUri

      public URI getAvatarUri()
    • getSmallAvatarUri

      @Nullable public URI getSmallAvatarUri()
      Returns:
      user avatar image URI for 16x16 pixels
      Since:
      0.5 com.atlassian.jira.rest.client.api, 5.0 server
    • getAvatarUri

      @Nullable public URI getAvatarUri(String sizeDefinition)
      As of JIRA 5.0 there can be several different user avatar URIs - for different size.
      Parameters:
      sizeDefinition - size like "16x16" or "48x48". URI for 48x48 should be always defined.
      Returns:
      URI for specified size or null when there is no avatar image with given dimensions specified for this user
    • getGroups

      @Nullable public ExpandableProperty<String> getGroups()
      Returns:
      groups given user belongs to
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class BasicUser
    • getTimezone

      @Nullable public String getTimezone()
      Returns:
      user timezone, like "Europe/Berlin" or null if timezone info is not available
      Since:
      com.atlassian.jira.rest.client.api 0.5, server 4.4
    • getToStringHelper

      protected com.google.common.base.MoreObjects.ToStringHelper getToStringHelper()
      Overrides:
      getToStringHelper in class BasicUser