|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.project.RemoteProject
@ExperimentalApi @Immutable public final class RemoteProject
Represents a JIRA Project within our "network" of federated JIRA servers.
Normally this will represent a project coming from one of the JIRA servers that we have an app link with. However, because it can be useful to create a list with both local and remote projects, one can construct an instance of this class that represents a local project.
This class is considered experimental while RemoteProjectService is still being developed.
Nested Class Summary | |
---|---|
static class |
RemoteProject.Builder
|
Constructor Summary | |
---|---|
RemoteProject(long id,
String key,
String name,
String description,
RemoteUser leadUser,
String url,
com.atlassian.applinks.api.ApplicationLink applicationLink,
RemoteAvatar avatar)
|
Method Summary | |
---|---|
static RemoteProject |
from(com.atlassian.applinks.api.ApplicationLink applicationLink,
JSONObject jsonObject)
|
static RemoteProject |
from(Project project)
Build a Network project instance from a local Project. |
com.atlassian.applinks.api.ApplicationLink |
getApplicationLink()
Returns the AppLink for the server that this remote project lives on. |
RemoteAvatar |
getAvatar()
|
String |
getBrowseProjectUrl()
Returns the URL for the "Browse Project" page of this project. |
String |
getDescription()
Returns the description for the underlying project, or null if the description was not supplied in the JSON response. |
long |
getId()
|
String |
getKey()
|
RemoteUser |
getLeadUser()
Returns the Project Lead for this project. |
String |
getName()
|
String |
getServerBaseUrl()
Returns the Base URL for the server that this project lives on. |
String |
getUrl()
Returns the configured "URL" value for this project. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteProject(long id, String key, String name, String description, RemoteUser leadUser, String url, com.atlassian.applinks.api.ApplicationLink applicationLink, RemoteAvatar avatar)
Method Detail |
---|
public long getId()
@Nonnull public String getKey()
@Nonnull public String getName()
@Nullable public String getDescription()
@Nullable public RemoteUser getLeadUser()
@Nullable public String getUrl()
@Nullable public com.atlassian.applinks.api.ApplicationLink getApplicationLink()
@Nonnull public RemoteAvatar getAvatar()
@Nonnull public String getBrowseProjectUrl()
@Nonnull public String getServerBaseUrl()
@Nonnull public static RemoteProject from(Project project)
project
- the local project
@Nonnull public static RemoteProject from(com.atlassian.applinks.api.ApplicationLink applicationLink, JSONObject jsonObject) throws JSONException
JSONException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |