com.xebialabs.deployit.core.rest.api
Class TaskResource
java.lang.Object
com.xebialabs.deployit.core.rest.secured.AbstractSecuredResource
com.xebialabs.deployit.core.rest.api.TaskResource
- All Implemented Interfaces:
- com.xebialabs.deployit.core.api.TaskProxy
@Controller
public class TaskResource
- extends AbstractSecuredResource
- implements com.xebialabs.deployit.core.api.TaskProxy
|
Method Summary |
javax.ws.rs.core.Response |
abort(java.lang.String taskId)
|
javax.ws.rs.core.Response |
assignTask(java.lang.String taskId,
java.lang.String owner)
|
javax.ws.rs.core.Response |
cancel(java.lang.String taskId)
|
javax.ws.rs.core.Response |
getAllUnfinishedTasks()
Lists all unfinished tasks in the system. |
javax.ws.rs.core.Response |
getStepInfo(java.lang.String taskId,
int stepNr,
com.xebialabs.deployit.core.api.resteasy.Date ifModifiedSince)
|
javax.ws.rs.core.Response |
getStepsForTask(java.lang.String taskId)
|
javax.ws.rs.core.Response |
getTaskInfo(java.lang.String taskId)
|
javax.ws.rs.core.Response |
getUnfinishedTasks()
Lists all unfinished tasks for the current user. |
protected boolean |
hasBeenModifiedSince(com.xebialabs.deployit.task.TaskStepInfo step,
com.xebialabs.deployit.core.api.resteasy.Date ifModifiedSince)
|
javax.ws.rs.core.Response |
moveStep(java.lang.String taskId,
int stepNr,
int newPosition)
|
javax.ws.rs.core.Response |
start(java.lang.String taskId)
|
javax.ws.rs.core.Response |
stop(java.lang.String taskId)
|
javax.ws.rs.core.Response |
toggleSkipSteps(java.lang.String taskId,
java.lang.String stepIds)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskResource
public TaskResource()
start
public javax.ws.rs.core.Response start(java.lang.String taskId)
- Specified by:
start in interface com.xebialabs.deployit.core.api.TaskProxy
cancel
public javax.ws.rs.core.Response cancel(java.lang.String taskId)
- Specified by:
cancel in interface com.xebialabs.deployit.core.api.TaskProxy
stop
public javax.ws.rs.core.Response stop(java.lang.String taskId)
- Specified by:
stop in interface com.xebialabs.deployit.core.api.TaskProxy
abort
public javax.ws.rs.core.Response abort(java.lang.String taskId)
- Specified by:
abort in interface com.xebialabs.deployit.core.api.TaskProxy
getTaskInfo
public javax.ws.rs.core.Response getTaskInfo(java.lang.String taskId)
- Specified by:
getTaskInfo in interface com.xebialabs.deployit.core.api.TaskProxy
assignTask
public javax.ws.rs.core.Response assignTask(java.lang.String taskId,
java.lang.String owner)
- Specified by:
assignTask in interface com.xebialabs.deployit.core.api.TaskProxy
toggleSkipSteps
public javax.ws.rs.core.Response toggleSkipSteps(java.lang.String taskId,
java.lang.String stepIds)
- Specified by:
toggleSkipSteps in interface com.xebialabs.deployit.core.api.TaskProxy
moveStep
public javax.ws.rs.core.Response moveStep(java.lang.String taskId,
int stepNr,
int newPosition)
- Specified by:
moveStep in interface com.xebialabs.deployit.core.api.TaskProxy
getStepInfo
public javax.ws.rs.core.Response getStepInfo(java.lang.String taskId,
int stepNr,
com.xebialabs.deployit.core.api.resteasy.Date ifModifiedSince)
- Specified by:
getStepInfo in interface com.xebialabs.deployit.core.api.TaskProxy
hasBeenModifiedSince
protected boolean hasBeenModifiedSince(com.xebialabs.deployit.task.TaskStepInfo step,
com.xebialabs.deployit.core.api.resteasy.Date ifModifiedSince)
getUnfinishedTasks
public javax.ws.rs.core.Response getUnfinishedTasks()
- Lists all unfinished tasks for the current user.
NOTE: this method is invoked from the GUI when restarting the UI after a crash. Therefore, it should only return
the tasks for the currently logged in user to prevent logging in as an administrator and seeing all tasks
in the system open in your GUI.
If you do need the latter functionality, see getAllUnfinishedTasks().
- Specified by:
getUnfinishedTasks in interface com.xebialabs.deployit.core.api.TaskProxy
getAllUnfinishedTasks
public javax.ws.rs.core.Response getAllUnfinishedTasks()
- Lists all unfinished tasks in the system.
- Specified by:
getAllUnfinishedTasks in interface com.xebialabs.deployit.core.api.TaskProxy
getStepsForTask
public javax.ws.rs.core.Response getStepsForTask(java.lang.String taskId)
- Specified by:
getStepsForTask in interface com.xebialabs.deployit.core.api.TaskProxy