|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.googleapi.service.FeedsService
public class FeedsService
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 |
---|
public static FeedsService getInstance()
public void setFeedsMap(java.util.Map<java.lang.String,FeedProvider> map)
map
- The feeds mappublic FeedProvider getProvider(java.lang.String strKey)
strKey
- The provider's key
public fr.paris.lutece.util.ReferenceList getProviders()
public fr.paris.lutece.util.ReferenceList getProviders(java.lang.Class classProvider)
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
strQuery
- The querylistItems
- A list of item to feedprovider
- The feed provider
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |