Exemplo n.º 1
0
  @Transactional
  public DailyWorkTaskTO rankUnderTaskOnWhatsNext(User user, Task task, Task upperTask)
      throws IllegalArgumentException {
    WhatsNextEntry entry = whatsNextEntryDAO.getWhatsNextEntryFor(user, task);

    if (entry == null) {
      entry = addToWhatsNext(user, task);
    }

    WhatsNextEntry upperEntry = null;
    if (upperTask != null) {
      upperEntry = whatsNextEntryDAO.getWhatsNextEntryFor(user, upperTask);
    }

    return rankUnderTaskOnWhatsNext(entry, upperEntry);
  }
Exemplo n.º 2
0
 @Transactional
 public void removeFromWhatsNext(User user, Task task) throws IllegalArgumentException {
   WhatsNextEntry entry = whatsNextEntryDAO.getWhatsNextEntryFor(user, task);
   if (entry != null) {
     whatsNextEntryDAO.remove(entry);
   }
 }
Exemplo n.º 3
0
 @Transactional
 public DailyWorkTaskTO rankToBottomOnWhatsNext(User user, Task task)
     throws IllegalArgumentException {
   return rankToBottomOnWhatsNext(whatsNextEntryDAO.getWhatsNextEntryFor(user, task));
 }