Class RemoteSprintLinkResource
java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.api.RemoteSprintLinkResource
@Path("api/sprints")
@Produces({"application/json","application/xml"})
public class RemoteSprintLinkResource
extends AbstractResource
Exposes functionality to manage remote sprint links
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
authenticationContext, log
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteSprintLinkResource
(SprintService sprintService, RemoteSprintLinkService remoteSprintLinkService, RemoteLinkedSprintMapper remoteLinkedSprintMapper, RemoteLinkConversationService remoteLinkConversationService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
createRemoteSprintLinkChecked
(Long sprintId, RemoteLinkCreateRequest request) Creates a remote sprint link.jakarta.ws.rs.core.Response
deleteRemoteSprintLink
(Long sprintId, Long linkId) Delete an existing remote sprint link.jakarta.ws.rs.core.Response
getRemoteLinkedSprints
(List<String> globalIds) Get a remote sprint link by globalId.Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, checkResult, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, responseWithoutAccessCheck
-
Constructor Details
-
RemoteSprintLinkResource
@Inject public RemoteSprintLinkResource(SprintService sprintService, RemoteSprintLinkService remoteSprintLinkService, RemoteLinkedSprintMapper remoteLinkedSprintMapper, RemoteLinkConversationService remoteLinkConversationService)
-
-
Method Details
-
createRemoteSprintLinkChecked
@PUT @Path("{sprintId}/remotelinkchecked") public jakarta.ws.rs.core.Response createRemoteSprintLinkChecked(@PathParam("sprintId") Long sprintId, RemoteLinkCreateRequest request) Creates a remote sprint link. It chekcs that the providedRemoteLinkCreateRequest.creationToken
matches a started conversation. -
deleteRemoteSprintLink
@DELETE @Path("{sprintId}/remotelink/{linkId}") public jakarta.ws.rs.core.Response deleteRemoteSprintLink(@PathParam("sprintId") Long sprintId, @PathParam("linkId") Long linkId) Delete an existing remote sprint link. The sprint ID and remote sprint link ID must be provided. -
getRemoteLinkedSprints
@GET @Path("remotelink") public jakarta.ws.rs.core.Response getRemoteLinkedSprints(@QueryParam("globalId") List<String> globalIds) Get a remote sprint link by globalId.
-