com.atlassian.greenhopper.web.api
Class RemoteSprintLinkResource

java.lang.Object
  extended by com.atlassian.greenhopper.web.AbstractResource
      extended by com.atlassian.greenhopper.web.api.RemoteSprintLinkResource

public class RemoteSprintLinkResource
extends AbstractResource

Exposes functionality to manage remote sprint links


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
HTTP_HEADER_GREENHOPPER_GADGET, log
 
Constructor Summary
RemoteSprintLinkResource(SprintService sprintService, RemoteSprintLinkService remoteSprintLinkService, com.atlassian.jira.security.JiraAuthenticationContext authenticationContext, RemoteLinkedSprintMapper remoteLinkedSprintMapper, RemoteLinkConversationService remoteLinkConversationService)
           
 
Method Summary
 javax.ws.rs.core.Response createOrUpdateRemoteSprintLink(java.lang.Long sprintId, RemoteLinkCreateRequest request)
          Deprecated. remove when Confluence strats using the checked version
 javax.ws.rs.core.Response createRemoteSprintLinkChecked(java.lang.Long sprintId, RemoteLinkCreateRequest request)
          Creates a remote sprint link.
 javax.ws.rs.core.Response deleteRemoteSprintLink(java.lang.Long sprintId, java.lang.Long linkId)
          Delete an existing remote sprint link.
 javax.ws.rs.core.Response getRemoteLinkedSprints(java.util.List<java.lang.String> globalIds)
          Get a remote sprint link by globalId.
 
Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, createErrorResponse, createFromServiceOutcome, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, wireAuthenticationContext, wireI18nFactoryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteSprintLinkResource

public RemoteSprintLinkResource(SprintService sprintService,
                                RemoteSprintLinkService remoteSprintLinkService,
                                com.atlassian.jira.security.JiraAuthenticationContext authenticationContext,
                                RemoteLinkedSprintMapper remoteLinkedSprintMapper,
                                RemoteLinkConversationService remoteLinkConversationService)
Method Detail

createOrUpdateRemoteSprintLink

public javax.ws.rs.core.Response createOrUpdateRemoteSprintLink(java.lang.Long sprintId,
                                                                RemoteLinkCreateRequest request)
Deprecated. remove when Confluence strats using the checked version

Create or update an existing remote sprint link.


createRemoteSprintLinkChecked

public javax.ws.rs.core.Response createRemoteSprintLinkChecked(java.lang.Long sprintId,
                                                               RemoteLinkCreateRequest request)
Creates a remote sprint link.

It chekcs that the provided RemoteLinkCreateRequest.creationToken matches a started conversation.


deleteRemoteSprintLink

public javax.ws.rs.core.Response deleteRemoteSprintLink(java.lang.Long sprintId,
                                                        java.lang.Long linkId)
Delete an existing remote sprint link. The sprint ID and remote sprint link ID must be provided.


getRemoteLinkedSprints

public javax.ws.rs.core.Response getRemoteLinkedSprints(java.util.List<java.lang.String> globalIds)
Get a remote sprint link by globalId.



Copyright © 2007-2014 Atlassian. All Rights Reserved.