Class RemoteLinkConversationResource
java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.remote.RemoteLinkConversationResource
@Path("remoteLinkConversation")
public class RemoteLinkConversationResource
extends AbstractResource
Remote create link creation resource for our internal use only.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The associaiton of a conversation token and a conversation status. -
Field Summary
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
authenticationContext, log
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteLinkConversationResource
(RemoteLinkConversationService remoteLinkConversationService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
Starts a conversation and return the token associated with it.jakarta.ws.rs.core.Response
listConversationsStatuses
(List<String> tokens) Tries the return a list ofRemoteLinkConversationResource.TokenStatus
matching the given conversation tokens.Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, checkResult, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, responseWithoutAccessCheck
-
Constructor Details
-
RemoteLinkConversationResource
@Inject public RemoteLinkConversationResource(RemoteLinkConversationService remoteLinkConversationService)
-
-
Method Details
-
getNewConversationToken
@GET @Produces("text/plain") public jakarta.ws.rs.core.Response getNewConversationToken()Starts a conversation and return the token associated with it.- Returns:
- the response with the token in plain text
-
listConversationsStatuses
@GET @Produces("application/json") @Path("statuses") public jakarta.ws.rs.core.Response listConversationsStatuses(@QueryParam("token") List<String> tokens) Tries the return a list ofRemoteLinkConversationResource.TokenStatus
matching the given conversation tokens. If a given token does not match any existing conversation it is silently ignored.- Parameters:
tokens
- the list of tokens to look for- Returns:
- the reponse with a JSON list of
RemoteLinkConversationResource.TokenStatus
as payload
-