public List<Event> process(MoveToBacklogTaskCommand cmd) { log.info("Calling TaskAggregate.process for BacklogTaskCommand : {}", cmd); return EventUtil.events(new TaskBacklogEvent(cmd.getUpdate())); }
public List<Event> process(UpdateTaskCommand cmd) { log.info("Calling TaskAggregate.process for UpdateTaskCommand : {}", cmd); return EventUtil.events(new TaskUpdatedEvent(cmd.getTaskDetails(), cmd.getUpdate())); }
public List<Event> process(CompleteTaskCommand cmd) { log.info("Calling TaskAggregate.process for CompleteTaskCommand : {}", cmd); return EventUtil.events(new TaskCompletedEvent(cmd.getBoardId(), cmd.getUpdate())); }
public List<Event> process(CreateTaskCommand cmd) { log.info("Calling TaskAggregate.process for CreateTaskCommand : {}", cmd); return EventUtil.events(new TaskCreatedEvent(cmd.getTaskInfo())); }