Class DefaultRSSService
- java.lang.Object
-
- org.silverpeas.components.rssaggregator.service.DefaultRSSService
-
- All Implemented Interfaces:
RSSService
@Service public class DefaultRSSService extends Object implements RSSService
-
-
Constructor Summary
Constructors Constructor Description DefaultRSSService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SPChannel>getAllChannels(String applicationId)Retrieve all the syndication channels of an applicationList<RSSItem>getApplicationItems(String applicationId, boolean aggregateContent)Retrieve all the items from all the syndication channels of the specified application.
-
-
-
Method Detail
-
getApplicationItems
public List<RSSItem> getApplicationItems(String applicationId, boolean aggregateContent) throws RssAgregatorException
Description copied from interface:RSSServiceRetrieve all the items from all the syndication channels of the specified application.- Specified by:
getApplicationItemsin interfaceRSSService- Parameters:
applicationId- the application identifieraggregateContent- true if sorting all items from date, false else if sorting by channel- Returns:
- list of RSSItems which are retrieved from application RSS channels
- Throws:
RssAgregatorException- if an error occurs.
-
getAllChannels
public List<SPChannel> getAllChannels(String applicationId) throws RssAgregatorException
Description copied from interface:RSSServiceRetrieve all the syndication channels of an application- Specified by:
getAllChannelsin interfaceRSSService- Parameters:
applicationId- the current application identifier (instance of rssagregator application)- Returns:
- the list of SPChannel
- Throws:
RssAgregatorException- if an error occurs.
-
-