|
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.FeedOps
public class FeedOps
Frontend class for operations on feeds. This class coordinates caching, retrieval of feeds from the live source and persistence to the CM system.
Field Summary | |
---|---|
protected FeedCache |
cache
Object for caching feeds |
protected FeedCm |
cm
Object which controls feed persistence |
protected FeedEntriesControlBean |
feedEntriesControl
FeedFoldersControl needed for feed folders persistence |
protected FeedFoldersControlBean |
feedFoldersControl
FeedEntriesControl needed for feed entries persistence |
Constructor Summary | |
---|---|
FeedOps(String communityUri,
FeedFoldersControlBean foldersBean,
FeedEntriesControlBean entriesBean)
Constructs a FeedOps object for management of Feeds |
Method Summary | |
---|---|
List<Feed> |
getAllFeeds()
Get all persisted feeds |
List<FeedEntryItem> |
getEntries(FeedFolder feedFolder)
Return a list of entries for a specific Feed Folder |
List<FeedEntryItem> |
getEntries(URL feedUrl)
Retrieves the entries for a specified feed URL and assumes a default FeedFolderControl visibility |
List<FeedEntryItem> |
getEntries(URL feedUrl,
CommunityContent.Visibility visibility)
Retrieves the entries for a specified feed URL and Visibility. |
FeedEntryItem |
getEntry(String uid)
Retrieve a specific feed entry by feed entry unique id and assumes a default FeedFolderControl visibility |
FeedEntryItem |
getEntry(String uid,
CommunityContent.Visibility visibility)
Retrieve a specific feed entry by feed entry unique id and visibility |
Feed |
getFeedInfo(URL feedUrl,
CommunityContent.Visibility visibility)
Retrieves the request feed base on URL and Visibility. |
boolean |
isFeedSubscribed(URL feedUrl)
Determines if this feed has already been subscribed to for the default FeedFolderControl visibility |
boolean |
isFeedSubscribed(URL feedUrl,
CommunityContent.Visibility visibility)
Determines if this feed has already been subscribed to for the provided visibility |
boolean |
setArchiveStatus(FeedEntry feedEntry,
FeedFolder feedFolder,
boolean status)
Sets the status of a FeedEntry so that it will/will not be archived. |
boolean |
setFeedFolderVisibility(Feed feed,
CommunityContent.Visibility visibility)
Set visibility of Feed Folder(support private to community visibility change) |
boolean |
subscribe(URL feedUrl,
CommunityContent.Visibility visibility)
Subscribe to a feed and create the GroupSpace FeedFolder that will represent this feed locally |
boolean |
unsubscribeFeed(URL feedUrl,
CommunityContent.Visibility visibility,
boolean force)
Unsubscribe from a feed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FeedFoldersControlBean feedFoldersControl
protected FeedEntriesControlBean feedEntriesControl
protected FeedCache cache
protected FeedCm cm
Constructor Detail |
---|
public FeedOps(String communityUri, FeedFoldersControlBean foldersBean, FeedEntriesControlBean entriesBean) throws Exception
communityUri
- the Community Uri stringfoldersBean
- FeedFoldersControlentriesBean
- FeedEntriesControl
Exception
Method Detail |
---|
public List<Feed> getAllFeeds() throws Exception
Exception
public Feed getFeedInfo(URL feedUrl, CommunityContent.Visibility visibility)
feedUrl
- Url of the feed to fetch
NullUrlException
- if the URL passed in was null
com.sun.syndication.io.FeedException
- if the feed can't be acquired or parsed from the live source
for some reasonpublic List<FeedEntryItem> getEntries(FeedFolder feedFolder) throws NullUrlException, NullFeedException
feedFolder
- The GroupSpace feed folder
NullUrlException
NullFeedException
public List<FeedEntryItem> getEntries(URL feedUrl) throws NullUrlException, NullFeedException
feedUrl
- URL for a feed
NullUrlException
NullFeedException
public List<FeedEntryItem> getEntries(URL feedUrl, CommunityContent.Visibility visibility) throws NullUrlException, NullFeedException
feedUrl
- URL for a feedvisibility
- Visibility context for the feed
NullUrlException
NullFeedException
public FeedEntryItem getEntry(String uid)
uid
- unique id for a feed entry
public FeedEntryItem getEntry(String uid, CommunityContent.Visibility visibility)
uid
- unique id of feed entryvisibility
- Visibility context of feed entry
public boolean unsubscribeFeed(URL feedUrl, CommunityContent.Visibility visibility, boolean force)
feedUrl
- URL of the feed to unsubscribevisibility
- Visibility context for the feed to unsubscribeforce
- Should the feed be unsubscribed even if there are
archived entries for the feed
AuthorizationException
- If the user does not have permission to unsubscribe
from the feedpublic boolean isFeedSubscribed(URL feedUrl)
feedUrl
- URL of feed
public boolean isFeedSubscribed(URL feedUrl, CommunityContent.Visibility visibility)
feedUrl
- URL of feedvisibility
- Visibility context of feed
public boolean subscribe(URL feedUrl, CommunityContent.Visibility visibility) throws Exception
feedUrl
- URL of the feedvisibility
- Visibility context of the feed
Exception
public boolean setArchiveStatus(FeedEntry feedEntry, FeedFolder feedFolder, boolean status) throws AuthorizationException, NoSuchNodeException
uid
- Identifies the entry within visibility scopesearchPath
- Where to start looking for the FeedEntrystatus
- Archive status to set
AuthorizationException
NoSuchNodeException
public boolean setFeedFolderVisibility(Feed feed, CommunityContent.Visibility visibility)
feed
- feed for which to modify visibilityvisibility
- Visibility context for 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 |