@@ -0,0 +1,1482 @@
+package net.davidvoid.thor.lightning.service;%0A%0Aimport java.util.List;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport net.davidvoid.thor.lightning.data.access.FeedStore;%0Aimport net.davidvoid.thor.lightning.data.access.GroupStore;%0Aimport net.davidvoid.thor.lightning.data.access.ItemStore;%0Aimport net.davidvoid.thor.lightning.data.access.ItemStore.FILTER_OPTION;%0Aimport net.davidvoid.thor.lightning.entity.Feed;%0Aimport net.davidvoid.thor.lightning.entity.Group;%0Aimport net.davidvoid.thor.lightning.entity.Item;%0A%0A@Component%0Apublic class ItemService %7B%0A    @Autowired%0A    ItemStore store = null;%0A    @Autowired%0A    GroupStore group_store = null;%0A    @Autowired%0A    FeedStore feed_store =null;%0A    %0A    public List%3CItem%3E get(Object group_id, Object feed_id, boolean onlyUnread, ItemStore.SORT_OPTION sortBy, int start, int count) %7B%0A        FILTER_OPTION filterOption = onlyUnread? FILTER_OPTION.ONLY_UNREAD : FILTER_OPTION.BOTH;%0A        %0A        Group group = group_store.getGroupById(group_id);%0A        Feed feed = feed_store.getFeedByGroupAndFeedIds(group, feed_id);%0A%0A        return store.getItemsFromFeed(feed, start, count, filterOption, sortBy);%0A    %7D%0A    %0A    public long count(Object group_id, Object feed_id, boolean onlyUnread) %7B%0A        Group group = group_store.getGroupById(group_id);%0A        Feed feed = feed_store.getFeedByGroupAndFeedIds(group, feed_id);%0A%0A        return store.count(feed);%0A    %7D%0A%0A%7D%0A

add service for Items