Class DeleteCommand

java.lang.Object
org.tasktide.core.manager.command.commands.AbstractCommand
org.tasktide.core.manager.command.commands.DeleteCommand
All Implemented Interfaces:
ManagerCommand

public class DeleteCommand extends AbstractCommand
Class for handling the deletion of TaskTideModel
  • Constructor Details

  • Method Details

    • deleteWorkItem

      public Object deleteWorkItem()
      Deletes entire WorkItem
      Returns:
      boolean as Object
    • deleteWorkflow

      public Object deleteWorkflow(boolean recursive)
      Deletes Workflow, optionally clears all Step, and WorkItem associated with it
      Parameters:
      recursive -
      Returns:
      Object
    • deleteStep

      public Object deleteStep(boolean recursive)
      Drop Step clearing from workflow, optionally deletes all WorkItem associated with it too
      Parameters:
      recursive -
      Returns:
      boolean as Object
    • deleteTask

      public Object deleteTask()
      Delete ItemTask from WorkItem. Requires CommandSpec to have query string in below format.
      '{"Item Id": "XXXX", "Task Id": "YYY"}'
      OR
      '{"Item Id": "XXXX", "Task Name": "YYY"}'
      Returns:
      WorkItem as Object
    • deleteTasks

      public int deleteTasks()
      Iteratively delete provided list of WorkItem Ids
      Returns:
      int
    • runCommand

      public Object runCommand()
      Handles running correct ManagerAction
      Specified by:
      runCommand in class AbstractCommand
      Returns:
      Object
    • validateCommand

      public boolean validateCommand()
      Validates if ManagerCommand can occur
      Returns:
      boolean