|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.PersistentFeedData
public class PersistentFeedData
A PersistentFeedData object contains feed cache data and related
metadata for a single feed (or channel), in a form suitable for saving to
and restoring from an external store. The data are organized to make
persistence operations easier. At runtime, the data are reorganized: The
cache-specific data is stored in the feed cache (see FeedCache) and
other metadata items are parceled out to various plug-ins.
There are three categories of persistent feed data:
FeedCacheEntry object
FeedCacheEntry objects.
WARNING: This class is not thread-safe.
FeedCache,
DataPersister,
PersistentFeedItemData| Constructor Summary | |
|---|---|
PersistentFeedData()
Allocate a new empty PersistentFeedData object. |
|
PersistentFeedData(FeedCacheEntry feedCacheEntry)
Creates a new instance of PersistentFeedData. |
|
| Method Summary | |
|---|---|
void |
addFeedMetadata(java.util.Collection<PersistentMetadataGroup> metadata)
Add a metadata group (i.e., all the metadata within a given namespace) to this object. |
void |
addFeedMetadataGroup(PersistentMetadataGroup metadataGroup)
Add a metadata group (i.e., all the metadata within a given namespace) to this object. |
void |
addPersistentFeedItem(PersistentFeedItemData itemData)
Add persistent data for a feed item to this object. |
FeedCacheEntry |
getFeedCacheEntry()
Get the FeedCacheEntry for the feed |
java.util.Collection<PersistentMetadataGroup> |
getFeedMetadata()
Get the extra metadata associated with the feed. |
java.util.Collection<PersistentFeedItemData> |
getPersistentFeedItems()
Get the list of PersistentFeedItemData entries associated with
this feed. |
void |
setFeedCacheEntry(FeedCacheEntry feedCacheEntry)
Set the FeedCacheEntry field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentFeedData(FeedCacheEntry feedCacheEntry)
feedCacheEntry - the FeedCacheEntry for the channel/feedpublic PersistentFeedData()
| Method Detail |
|---|
public FeedCacheEntry getFeedCacheEntry()
FeedCacheEntry for the feed
FeedCacheEntrypublic final void setFeedCacheEntry(FeedCacheEntry feedCacheEntry)
FeedCacheEntry field.
feedCacheEntry - the FeedCacheEntry object for the
channel/feedpublic void addPersistentFeedItem(PersistentFeedItemData itemData)
itemData - the PersistentFeedItemData object to addpublic java.util.Collection<PersistentFeedItemData> getPersistentFeedItems()
PersistentFeedItemData entries associated with
this feed.
PersistentFeedItemData
objects and empty collection if there are none.addPersistentFeedItem(org.clapper.curn.PersistentFeedItemData)public void addFeedMetadataGroup(PersistentMetadataGroup metadataGroup)
metadataGroup - the group of metadatapublic void addFeedMetadata(java.util.Collection<PersistentMetadataGroup> metadata)
metadata - the metadatapublic java.util.Collection<PersistentMetadataGroup> getFeedMetadata()
PersistentMetadataGroup
objects, each one containing the data for one namespace.
The collection will be empty if there is no feed metadata.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||