fr.paris.lutece.plugins.rss.service
Class RssService

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.service.RssService
All Implemented Interfaces:
fr.paris.lutece.plugins.rss.service.IRssService

public class RssService
extends java.lang.Object
implements fr.paris.lutece.plugins.rss.service.IRssService

The rss service


Constructor Summary
RssService()
           
 
Method Summary
static RssService getInstance()
          Returns the instance of the singleton
 fr.paris.lutece.util.ReferenceList getRefListResourceRssType(java.util.Locale locale)
          Return a reference list wich contains the ResourceRss types
 fr.paris.lutece.util.ReferenceList getRefListRssFeed()
           
 fr.paris.lutece.portal.business.rss.IResourceRss getResourceRssInstance(java.lang.String strKey, java.util.Locale locale)
          return an instance of ResourceRss Object depending on the resource rss type
 java.util.Collection<fr.paris.lutece.portal.business.rss.IResourceRssType> getResourceRssTypeList()
           
 java.lang.String getRssContent(int nIdRssFeed)
          Gets the RSS content
static java.util.List<RssFeed> getRssFeed()
           
 void init()
          Initialize the Rss service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssService

public RssService()
Method Detail

init

public void init()
Initialize the Rss service


getInstance

public static RssService getInstance()
Returns the instance of the singleton

Returns:
The instance of the singleton

getRssContent

public java.lang.String getRssContent(int nIdRssFeed)
Gets the RSS content

Specified by:
getRssContent in interface fr.paris.lutece.plugins.rss.service.IRssService
Parameters:
nIdRssFeed - The RSS id
Returns:
The content

getRefListRssFeed

public fr.paris.lutece.util.ReferenceList getRefListRssFeed()
Specified by:
getRefListRssFeed in interface fr.paris.lutece.plugins.rss.service.IRssService

getRssFeed

public static java.util.List<RssFeed> getRssFeed()

getResourceRssInstance

public fr.paris.lutece.portal.business.rss.IResourceRss getResourceRssInstance(java.lang.String strKey,
                                                                               java.util.Locale locale)
return an instance of ResourceRss Object depending on the resource rss type

Parameters:
strKey - the type resource rss key
locale - the locale
Returns:
an instance of ResourceRss Object

getResourceRssTypeList

public java.util.Collection<fr.paris.lutece.portal.business.rss.IResourceRssType> getResourceRssTypeList()
Returns:
a list of ResourceRss type

getRefListResourceRssType

public fr.paris.lutece.util.ReferenceList getRefListResourceRssType(java.util.Locale locale)
Return a reference list wich contains the ResourceRss types

Parameters:
locale - the locale
Returns:
a reference list wich contains the ResourceRss types


Copyright © 2011 Mairie de Paris. All Rights Reserved.