|
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.FeedCm
public class FeedCm
Frontend for interacting with the Content Management controls utilized for persistence. This class is intended to be used by FeedOps and to handle persistence for Feeds.
Field Summary | |
---|---|
protected FeedEntriesControlBean |
feedEntriesBean
FeedEntriesControl needed for feed entries persistence |
protected FeedFoldersControlBean |
feedFoldersBean
FeedFoldersControl needed for feed folders persistence |
Constructor Summary | |
---|---|
FeedCm(FeedFoldersControlBean foldersBean,
FeedEntriesControlBean entriesBean)
This constructor requires FeedFolderControl and FeedEntriesControl to be provided for persistence of feeds to be accomplished |
Method Summary | |
---|---|
List<Feed> |
getAllFeeds()
Return all feeds |
List<FeedEntryItem> |
getFeedEntries(String feedUrl,
CommunityContent.Visibility visibility)
Retrieve a List of FeedEntries from a specific FeedFolder and Visibility |
FeedEntryItem |
getFeedEntry(String uid,
CommunityContent.Visibility visibility)
Retrieve a single FeedEntry from CM |
protected FeedFolder |
lookupFolder(String feedUrl,
CommunityContent.Visibility visibility)
Looks up a FeedFolder in CM with specified visibility |
void |
persistFeedEntries(List<FeedEntryItem> feedEntries,
String feedUrl,
CommunityContent.Visibility visibility)
Store a list of FeedEntries to a FeedFolder Prerequisite: FeedFolder should exist in CM, because the feed should be subscribed before attempting to store Entries |
void |
removeFeedEntries(String feedUrl,
List<FeedEntryItem> feedEntries,
CommunityContent.Visibility visibility)
Remove a list of FeedEntries from a FeedFolder |
FeedEntry |
setArchival(FeedEntry feedEntry,
boolean archive)
Set the archival status for an entry |
protected boolean |
updateEntry(FeedEntry cmEntry)
Update the persisted feed entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FeedEntriesControlBean feedEntriesBean
protected FeedFoldersControlBean feedFoldersBean
Constructor Detail |
---|
public FeedCm(FeedFoldersControlBean foldersBean, FeedEntriesControlBean entriesBean) throws Exception
foldersBean
- FeedFoldersControlentriesBean
- FeedEntriesControl
Exception
Method Detail |
---|
public void removeFeedEntries(String feedUrl, List<FeedEntryItem> feedEntries, CommunityContent.Visibility visibility)
feedUrl
- Url string for the FeedfeedEntries
- A list of Feed Entries that are associated with Feed Url providedvisibility
- Visibility context of the feedpublic void persistFeedEntries(List<FeedEntryItem> feedEntries, String feedUrl, CommunityContent.Visibility visibility)
feedEntries
- The list of entries to be stored.feedUrl
- URL of the feed the feedEntries are related tovisibility
- Visibility context of the feed.public FeedEntryItem getFeedEntry(String uid, CommunityContent.Visibility visibility)
uid
- Uniuqe id of the feed entryvisibility
- Visibility context of the feed entry
public FeedEntry setArchival(FeedEntry feedEntry, boolean archive) throws AuthorizationException, NoSuchNodeException
feedEntry
- Feed entry for which to modify archival statusarchive
- Archive status to set for the FeedEntry
AuthorizationException
NoSuchNodeException
public List<Feed> getAllFeeds() throws Exception
Exception
public List<FeedEntryItem> getFeedEntries(String feedUrl, CommunityContent.Visibility visibility) throws NullFeedException
feedUrl
- URL of the feed feedEntries are coming fromvisibility
- Visibility context of the feed. Same feed may be stored in
personal, private and public contexts
NullFeedException
- If the specified feed is not found in CM
in the given visibility contextprotected boolean updateEntry(FeedEntry cmEntry) throws AuthorizationException, NoSuchNodeException
cmEntry
- Feed entry to update
AuthorizationException
NoSuchNodeException
protected FeedFolder lookupFolder(String feedUrl, CommunityContent.Visibility visibility)
feedUrl
- Url of feed to look upvisibility
- Visibility context of feed
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |