com.atlassian.confluence.rest.resources
Class LongTaskResource

java.lang.Object
  extended by com.atlassian.confluence.rest.resources.LongTaskResource

public class LongTaskResource
extends java.lang.Object

REST wrapper for the LongTaskService.


Constructor Summary
LongTaskResource(LongTaskService longTaskService)
           
 
Method Summary
 LongTaskStatus getTask(java.lang.String idStr, java.lang.String expand)
          Returns information about a long-running task.
 RestList<LongTaskStatus> getTasks(java.lang.String expand, int start, int limit, javax.ws.rs.core.UriInfo uriInfo)
          Returns information about all tracked long-running tasks.
static javax.ws.rs.core.Response submissionResponse(LongTaskSubmission taskSubmission)
          Produce a HTTP Accept 202 response from some other resource pointing to this class's LongTaskStatus resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTaskResource

public LongTaskResource(LongTaskService longTaskService)
Method Detail

getTasks

public RestList<LongTaskStatus> getTasks(java.lang.String expand,
                                         int start,
                                         int limit,
                                         @Context
                                         javax.ws.rs.core.UriInfo uriInfo)

Returns information about all tracked long-running tasks.

Parameters:
expand - a comma separated list of properties to expand on the tasks
Returns:
a JSON representation of a list of tasks, may be empty.
Throws:
ServiceException

getTask

@PublicApi
public LongTaskStatus getTask(java.lang.String idStr,
                                        java.lang.String expand)

Returns information about a long-running task.

Parameters:
idStr - the key of the task to be returned
expand - a comma separated list of properties to expand on the task
Returns:
a JSON representation of a long task, or a 404 if not found.
Throws:
ServiceException

submissionResponse

public static javax.ws.rs.core.Response submissionResponse(LongTaskSubmission taskSubmission)
Produce a HTTP Accept 202 response from some other resource pointing to this class's LongTaskStatus resource.



Copyright © 2003-2014 Atlassian. All Rights Reserved.