fr.paris.lutece.plugins.googleapi.service
Class FeedsService

java.lang.Object
  extended by fr.paris.lutece.plugins.googleapi.service.FeedsService

public class FeedsService
extends java.lang.Object

This service provides an access to all feeds defined in the Spring context file : googleapi_context.xml


Method Summary
static FeedsService getInstance()
          Returns the unique instance of the service
 void getItems(java.lang.String strQuery, java.util.List<Item> listItems, FeedProvider provider)
          Connect to the Google Base data API server, retrieve the items
 FeedProvider getProvider(java.lang.String strKey)
          Returns a provider from its key
 fr.paris.lutece.util.ReferenceList getProviders()
          Returns the providers list
 fr.paris.lutece.util.ReferenceList getProviders(java.lang.Class classProvider)
          Returns the providers list
 void setFeedsMap(java.util.Map<java.lang.String,FeedProvider> map)
          Sets the feeds map (used for spring injection)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FeedsService getInstance()
Returns the unique instance of the service

Returns:
The instance

setFeedsMap

public void setFeedsMap(java.util.Map<java.lang.String,FeedProvider> map)
Sets the feeds map (used for spring injection)

Parameters:
map - The feeds map

getProvider

public FeedProvider getProvider(java.lang.String strKey)
Returns a provider from its key

Parameters:
strKey - The provider's key
Returns:
The provider

getProviders

public fr.paris.lutece.util.ReferenceList getProviders()
Returns the providers list

Returns:
the providers list

getProviders

public fr.paris.lutece.util.ReferenceList getProviders(java.lang.Class classProvider)
Returns the providers list

Returns:
the providers list

getItems

public void getItems(java.lang.String strQuery,
                     java.util.List<Item> listItems,
                     FeedProvider provider)
              throws java.io.IOException,
                     org.xml.sax.SAXException,
                     javax.xml.parsers.ParserConfigurationException
Connect to the Google Base data API server, retrieve the items

Parameters:
strQuery - The query
listItems - A list of item to feed
provider - The feed provider
Throws:
java.io.IOException - if an error occured during the process
org.xml.sax.SAXException - if an error occured during the process
javax.xml.parsers.ParserConfigurationException - if an error occured during the process


Copyright © 2009 Mairie de Paris. All Rights Reserved.