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