com.silverpeas.rssAgregator.control
Class RSSServiceImpl
java.lang.Object
com.silverpeas.rssAgregator.control.RSSServiceImpl
- All Implemented Interfaces:
- RSSService
@Named(value="rssService")
public class RSSServiceImpl
- extends Object
- implements RSSService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSSServiceImpl
public RSSServiceImpl()
getApplicationItems
public List<RSSItem> getApplicationItems(String applicationId,
boolean agregateContent)
throws RssAgregatorException
- Specified by:
getApplicationItems
in interface RSSService
- Parameters:
applicationId
- the application identifieragregateContent
- 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
getAllChannels
public List<SPChannel> getAllChannels(String applicationId)
throws RssAgregatorException
- Description copied from interface:
RSSService
- Retrieve all the channel of an application
- Specified by:
getAllChannels
in interface RSSService
- Parameters:
applicationId
- the current application identifier (instance of rssagregator application)
- Returns:
- the list of channels
- Throws:
RssAgregatorException
getChannelFromUrl
protected de.nava.informa.impl.basic.Channel getChannelFromUrl(String sUrl)
throws RssAgregatorException
- Retrieve channel from URL string parameter
- Parameters:
sUrl
- the url string parameter
- Returns:
- RSS channel from URL
- Throws:
RssAgregatorException
- if MalformedURL or Parse or IO problem occur
Copyright © 2016 Silverpeas. All Rights Reserved.