Package org.camunda.bpm.engine.rest.impl
Class TaskRestServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.TaskRestServiceImpl
-
- All Implemented Interfaces:
TaskRestService
public class TaskRestServiceImpl extends AbstractRestProcessEngineAware implements TaskRestService
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<javax.ws.rs.core.Variant>
VARIANTS
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
Fields inherited from interface org.camunda.bpm.engine.rest.TaskRestService
PATH
-
-
Constructor Summary
Constructors Constructor Description TaskRestServiceImpl(java.lang.String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createTask(TaskDto taskDto)
protected java.util.List<Task>
executeTaskQuery(java.lang.Integer firstResult, java.lang.Integer maxResults, TaskQuery query)
HalTaskList
getHalTasks(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
java.util.List<TaskDto>
getJsonTasks(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
TaskResource
getTask(java.lang.String id)
TaskReportResource
getTaskReportResource()
java.lang.Object
getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
CountResultDto
getTasksCount(javax.ws.rs.core.UriInfo uriInfo)
java.util.List<TaskDto>
queryTasks(TaskQueryDto queryDto, java.lang.Integer firstResult, java.lang.Integer maxResults)
Expects the same parameters asTaskRestService#getTasks(UriInfo, Integer, Integer)
(as JSON message body) and allows more than one variable check.CountResultDto
queryTasksCount(TaskQueryDto queryDto)
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Method Detail
-
getTasks
public java.lang.Object getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
- Specified by:
getTasks
in interfaceTaskRestService
-
getJsonTasks
public java.util.List<TaskDto> getJsonTasks(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
-
getHalTasks
public HalTaskList getHalTasks(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer firstResult, java.lang.Integer maxResults)
-
queryTasks
public java.util.List<TaskDto> queryTasks(TaskQueryDto queryDto, java.lang.Integer firstResult, java.lang.Integer maxResults)
Description copied from interface:TaskRestService
Expects the same parameters asTaskRestService#getTasks(UriInfo, Integer, Integer)
(as JSON message body) and allows more than one variable check.- Specified by:
queryTasks
in interfaceTaskRestService
- Returns:
-
executeTaskQuery
protected java.util.List<Task> executeTaskQuery(java.lang.Integer firstResult, java.lang.Integer maxResults, TaskQuery query)
-
getTasksCount
public CountResultDto getTasksCount(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getTasksCount
in interfaceTaskRestService
-
queryTasksCount
public CountResultDto queryTasksCount(TaskQueryDto queryDto)
- Specified by:
queryTasksCount
in interfaceTaskRestService
-
getTask
public TaskResource getTask(java.lang.String id)
- Specified by:
getTask
in interfaceTaskRestService
-
createTask
public void createTask(TaskDto taskDto)
- Specified by:
createTask
in interfaceTaskRestService
-
getTaskReportResource
public TaskReportResource getTaskReportResource()
- Specified by:
getTaskReportResource
in interfaceTaskRestService
-
-