public interface ProjectRestClient
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Iterable<BasicProject>> |
getAllProjects()
Returns all projects, which are visible for the currently logged in user.
|
com.atlassian.util.concurrent.Promise<Project> |
getProject(String key)
Retrieves complete information about given project.
|
com.atlassian.util.concurrent.Promise<Project> |
getProject(URI projectUri)
Retrieves complete information about given project.
|
com.atlassian.util.concurrent.Promise<Project> getProject(String key)
key
- unique key of the project (usually 2+ characters)RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Project> getProject(URI projectUri)
getProject(String)
wheever you can, as this method is proof for potential changes of URI scheme used for exposing various
resources by JIRA REST API.projectUri
- URI to project resource (usually get from self
attribute describing component elsewhereRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Iterable<BasicProject>> getAllProjects()
Copyright © 2013 Atlassian. All Rights Reserved.