@Path(value="tasks") public interface TaskService extends ExecutableService
PARAM_ANYTYPE_KIND, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_RESOURCE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
BulkActionResult |
bulk(BulkAction bulkAction)
Executes the provided bulk action.
|
javax.ws.rs.core.Response |
create(TaskType type,
SchedTaskTO taskTO)
Creates a new task.
|
void |
delete(TaskType type,
String key)
Deletes the task matching the provided key.
|
<T extends TaskTO> |
read(TaskType type,
String key,
boolean details)
Returns the task matching the given key.
|
<T extends TaskTO> |
search(TaskQuery query)
Returns a paged list of existing tasks matching the given query.
|
void |
update(TaskType type,
SchedTaskTO taskTO)
Updates the task matching the provided key.
|
actionJob, deleteExecution, deleteExecutions, execute, getJob, listExecutions, listJobs, listRecentExecutions@GET
@Path(value="{type}/{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
<T extends TaskTO> T read(@NotNull @PathParam(value="type")
TaskType type,
@NotNull @PathParam(value="key")
String key,
@QueryParam(value="details") @DefaultValue(value="true")
boolean details)
T - type of taskTOtype - task typekey - key of task to be readdetails - whether include executions or not, defaults to true@GET
@Path(value="{type}")
@Produces(value={"application/json","application/yaml","application/xml"})
<T extends TaskTO> PagedResult<T> search(@BeanParam
TaskQuery query)
T - type of taskTOquery - query conditions@POST
@Path(value="{type}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
javax.ws.rs.core.Response create(@NotNull @PathParam(value="type")
TaskType type,
@NotNull
SchedTaskTO taskTO)
type - task typetaskTO - task to be created@PUT
@Path(value="{type}/{key}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
void update(@NotNull @PathParam(value="type")
TaskType type,
@NotNull
SchedTaskTO taskTO)
type - task typetaskTO - updated task to be stored@DELETE
@Path(value="{type}/{key}")
@Produces(value={"application/json","application/yaml","application/xml"})
void delete(@NotNull @PathParam(value="type")
TaskType type,
@NotNull @PathParam(value="key")
String key)
type - task typekey - key of task to be deleted@POST
@Path(value="bulk")
@Produces(value={"application/json","application/yaml","application/xml"})
@Consumes(value={"application/json","application/yaml","application/xml"})
BulkActionResult bulk(@NotNull
BulkAction bulkAction)
bulkAction - list of task ids against which the bulk action will be performed.Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.