initial starring support

This commit is contained in:
Athou
2013-04-29 22:37:26 +02:00
parent 7c061d333a
commit d5218b8773
5 changed files with 92 additions and 1 deletions

View File

@@ -18,4 +18,10 @@ public class FeedEntryService {
status.setRead(read);
feedEntryStatusDAO.update(status);
}
public void starEntry(User user, Long entryId, boolean starred) {
FeedEntryStatus status = feedEntryStatusDAO.findById(user, entryId);
status.setStarred(starred);
feedEntryStatusDAO.update(status);
}
}