|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaskService
Manages tasks on the Deployit Server.
| Method Summary | |
|---|---|
void |
abort(java.lang.String taskId)
Aborts an active task. |
TaskWithSteps |
addPause(java.lang.String taskId,
int stepId)
Add a pause step at the specified position. |
void |
archive(java.lang.String taskId)
Archive an executed task. |
TaskState |
assign(java.lang.String taskId,
java.lang.String owner)
Assigns a task to a different user. |
void |
cancel(java.lang.String taskId)
Cancels a stopped task. |
java.util.List<TaskWithSteps> |
export(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
Searches for tasks with detailed step information. |
java.util.List<TaskState> |
getAllCurrentTasks()
Returns all active tasks for all users. |
java.util.List<TaskState> |
getMyCurrentTasks()
Returns the active tasks of the logged in user. |
StepState |
getStep(java.lang.String taskId,
int stepId,
org.joda.time.DateTime ifModifiedSince)
Retrieves information about a step. |
TaskWithSteps |
getSteps(java.lang.String taskId)
Returns a task containing step information. |
TaskState |
getTask(java.lang.String taskId)
Returns a task by ID. |
TaskWithSteps |
moveStep(java.lang.String taskId,
int stepId,
int newPosition)
Moves a step. |
java.util.List<TaskState> |
query(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
Searches for tasks without step information. |
TaskWithSteps |
skip(java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
Indicates that one or more steps should be skipped. |
void |
start(java.lang.String taskId)
Starts a task. |
void |
stop(java.lang.String taskId)
Gracefully stops an active task. |
TaskWithSteps |
unskip(java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
Indicates that one or more steps should no longer be skipped, but executed. |
| Method Detail |
|---|
java.util.List<TaskState> getMyCurrentTasks()
java.util.List<TaskState> getAllCurrentTasks()
TaskState getTask(java.lang.String taskId)
taskId - the ID of the task
TaskWithSteps getSteps(java.lang.String taskId)
taskId - the ID of the task
StepState getStep(java.lang.String taskId,
int stepId,
@HeaderParam(value="If-Modified-Since")
org.joda.time.DateTime ifModifiedSince)
taskId - the ID of the taskstepId - the ordinal number of the step, starting from 1ifModifiedSince - the if-modified-since date in RFC 1123 (RFC 822 with 4-digit years) date format.
ifModifiedSince, a response with status code of 304 (Not Modified), otherwise a
response with a status code of 200 (OK) and XML containing a StepState.void start(java.lang.String taskId)
taskId - the ID of the taskvoid stop(java.lang.String taskId)
taskId - the ID of the taskvoid abort(java.lang.String taskId)
taskId - the ID of the taskvoid cancel(java.lang.String taskId)
taskId - the ID of the taskvoid archive(java.lang.String taskId)
taskId - the ID of the task
TaskWithSteps skip(java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
taskId - the ID of the taskstepIds - the IDs of the steps to skip
TaskWithSteps unskip(java.lang.String taskId,
java.util.List<java.lang.Integer> stepIds)
taskId - the ID of the taskstepIds - the IDs of the steps to unskip
TaskWithSteps moveStep(java.lang.String taskId,
int stepId,
int newPosition)
taskId - the ID of the taskstepId - the current position of the step in the step list.newPosition - the new position of the step in the step list.
TaskWithSteps addPause(java.lang.String taskId,
int stepId)
taskId - the ID of the taskstepId - the position of the step in the step list.
TaskState assign(java.lang.String taskId,
java.lang.String owner)
taskId - the ID of the taskowner - the name of the user that will be the new owner of the task.
java.util.List<TaskState> query(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
begin - The first day we want to see tasks from, or null for no such limit.end - The last day we want to see tasks from, or null for no such limit.
java.util.List<TaskWithSteps> export(org.joda.time.LocalDate begin,
org.joda.time.LocalDate end)
begin - The first day we want to see tasks from, or null for no such limit.end - The last day we want to see tasks from, or null for no such limit.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||