Class SummarizeCommand
java.lang.Object
org.tasktide.core.manager.command.commands.AbstractCommand
org.tasktide.core.manager.command.commands.SummarizeCommand
- All Implemented Interfaces:
ManagerCommand
Carries logic for summarizing
TaskTideModel,
ItemState-
Field Summary
Fields inherited from class AbstractCommand
action, cmdSpec, cmdType, target -
Constructor Summary
ConstructorsConstructorDescriptionSummarizeCommand(ManagerAction action, ManagerTarget target, CommandSpec cmdSpec, CommandType cmdType) Construct summarize command -
Method Summary
Modifier and TypeMethodDescriptionPerforms required summary actionSummarizeCollapses counts ofItemStateacross all collection unitsbooleanValidatesCommandSpecfor summaryMethods inherited from class AbstractCommand
execute, getAction, getCmdSpec, getCmdType, getTarget, toJsonDoc, toJsonString, toString
-
Constructor Details
-
SummarizeCommand
public SummarizeCommand(ManagerAction action, ManagerTarget target, CommandSpec cmdSpec, CommandType cmdType) Construct summarize command- Parameters:
action-target-cmdSpec-cmdType-
-
-
Method Details
-
runCommand
Performs required summary action- Specified by:
runCommandin classAbstractCommand- Returns:
- boolean
-
validateCommand
-
summarize
-
summarizeAcrossItemTask
Collapses counts ofItemStateacross all collection units- Returns:
StateSummaryofItemState
-
summarizeEach
- Returns:
- Map-String,
StateSummaryofItemState
-