Class DeleteCommand
java.lang.Object
org.tasktide.core.manager.command.commands.AbstractCommand
org.tasktide.core.manager.command.commands.DeleteCommand
- All Implemented Interfaces:
ManagerCommand
Class for handling the deletion of
TaskTideModel-
Field Summary
Fields inherited from class AbstractCommand
action, cmdSpec, cmdType, target -
Constructor Summary
ConstructorsConstructorDescriptionDeleteCommand(ManagerAction action, ManagerTarget target, CommandSpec cmdSpec, CommandType cmdType) Construct delete command -
Method Summary
Modifier and TypeMethodDescriptiondeleteStep(boolean recursive) intIteratively delete provided list ofWorkItemIdsdeleteWorkflow(boolean recursive) Deletes entireWorkItemHandles running correctManagerActionbooleanValidates ifManagerCommandcan occurMethods inherited from class AbstractCommand
execute, getAction, getCmdSpec, getCmdType, getTarget, toJsonDoc, toJsonString, toString
-
Constructor Details
-
DeleteCommand
public DeleteCommand(ManagerAction action, ManagerTarget target, CommandSpec cmdSpec, CommandType cmdType) Construct delete command- Parameters:
action-target-cmdSpec-cmdType-
-
-
Method Details
-
deleteWorkItem
-
deleteWorkflow
-
deleteStep
-
deleteTask
DeleteItemTaskfromWorkItem. RequiresCommandSpecto have query string in below format.
'{"Item Id": "XXXX", "Task Id": "YYY"}'
OR
'{"Item Id": "XXXX", "Task Name": "YYY"}'- Returns:
WorkItemas Object
-
deleteTasks
-
runCommand
Handles running correctManagerAction- Specified by:
runCommandin classAbstractCommand- Returns:
- Object
-
validateCommand
-