2013-07-02 18:07:08 +02:00
|
|
|
package com.commafeed.backend.cache;
|
|
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.enterprise.context.ApplicationScoped;
|
|
|
|
|
import javax.enterprise.inject.Alternative;
|
|
|
|
|
|
|
|
|
|
import com.commafeed.backend.model.Feed;
|
2013-07-25 10:21:11 +02:00
|
|
|
import com.commafeed.backend.model.FeedCategory;
|
|
|
|
|
import com.commafeed.backend.model.FeedSubscription;
|
2013-07-02 18:07:08 +02:00
|
|
|
import com.commafeed.backend.model.User;
|
|
|
|
|
|
|
|
|
|
@Alternative
|
|
|
|
|
@ApplicationScoped
|
|
|
|
|
public class NoopCacheService extends CacheService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<String> getLastEntries(Feed feed) {
|
|
|
|
|
return Collections.emptyList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void setLastEntries(Feed feed, List<String> entries) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-07-25 10:21:11 +02:00
|
|
|
public Long getUnreadCount(FeedSubscription sub) {
|
2013-07-02 18:07:08 +02:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-07-25 10:21:11 +02:00
|
|
|
public void setUnreadCount(FeedSubscription sub, Long count) {
|
2013-07-02 18:07:08 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-07-25 10:21:11 +02:00
|
|
|
public List<FeedCategory> getUserCategories(User user) {
|
2013-07-03 12:42:01 +02:00
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-07-25 10:21:11 +02:00
|
|
|
public void setUserCategories(User user, List<FeedCategory> categories) {
|
2013-07-02 18:07:08 +02:00
|
|
|
|
|
|
|
|
}
|
2013-07-03 12:42:01 +02:00
|
|
|
|
|
|
|
|
@Override
|
2013-07-25 10:21:11 +02:00
|
|
|
public void invalidateUserCategories(User user) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<FeedSubscription> getUserSubscriptions(User user) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void setUserSubscriptions(User user, List<FeedSubscription> subs) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void invalidateUserSubscriptions(User user) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void invalidateUnreadCount(FeedSubscription... subs) {
|
2013-07-03 12:42:01 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2013-07-02 18:07:08 +02:00
|
|
|
}
|