com.atlassian.jira.rest.v2.issue.version
Class RemoteVersionLinkResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.entity.AbstractRemoteEntityLinkResource<Version,RemoteVersionLink>
      extended by com.atlassian.jira.rest.v2.issue.version.RemoteVersionLinkResource

public class RemoteVersionLinkResource
extends AbstractRemoteEntityLinkResource<Version,RemoteVersionLink>

Responsible for handling REST calls relating to remote issue links.

Since:
JIRA REST v6.5.1 (in JIRA 6.1.1)

Field Summary
 
Fields inherited from class com.atlassian.jira.rest.v2.entity.AbstractRemoteEntityLinkResource
contextUriInfo, i18n, jiraAuthenticationContext, jsonEntityPropertyManager
 
Constructor Summary
RemoteVersionLinkResource(I18nHelper i18n, JiraAuthenticationContext jiraAuthenticationContext, RemoteVersionLinkService remoteVersionLinkService, JsonEntityPropertyManager jsonEntityPropertyManager, ContextUriInfo contextUriInfo)
           
 
Method Summary
protected  URI createSelfLink(RemoteVersionLink link)
          Forms the self URI for a link.
 javax.ws.rs.core.Response deleteRemoteVersionLink(long versionId, String globalId)
           
 javax.ws.rs.core.Response deleteRemoteVersionLinksByVersionId(long versionId)
           
 javax.ws.rs.core.Response getRemoteVersionLink(long versionId, String globalId)
           
 javax.ws.rs.core.Response getRemoteVersionLinksByGlobalId(String globalId)
           
 javax.ws.rs.core.Response getRemoteVersionLinksByVersionId(long versionId)
           
 javax.ws.rs.core.Response putRemoteVersionLink(long versionId, String globalId, String json)
           
 
Methods inherited from class com.atlassian.jira.rest.v2.entity.AbstractRemoteEntityLinkResource
getUser, toBean, toBean, toResponse, toResponse, toResponse, toSuccessfulDeleteResponse, toSuccessfulPostResponse, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteVersionLinkResource

public RemoteVersionLinkResource(I18nHelper i18n,
                                 JiraAuthenticationContext jiraAuthenticationContext,
                                 RemoteVersionLinkService remoteVersionLinkService,
                                 JsonEntityPropertyManager jsonEntityPropertyManager,
                                 ContextUriInfo contextUriInfo)
Method Detail

getRemoteVersionLink

public javax.ws.rs.core.Response getRemoteVersionLink(long versionId,
                                                      String globalId)

getRemoteVersionLinksByVersionId

public javax.ws.rs.core.Response getRemoteVersionLinksByVersionId(long versionId)

getRemoteVersionLinksByGlobalId

public javax.ws.rs.core.Response getRemoteVersionLinksByGlobalId(String globalId)

putRemoteVersionLink

public javax.ws.rs.core.Response putRemoteVersionLink(long versionId,
                                                      String globalId,
                                                      String json)

deleteRemoteVersionLinksByVersionId

public javax.ws.rs.core.Response deleteRemoteVersionLinksByVersionId(long versionId)

deleteRemoteVersionLink

public javax.ws.rs.core.Response deleteRemoteVersionLink(long versionId,
                                                         String globalId)

createSelfLink

protected URI createSelfLink(RemoteVersionLink link)
Description copied from class: AbstractRemoteEntityLinkResource
Forms the self URI for a link.

Specified by:
createSelfLink in class AbstractRemoteEntityLinkResource<Version,RemoteVersionLink>
Parameters:
link - the link to be rendered as a URI
Returns:
the self URI for the link


Copyright © 2002-2014 Atlassian. All Rights Reserved.