|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<ProjectClient> com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.ProjectClient
public class ProjectClient
Client class for the Project resource.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
---|
RestApiClient.Method |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
---|
REST_VERSION |
Constructor Summary | |
---|---|
ProjectClient(JIRAEnvironmentData environmentData)
Constructs a new ProjectClient for a JIRA instance. |
Method Summary | |
---|---|
Project |
get(String projectKey)
GETs the project having the given key. |
Avatar |
getAvatar(String key,
Long id)
GETs a single avatar, associated with the passed project |
Map<String,List<Avatar>> |
getAvatars(String key)
GETs a map of avatars, associated with the passed project. |
List<Component> |
getComponents(String key)
GETs a list of components, associated with the passed project. |
List<Project> |
getProjects()
GETs a list of versions, which are visible to the current user. |
Response |
getResponse(String projectKey)
GETs the project having the given key, and returns a Response. |
List<Version> |
getVersions(String key)
GETs a list of versions, associated with the passed project. |
Response |
getVersionsResponse(String projectKey)
GETs the versions associated with the passed project. |
protected com.sun.jersey.api.client.WebResource |
projectComponentWithKey(String projectKey)
Returns a WebResource for the versions gi |
protected com.sun.jersey.api.client.WebResource |
projects()
Returns a WebResource for the projects visible to the current user. |
protected com.sun.jersey.api.client.WebResource |
projectVersionWithKey(String projectKey)
Returns a WebResource for the versions gi |
protected com.sun.jersey.api.client.WebResource |
projectWithKey(String projectKey)
Returns a WebResource for the project having the given key. |
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
---|
anonymous, createResource, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectClient(JIRAEnvironmentData environmentData)
environmentData
- The JIRA environment dataMethod Detail |
---|
public Project get(String projectKey) throws com.sun.jersey.api.client.UniformInterfaceException
projectKey
- a String containing the project key
com.sun.jersey.api.client.UniformInterfaceException
- if there is a problempublic List<Project> getProjects()
public List<Version> getVersions(String key)
key
- the key of the project to query.
public Map<String,List<Avatar>> getAvatars(String key)
key
- the key of the project to query.
public Avatar getAvatar(String key, Long id)
key
- the key of the project to queryid
- the database id of the avatar
public Response getResponse(String projectKey)
projectKey
- a String containing the project key
public Response getVersionsResponse(String projectKey)
projectKey
- a String containing the project key
public List<Component> getComponents(String key)
key
- the key of the project to query.
protected com.sun.jersey.api.client.WebResource projectWithKey(String projectKey)
projectKey
- a String containing the project key
protected com.sun.jersey.api.client.WebResource projectVersionWithKey(String projectKey)
projectKey
- a String containing the project key
protected com.sun.jersey.api.client.WebResource projectComponentWithKey(String projectKey)
projectKey
- a String containing the project key
protected com.sun.jersey.api.client.WebResource projects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |