com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client
Class VersionClient

java.lang.Object
  extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<VersionClient>
      extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.VersionClient

public class VersionClient
extends RestApiClient<VersionClient>

Client for the version resource.

Since:
v4.3

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
VersionClient(JIRAEnvironmentData environmentData)
          Constructs a new VersionClient for a JIRA instance.
 
Method Summary
 Version create(Version version)
           
 Response createResponse(Version version)
           
 Response delete(String versionId)
           
 Response delete(String versionId, URI swapFixVersion, URI swapAffectedVersion)
           
 Version get(String versionID)
          GETs the version having a given id.
 Response getResponse(String versionID)
          GETs the version having a given id, returning a Response object.
 VersionIssueCounts getVersionIssueCounts(String versionID)
           
 Response getVersionIssueCountsResponse(String versionId)
           
 VersionUnresolvedIssueCount getVersionUnresolvedIssueCount(String versionID)
           
 Response getVersionUnresolvedIssueCountResponse(String versionId)
           
 Version move(String versionId, VersionMove versionMove)
           
 Response moveResponse(String versionId, VersionMove versionMove)
           
 Response putResponse(String versionId, Version version)
           
 Response putResponse(Version version)
           
 
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

VersionClient

public VersionClient(JIRAEnvironmentData environmentData)
Constructs a new VersionClient for a JIRA instance.

Parameters:
environmentData - The JIRA environment data
Method Detail

get

public Version get(String versionID)
            throws com.sun.jersey.api.client.UniformInterfaceException
GETs the version having a given id.

Parameters:
versionID - a String containing a version id
Returns:
a Version
Throws:
com.sun.jersey.api.client.UniformInterfaceException - if anything goes wrong

getResponse

public Response getResponse(String versionID)
GETs the version having a given id, returning a Response object.

Parameters:
versionID - a String containing a version id
Returns:
a Response

create

public Version create(Version version)
               throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

createResponse

public Response createResponse(Version version)

delete

public Response delete(String versionId)
                throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

delete

public Response delete(String versionId,
                       URI swapFixVersion,
                       URI swapAffectedVersion)
                throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

move

public Version move(String versionId,
                    VersionMove versionMove)
             throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

moveResponse

public Response moveResponse(String versionId,
                             VersionMove versionMove)

getVersionIssueCounts

public VersionIssueCounts getVersionIssueCounts(String versionID)
                                         throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

getVersionIssueCountsResponse

public Response getVersionIssueCountsResponse(String versionId)

getVersionUnresolvedIssueCount

public VersionUnresolvedIssueCount getVersionUnresolvedIssueCount(String versionID)
                                                           throws com.sun.jersey.api.client.UniformInterfaceException
Throws:
com.sun.jersey.api.client.UniformInterfaceException

getVersionUnresolvedIssueCountResponse

public Response getVersionUnresolvedIssueCountResponse(String versionId)

putResponse

public Response putResponse(String versionId,
                            Version version)

putResponse

public Response putResponse(Version version)


Copyright © 2002-2012 Atlassian. All Rights Reserved.