org.chorem.pollen.services.impl
Class FavoriteListImportCSV
java.lang.Object
org.chorem.pollen.services.PollenServiceSupport
org.chorem.pollen.services.impl.FavoriteListImportCSV
- All Implemented Interfaces:
- FavoriteListImport, PollenService
public class FavoriteListImportCSV
- extends PollenServiceSupport
- implements FavoriteListImport
Implementation of FavoriteListImport as a service for CSV import.
Nuiton-CSV is used to manage the Import using a specific FavoriteListImportCSV.FavoriteListImportModel for pollen. Empty rows (no votingId or no email) are ignored.
Created: 16/04/12
- Since:
- 1.3
- Author:
- fdesbois
| Methods inherited from class org.chorem.pollen.services.PollenServiceSupport |
commitTransaction, create, delete, flushTransaction, getConfiguration, getDAO, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FavoriteListImportCSV
public FavoriteListImportCSV()
execute
public List<PollAccount> execute(String url)
throws FavoriteListImportException
- Description copied from interface:
FavoriteListImport
- Execute the import from given
url. This will returned the
successful list of PollAccount instanciated during import. No
database save is done here, only the extraction from an input url to
a list of entities to manage.
- Specified by:
execute in interface FavoriteListImport
- Parameters:
url - Url of the file or service that contains data to import
- Returns:
- the List of PollAccount imported
- Throws:
FavoriteListImportException - for any import error
Copyright © 2009-2012 CodeLutin. All Rights Reserved.