Package com.atlassian.jira.user
Class RemoteUser
java.lang.Object
com.atlassian.jira.user.RemoteUser
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.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteUser
(String username, String displayName, boolean active, RemoteAvatar avatar) -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteUser
from
(ApplicationUser user) static RemoteUser
from
(JSONObject user) Returns the user's avatar representation.boolean
isActive()
-
Constructor Details
-
RemoteUser
-
-
Method Details
-
getUsername
-
getDisplayName
-
isActive
@Nonnull public boolean isActive() -
getAvatar
Returns the user's avatar representation.- Returns:
- the user's avatar representation.
-
from
- Throws:
JSONException
-
from
-