public class SeedingActionSpeciesImporter extends AbstractCSVImporter
agrosystCodeToPz0Code, domainCodeCampaignCropCode, domainCodeCampaignTCCode, effectiveCropCycleAndDependenciesByZone, FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0CodeToObject, pz0IdToObject, pz0IdToRelatedObjectId, serviceContext, serviceFactory| Constructor and Description |
|---|
SeedingActionSpeciesImporter() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Function<SeedingActionSpecies,String> |
getSeedingActionSpeciesAgrosystSpeciesCode() |
protected org.apache.commons.lang3.tuple.Pair<String,Set<String>> |
getSpeciesCodesFromSeedingAction(SeedingActionSpeciesImportDto from) |
ImportResults |
importFromStream(InputStream is,
Map<String,EntityAndDependencies> entitiesByCsvId) |
protected void |
setQuantity(SeedingActionSpeciesImportDto from) |
protected boolean |
validSeedingActionSpecies(ImportResults importResults,
long line,
SeedingActionSpeciesImportDto from,
boolean error) |
protected boolean |
validSeedingSpeciesAction(ImportResults importResults,
long line,
SeedingActionSpeciesImportDto from,
boolean error) |
protected boolean |
validSeedPlanUnit(ImportResults importResults,
long line,
SeedingActionSpeciesImportDto from,
boolean error) |
csvCodeToAgrosystCode, getDatePatternForInput, getDomainAndDependenciesForZone, getEffectiveCropCycleAndDependencies, getEffectiveCropCycleAndDependenciesByZone, getPersistenceContext, getPlotAndDependenciesForZone, getServiceFactory, getSolWaterPh, getSpeciesStadeCodes, initpublic ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> entitiesByCsvId)
protected boolean validSeedingSpeciesAction(ImportResults importResults, long line, SeedingActionSpeciesImportDto from, boolean error)
protected boolean validSeedingActionSpecies(ImportResults importResults, long line, SeedingActionSpeciesImportDto from, boolean error)
public static com.google.common.base.Function<SeedingActionSpecies,String> getSeedingActionSpeciesAgrosystSpeciesCode()
protected org.apache.commons.lang3.tuple.Pair<String,Set<String>> getSpeciesCodesFromSeedingAction(SeedingActionSpeciesImportDto from)
protected boolean validSeedPlanUnit(ImportResults importResults, long line, SeedingActionSpeciesImportDto from, boolean error)
protected void setQuantity(SeedingActionSpeciesImportDto from)
Copyright © 2013–2015 Inra. All rights reserved.