com.silverpeas.rssAgregator.control
Class RSSServiceImpl

java.lang.Object
  extended by com.silverpeas.rssAgregator.control.RSSServiceImpl
All Implemented Interfaces:
RSSService

@Named(value="rssService")
public class RSSServiceImpl
extends Object
implements RSSService


Constructor Summary
RSSServiceImpl()
           
 
Method Summary
 List<SPChannel> getAllChannels(String applicationId)
          Retrieve all the channel of an application
 List<RSSItem> getApplicationItems(String applicationId, boolean agregateContent)
           
protected  de.nava.informa.impl.basic.Channel getChannelFromUrl(String sUrl)
          Retrieve channel from URL string parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSSServiceImpl

public RSSServiceImpl()
Method Detail

getApplicationItems

public List<RSSItem> getApplicationItems(String applicationId,
                                         boolean agregateContent)
                                  throws RssAgregatorException
Specified by:
getApplicationItems in interface RSSService
Parameters:
applicationId - the application identifier
agregateContent - 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.