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 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(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 List<Task>
executeTaskQuery(Integer firstResult, Integer maxResults, TaskQuery query)
HalTaskList
getHalTasks(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
List<TaskDto>
getJsonTasks(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
TaskResource
getTask(String id)
TaskReportResource
getTaskReportResource()
Object
getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
CountResultDto
getTasksCount(javax.ws.rs.core.UriInfo uriInfo)
List<TaskDto>
queryTasks(TaskQueryDto queryDto, Integer firstResult, 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
-
-
-
-
Field Detail
-
VARIANTS
public static final List<javax.ws.rs.core.Variant> VARIANTS
-
-
Constructor Detail
-
TaskRestServiceImpl
public TaskRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getTasks
public Object getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
- Specified by:
getTasks
in interfaceTaskRestService
-
getJsonTasks
public List<TaskDto> getJsonTasks(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
-
getHalTasks
public HalTaskList getHalTasks(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
-
queryTasks
public List<TaskDto> queryTasks(TaskQueryDto queryDto, Integer firstResult, 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 List<Task> executeTaskQuery(Integer firstResult, 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(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
-
-