Class User
java.lang.Object
com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
com.atlassian.jira.rest.client.api.domain.BasicUser
com.atlassian.jira.rest.client.api.domain.User
- All Implemented Interfaces:
AddressableEntity,NamedEntity
Complete information about a single JIRA user
- Since:
- v0.1
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.rest.client.api.domain.BasicUser
INCOMPLETE_URIFields inherited from class com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
name, self -
Constructor Summary
ConstructorsConstructorDescriptionUser(URI self, String name, String displayName, String emailAddress, boolean active, ExpandableProperty<String> groups, Map<String, URI> avatarUris, String timezone) User(URI self, String name, String displayName, String emailAddress, ExpandableProperty<String> groups, Map<String, URI> avatarUris, String timezone) Deprecated.since v5.1.0.User(URI self, String name, String displayName, String accountId, String emailAddress, boolean active, ExpandableProperty<String> groups, Map<String, URI> avatarUris, String timezone) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAvatarUri(String sizeDefinition) As of JIRA 5.0 there can be several different user avatar URIs - for different size.protected com.google.common.base.MoreObjects.ToStringHelperinthashCode()booleanisActive()Methods inherited from class com.atlassian.jira.rest.client.api.domain.BasicUser
getAccountId, getDisplayName, isSelfUriIncompleteMethods inherited from class com.atlassian.jira.rest.client.api.domain.AddressableNamedEntity
getName, getSelf, toString
-
Field Details
-
S16_16
- See Also:
-
S48_48
- See Also:
-
-
Constructor Details
-
User
-
User
-
User
@Deprecated public User(URI self, String name, String displayName, String emailAddress, @Nullable ExpandableProperty<String> groups, Map<String, URI> avatarUris, @Nullable String timezone) Deprecated.since v5.1.0. UseUser(URI,String,String,String,boolean,ExpandableProperty,Map,String)instead.This constructor is used to create an active user per default.
-
-
Method Details
-
getEmailAddress
-
isActive
public boolean isActive() -
getAvatarUri
-
getSmallAvatarUri
- Returns:
- user avatar image URI for 16x16 pixels
- Since:
- 0.5 com.atlassian.jira.rest.client.api, 5.0 server
-
getAvatarUri
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
nullwhen there is no avatar image with given dimensions specified for this user
-
getGroups
- Returns:
- groups given user belongs to
-
equals
-
hashCode
public int hashCode() -
getTimezone
- Returns:
- user timezone, like "Europe/Berlin" or
nullif 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:
getToStringHelperin classBasicUser
-