com.atlassian.jira.user
Class RemoteUser
java.lang.Object
com.atlassian.jira.user.RemoteUser
@ExperimentalApi
@Immutable
public class RemoteUser
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteUser
public RemoteUser(String username,
String displayName,
boolean active,
RemoteAvatar avatar)
getUsername
@Nonnull
public String getUsername()
getDisplayName
@Nonnull
public String getDisplayName()
isActive
@Nonnull
public boolean isActive()
getAvatar
public RemoteAvatar getAvatar()
- Returns the user's avatar representation.
- Returns:
- the user's avatar representation.
from
public static RemoteUser from(JSONObject user)
throws JSONException
- Throws:
JSONException
from
public static RemoteUser from(ApplicationUser user)
Copyright © 2002-2014 Atlassian. All Rights Reserved.