public class GrowingSystemImporter extends AbstractCSVImporter
| Modifier and Type | Field and Description |
|---|---|
protected GrowingPlanTopiaDao |
growingPlanDao |
FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0IdToObject, serviceContext, serviceFactory| Constructor and Description |
|---|
GrowingSystemImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addGrowingSystemCategoryStrategy(ImportResults importResults,
GrowingSystemImportDto dto,
long line,
GrowingSystem growingSystem,
boolean error) |
protected String |
getTypeAgricultureId(ImportResults importResults,
long line,
GrowingSystemImportDto dto,
GrowingSystem growingSystem) |
ImportResults |
importFromStream(InputStream is,
Map<String,EntityAndDependencies> growingPlansByCsvIds) |
void |
init(ServiceContext serviceContext) |
protected boolean |
validGrowingPlanAffiliation(ImportResults importResults,
long line,
GrowingSystemImportDto dto,
GrowingSystem growingSystem,
Map<String,EntityAndDependencies> growingPlansByCsvIds,
boolean error) |
protected boolean |
validGrowingSystemCode(ImportResults importResults,
long line,
GrowingSystem growingSystem,
boolean error) |
protected boolean |
validGrowingSystemName(ImportResults importResults,
long line,
GrowingSystem growingSystem,
boolean error) |
protected boolean |
validGrowingSystemSector(ImportResults importResults,
GrowingSystemImportDto dto,
long line,
GrowingSystem growingSystem,
boolean error) |
protected boolean |
validGrowingSystemUpdateDate(ImportResults importResults,
long line,
GrowingSystem growingSystem,
boolean error) |
csvCodeToAgrosystCode, getPersistenceContext, getServiceFactoryprotected GrowingPlanTopiaDao growingPlanDao
public ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> growingPlansByCsvIds)
protected String getTypeAgricultureId(ImportResults importResults, long line, GrowingSystemImportDto dto, GrowingSystem growingSystem)
protected boolean validGrowingPlanAffiliation(ImportResults importResults, long line, GrowingSystemImportDto dto, GrowingSystem growingSystem, Map<String,EntityAndDependencies> growingPlansByCsvIds, boolean error)
protected boolean validGrowingSystemCode(ImportResults importResults, long line, GrowingSystem growingSystem, boolean error)
protected boolean validGrowingSystemName(ImportResults importResults, long line, GrowingSystem growingSystem, boolean error)
protected boolean validGrowingSystemSector(ImportResults importResults, GrowingSystemImportDto dto, long line, GrowingSystem growingSystem, boolean error)
protected boolean validGrowingSystemUpdateDate(ImportResults importResults, long line, GrowingSystem growingSystem, boolean error)
protected boolean addGrowingSystemCategoryStrategy(ImportResults importResults, GrowingSystemImportDto dto, long line, GrowingSystem growingSystem, boolean error)
public void init(ServiceContext serviceContext)
init in interface ICsvImporterinit in class AbstractCSVImporterCopyright © 2013–2015 Inra. All rights reserved.