public class DeleteTaskCmd extends Object implements Command<Void>, Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
cascade |
protected String |
deleteReason |
protected String |
taskId |
protected Collection<String> |
taskIds |
Constructor and Description |
---|
DeleteTaskCmd(Collection<String> taskIds,
String deleteReason,
boolean cascade) |
DeleteTaskCmd(String taskId,
String deleteReason,
boolean cascade) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDeleteTask(TaskEntity task,
CommandContext commandContext) |
protected void |
deleteTask(String taskId,
CommandContext commandContext) |
Void |
execute(CommandContext commandContext) |
protected String taskId
protected Collection<String> taskIds
protected boolean cascade
protected String deleteReason
public DeleteTaskCmd(Collection<String> taskIds, String deleteReason, boolean cascade)
public Void execute(CommandContext commandContext)
protected void deleteTask(String taskId, CommandContext commandContext)
protected void checkDeleteTask(TaskEntity task, CommandContext commandContext)
Copyright © 2018. All rights reserved.