com.atlassian.jira.rest.client.domain
Class User
java.lang.Object
com.atlassian.jira.rest.client.domain.BasicUser
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
S16_16
public static String S16_16
S48_48
public static String S48_48
User
public User(URI self,
String name,
String displayName,
String emailAddress,
ExpandableProperty<String> groups,
Map<String,URI> avatarUris,
@Nullable
String timezone)
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.