fix for admin api

This commit is contained in:
Athou
2013-04-18 12:50:44 +02:00
parent 9bd825d786
commit af109ccf5c
30 changed files with 1000 additions and 861 deletions

View File

@@ -0,0 +1,21 @@
package com.commafeed.backend.services;
import javax.ejb.Stateless;
import javax.inject.Inject;
import com.commafeed.backend.dao.FeedEntryStatusDAO;
import com.commafeed.backend.model.FeedEntryStatus;
import com.commafeed.backend.model.User;
@Stateless
public class FeedEntryService {
@Inject
FeedEntryStatusDAO feedEntryStatusDAO;
public void markEntry(User user, Long entryId, boolean read) {
FeedEntryStatus status = feedEntryStatusDAO.findById(user, entryId);
status.setRead(read);
feedEntryStatusDAO.update(status);
}
}