|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.apps.groupspace.rss.feed.FeedCache
public class FeedCache
Frontend for storing Feeds in com.bea.p13n.cache Feeds need a frontend, because a feed might be refreshed on the originating site while the feed is stored in the cache. In this case the cache frontend should return null even if the entry exists in the cache so that the originating site will be checked for updates.
Field Summary | |
---|---|
protected String |
communityUri
Uri for the community for which this FeedCache relates |
protected Cache |
entryCache
Cache for Feed Entries |
protected Cache |
feedCache
Cache for Feeds |
Constructor Summary | |
---|---|
FeedCache(String acommunityUri)
Constructs a p13n feed cache scoped to the Community |
Method Summary | |
---|---|
FeedEntryItem |
getCachedEntry(String uid)
Retrieve a cached FeedEntryItem based on its Unique ID |
RssFeedImpl |
getCachedFeed(URL feedUrl)
Will retrieve the feed from the cache if it exists in the cache and it is not expired |
List<FeedEntryItem> |
getCachedFeedEntries(URL feedUrl)
Will retrieve the cached Feed Entries as a list |
Cache |
getEntryCache()
Returns the Feed Entry Cache |
Cache |
getFeedCache()
Returns the Feed Cache. |
void |
invalidateEntry(String entryUid)
Invalidate a cached Feed Entry |
void |
invalidateEntryCache()
Invalidate all feed entries in the cache |
void |
invalidateFeed(RssFeedImpl feed)
Invalidate a Feed in the cache |
void |
invalidateFeedEntryList(RssFeedImpl feed)
Invalidate a feed entry list for a given feed |
boolean |
storeEntriesAsList(RssFeedImpl feed,
List<FeedEntryItem> entries)
Store a List of FeedEntries in the cache |
boolean |
storeEntriesIndividual(List<FeedEntryItem> entries)
Store a List of FeedEntries individually in the cache |
boolean |
storeEntry(FeedEntryItem entry)
Store a single FeedEntry |
RssFeedImpl |
storeFeed(RssFeedImpl feed)
Try to store the feed in cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String communityUri
protected Cache feedCache
protected Cache entryCache
Constructor Detail |
---|
public FeedCache(String acommunityUri)
acommunityUri
- The communityUri for which that cache should be constructedMethod Detail |
---|
public RssFeedImpl getCachedFeed(URL feedUrl) throws NullUrlException
feedUrl
- url of the feed to retrieve
NullUrlException
public List<FeedEntryItem> getCachedFeedEntries(URL feedUrl)
feedUrl
- url of the feed to retrieve
NullUrlException
public RssFeedImpl storeFeed(RssFeedImpl feed) throws NullUrlException
feed
- Feed to store in cache
NullUrlException
- If the feedUrl field of feed is nullpublic FeedEntryItem getCachedEntry(String uid)
uid
- Unique Id of the feed entry
public boolean storeEntriesIndividual(List<FeedEntryItem> entries)
entries
- List of feed entry items
public boolean storeEntriesAsList(RssFeedImpl feed, List<FeedEntryItem> entries)
feed
- Feed to which entries belongentries
- A list of feed entries to cache
public boolean storeEntry(FeedEntryItem entry)
entry
- Feed entry to cache
public void invalidateEntry(String entryUid)
entryUid
- The UID of the feed entry to invalidatepublic void invalidateEntryCache()
public void invalidateFeed(RssFeedImpl feed)
feed
- Feed to invalidatepublic void invalidateFeedEntryList(RssFeedImpl feed)
feed
- feed for which to invalidate feed entry listpublic Cache getFeedCache()
public Cache getEntryCache()
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |