|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.avatar.RemoteAvatar
@ExperimentalApi @Immutable public class RemoteAvatar
Represents a user or project avatar within our "network" of federated JIRA servers.
Normally this will represent an avatar 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 | |
---|---|
RemoteAvatar(String url16x16,
String url24x24,
String url32x32,
String url48x48)
|
Method Summary | |
---|---|
static RemoteAvatar |
from(ApplicationUser user)
Build an Avatar representation for a local user avatar. |
static RemoteAvatar |
from(JSONObject avatarUrls)
Build an Avatar representation for a remote object. |
static RemoteAvatar |
from(Project project)
Build an Avatar representation for a local project avatar. |
String |
getUrl16x16()
|
String |
getUrl24x24()
|
String |
getUrl32x32()
|
String |
getUrl48x48()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteAvatar(String url16x16, String url24x24, String url32x32, String url48x48)
Method Detail |
---|
public String getUrl16x16()
public String getUrl24x24()
public String getUrl32x32()
public String getUrl48x48()
public static RemoteAvatar from(JSONObject avatarUrls) throws JSONException
avatarUrls
- the "avatarUrls" JSON from the project or user.
JSONException
- if the JSON is missing any of the required fields.public static RemoteAvatar from(Project project)
project
- the project
public static RemoteAvatar from(ApplicationUser user)
user
- the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |