com.atlassian.greenhopper.web.remote
Class RemoteLinkConversationResource

java.lang.Object
  extended by com.atlassian.greenhopper.web.AbstractResource
      extended by com.atlassian.greenhopper.web.remote.RemoteLinkConversationResource

public class RemoteLinkConversationResource
extends AbstractResource

Remote create link creation resource for our internal use only.


Nested Class Summary
static class RemoteLinkConversationResource.TokenStatus
          The associaiton of a conversation token and a conversation status.
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
HTTP_HEADER_GREENHOPPER_GADGET, log
 
Constructor Summary
RemoteLinkConversationResource(RemoteLinkConversationService remoteLinkConversationService)
           
 
Method Summary
 javax.ws.rs.core.Response getNewConversationToken()
          Starts a conversation and return the token associated with it.
 javax.ws.rs.core.Response listConversationsStatuses(java.util.List<java.lang.String> tokens)
          Tries the return a list of RemoteLinkConversationResource.TokenStatus matching the given conversation tokens.
 
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

RemoteLinkConversationResource

public RemoteLinkConversationResource(RemoteLinkConversationService remoteLinkConversationService)
Method Detail

getNewConversationToken

public javax.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

public javax.ws.rs.core.Response listConversationsStatuses(java.util.List<java.lang.String> tokens)
Tries the return a list of RemoteLinkConversationResource.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


Copyright © 2007-2014 Atlassian. All Rights Reserved.