com.atlassian.jira.rest.client.api.domain
Class User

java.lang.Object
  extended by com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
      extended by com.atlassian.jira.rest.client.api.domain.BasicUser
          extended by com.atlassian.jira.rest.client.api.domain.User
All Implemented Interfaces:
AddressableEntity, NamedEntity

public class User
extends BasicUser

Complete information about a single JIRA user

Since:
v0.1

Field Summary
static String S16_16
           
static String S48_48
           
 
Fields inherited from class com.atlassian.jira.rest.client.api.domain.BasicUser
INCOMPLETE_URI
 
Fields inherited from class com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
name, self
 
Constructor Summary
User(URI self, String name, String displayName, String emailAddress, ExpandableProperty<String> groups, Map<String,URI> avatarUris, String timezone)
           
 
Method Summary
 boolean equals(Object obj)
           
 URI getAvatarUri()
           
 URI getAvatarUri(String sizeDefinition)
          As of JIRA 5.0 there can be several different user avatar URIs - for different size.
 String getEmailAddress()
           
 ExpandableProperty<String> getGroups()
           
 URI getSmallAvatarUri()
           
 String getTimezone()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.rest.client.api.domain.BasicUser
getDisplayName, isSelfUriIncomplete
 
Methods inherited from class com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
getName, getSelf, getToStringHelper
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

S16_16

public static String S16_16

S48_48

public static String S48_48
Constructor Detail

User

public User(URI self,
            String name,
            String displayName,
            String emailAddress,
            @Nullable
            ExpandableProperty<String> groups,
            Map<String,URI> avatarUris,
            @Nullable
            String timezone)
Method Detail

getEmailAddress

public String getEmailAddress()

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

toString

public String toString()
Overrides:
toString in class BasicUser


Copyright © 2012 Atlassian. All Rights Reserved.