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

java.lang.Object
  extended by com.atlassian.jira.rest.client.domain.BasicUser
      extended by com.atlassian.jira.rest.client.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.domain.BasicUser
INCOMPLETE_URI
 
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()
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.rest.client.domain.BasicUser
getDisplayName, getName, getSelf, hashCode, isSelfUriIncomplete
 
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,
            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 client, 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

public ExpandableProperty<String> getGroups()
Returns:
groups given user belongs to

equals

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

getTimezone

@Nullable
public String getTimezone()
Returns:
user timezone, like "Europe/Berlin" or null if timezone info is not available
Since:
client 0.5, server 4.4

toString

public String toString()
Overrides:
toString in class BasicUser


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.