@ExperimentalApi @Immutable public class RemoteUser extends Object
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.
Constructor and Description |
---|
RemoteUser(String username,
String displayName,
boolean active,
RemoteAvatar avatar) |
Modifier and Type | Method and Description |
---|---|
static RemoteUser |
from(ApplicationUser user) |
static RemoteUser |
from(JSONObject user) |
RemoteAvatar |
getAvatar()
Returns the user's avatar representation.
|
String |
getDisplayName() |
String |
getUsername() |
boolean |
isActive() |
public RemoteUser(String username, String displayName, boolean active, RemoteAvatar avatar)
@Nonnull public boolean isActive()
public RemoteAvatar getAvatar()
public static RemoteUser from(JSONObject user) throws JSONException
JSONException
public static RemoteUser from(ApplicationUser user)
Copyright © 2002-2021 Atlassian. All Rights Reserved.