public class TaskRestServiceImpl extends AbstractRestProcessEngineAware implements TaskRestService
Modifier and Type | Field and Description |
---|---|
static List<javax.ws.rs.core.Variant> |
VARIANTS |
objectMapper, relativeRootResourcePath
processEngine
PATH
Constructor and Description |
---|
TaskRestServiceImpl(String engineName,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
void |
createTask(TaskDto taskDto) |
protected List<Task> |
executePaginatedQuery(TaskQuery query,
Integer firstResult,
Integer maxResults) |
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 as
TaskRestService#getTasks(UriInfo, Integer, Integer) (as
JSON message body) and allows more than one variable check. |
CountResultDto |
queryTasksCount(TaskQueryDto queryDto) |
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
public static final List<javax.ws.rs.core.Variant> VARIANTS
public TaskRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public Object getTasks(javax.ws.rs.core.Request request, javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
getTasks
in interface TaskRestService
public List<TaskDto> getJsonTasks(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
public HalTaskList getHalTasks(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
public List<TaskDto> queryTasks(TaskQueryDto queryDto, Integer firstResult, Integer maxResults)
TaskRestService
TaskRestService#getTasks(UriInfo, Integer, Integer)
(as
JSON message body) and allows more than one variable check.queryTasks
in interface TaskRestService
protected List<Task> executeTaskQuery(Integer firstResult, Integer maxResults, TaskQuery query)
protected List<Task> executePaginatedQuery(TaskQuery query, Integer firstResult, Integer maxResults)
public CountResultDto getTasksCount(javax.ws.rs.core.UriInfo uriInfo)
getTasksCount
in interface TaskRestService
public CountResultDto queryTasksCount(TaskQueryDto queryDto)
queryTasksCount
in interface TaskRestService
public TaskResource getTask(String id)
getTask
in interface TaskRestService
public void createTask(TaskDto taskDto)
createTask
in interface TaskRestService
public TaskReportResource getTaskReportResource()
getTaskReportResource
in interface TaskRestService
Copyright © 2021. All rights reserved.