public class GrowingSystemImporter extends AbstractCSVImporter
| Modifier and Type | Field and Description |
|---|---|
protected DomainTopiaDao |
domainDao |
protected GrowingPlanTopiaDao |
growingPlanDao |
protected GrowingSystemService |
growingSystemService |
protected RefTypeAgricultureTopiaDao |
refTypeAgricultureDao |
agrosystCodeToPz0Code, domainCodeCampaignCropCode, domainCodeCampaignTCCode, effectiveCropCycleAndDependenciesByZone, FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0CodeToObject, pz0IdToObject, pz0IdToRelatedObjectId, 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 boolean |
excludeDupplicates(ImportResults importResults,
long line,
String csvId,
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 |
validDephyNumberAffiliation(ImportResults importResults,
long line,
GrowingSystemImportDto dto,
GrowingSystem growingSystem,
boolean error) |
protected boolean |
validGrowingPlanAffiliation(ImportResults importResults,
long line,
GrowingSystemImportDto dto,
GrowingSystem growingSystem,
boolean error) |
protected boolean |
validGrowingSystemCode(ImportResults importResults,
long line,
GrowingSystemImportDto dto,
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 |
validStartingDate(ImportResults importResults,
GrowingSystemImportDto dto,
long line,
Date startingDate,
boolean error) |
csvCodeToAgrosystCode, getDatePatternForInput, getDomainAndDependenciesForZone, getEffectiveCropCycleAndDependencies, getEffectiveCropCycleAndDependenciesByZone, getPersistenceContext, getPlotAndDependenciesForZone, getServiceFactory, getSolWaterPh, getSpeciesStadeCodesprotected GrowingSystemService growingSystemService
protected DomainTopiaDao domainDao
protected GrowingPlanTopiaDao growingPlanDao
protected RefTypeAgricultureTopiaDao refTypeAgricultureDao
public ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> growingPlansByCsvIds)
protected boolean excludeDupplicates(ImportResults importResults, long line, String csvId, boolean error)
protected boolean validStartingDate(ImportResults importResults, GrowingSystemImportDto dto, long line, Date startingDate, boolean error)
protected String getTypeAgricultureId(ImportResults importResults, long line, GrowingSystemImportDto dto, GrowingSystem growingSystem)
protected boolean validDephyNumberAffiliation(ImportResults importResults, long line, GrowingSystemImportDto dto, GrowingSystem growingSystem, boolean error)
protected boolean validGrowingPlanAffiliation(ImportResults importResults, long line, GrowingSystemImportDto dto, GrowingSystem growingSystem, boolean error)
protected boolean validGrowingSystemCode(ImportResults importResults, long line, GrowingSystemImportDto dto, 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.