public interface MetadataRestClient
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<java.lang.Iterable<Field>> |
getFields()
Retrieves information about JIRA custom and system fields.
|
com.atlassian.util.concurrent.Promise<java.lang.Iterable<IssuelinksType>> |
getIssueLinkTypes()
Retrieves from the server complete list of available issue types
|
com.atlassian.util.concurrent.Promise<IssueType> |
getIssueType(java.net.URI uri)
Retrieves from the server complete information about selected issue type
|
com.atlassian.util.concurrent.Promise<java.lang.Iterable<IssueType>> |
getIssueTypes()
Retrieves from the server complete list of available issue type
|
com.atlassian.util.concurrent.Promise<java.lang.Iterable<Priority>> |
getPriorities()
Retrieves from the server complete list of available priorities
|
com.atlassian.util.concurrent.Promise<Priority> |
getPriority(java.net.URI uri)
Retrieves from the server complete information about selected priority
|
com.atlassian.util.concurrent.Promise<Resolution> |
getResolution(java.net.URI uri)
Retrieves from the server complete information about selected resolution
|
com.atlassian.util.concurrent.Promise<java.lang.Iterable<Resolution>> |
getResolutions()
Retrieves from the server complete information about selected resolution
|
com.atlassian.util.concurrent.Promise<ServerInfo> |
getServerInfo()
Retrieves information about this JIRA instance
|
com.atlassian.util.concurrent.Promise<Status> |
getStatus(java.net.URI uri)
Retrieves complete information about selected status
|
com.atlassian.util.concurrent.Promise<java.lang.Iterable<Status>> |
getStatuses()
Retrieves lists of available statuses with complete information about them
|
com.atlassian.util.concurrent.Promise<IssueType> getIssueType(java.net.URI uri)
uri
- URI to issue type resource (one can get it e.g. from self
attribute
of issueType field of an issue).RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Iterable<IssueType>> getIssueTypes()
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Iterable<IssuelinksType>> getIssueLinkTypes()
RestClientException
- in case of problems (if linking is disabled on the server, connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Status> getStatus(java.net.URI uri)
uri
- URI to this status resource (one can get it e.g. from self
attribute
of status
field of an issue)RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Iterable<Status>> getStatuses()
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Priority> getPriority(java.net.URI uri)
uri
- URI for the priority resourceRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Iterable<Priority>> getPriorities()
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Resolution> getResolution(java.net.URI uri)
uri
- URI for the resolution resourceRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Iterable<Resolution>> getResolutions()
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<ServerInfo> getServerInfo()
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Iterable<Field>> getFields()
RestClientException
- in case of problems (connectivity, malformed messages, etc.)Copyright © 2014 Atlassian. All Rights Reserved.