@ExperimentalApi @Immutable public class

RemoteUser

extends Object
java.lang.Object
   ↳ com.atlassian.jira.user.RemoteUser

@ExperimentalApi

This class is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Represents a JIRA User within our "network" of federated JIRA servers.

Normally this will represent a user coming from one of the JIRA servers that we have an app link with. However, because it can be useful to mix both local and remote users, one can construct an instance of this class that represents a local avatar.

This class is considered experimental while RemoteProjectService is still being developed.

Summary

Public Constructors
RemoteUser(String username, String displayName, boolean active, RemoteAvatar avatar)
Public Methods
static RemoteUser from(JSONObject user)
static RemoteUser from(ApplicationUser user)
RemoteAvatar getAvatar()
Returns the user's avatar representation.
@Nonnull String getDisplayName()
@Nonnull String getUsername()
@Nonnull boolean isActive()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RemoteUser (String username, String displayName, boolean active, RemoteAvatar avatar)

Public Methods

public static RemoteUser from (JSONObject user)

Throws
JSONException

public static RemoteUser from (ApplicationUser user)

public RemoteAvatar getAvatar ()

Returns the user's avatar representation.

Returns
  • the user's avatar representation.

@Nonnull public String getDisplayName ()

@Nonnull public String getUsername ()

@Nonnull public boolean isActive ()