Exemplo n.º 1
0
 @Transactional
 public WhatsNextStoryEntry addToWhatsNext(User user, Story story) {
   WhatsNextStoryEntry entry = new WhatsNextStoryEntry();
   entry.setStory(story);
   entry.setUser(user);
   whatsNextStoryEntryDAO.store(entry);
   storyBusiness.addResponsible(story, user);
   doRankToBottomOnWhatsNext(entry);
   return entry;
 }
Exemplo n.º 2
0
 @Transactional
 private void doRankToBottomOnWhatsNext(WhatsNextStoryEntry entry)
     throws IllegalArgumentException {
   rankingBusiness.rankToBottom(entry, whatsNextStoryEntryDAO.getLastStoryInRank(entry.getUser()));
 }