public class PracticedCropCycleNodeImporter extends AbstractCSVImporter
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_NODE |
agrosystCodeToPz0Code, domainCodeCampaignCropCode, domainCodeCampaignTCCode, effectiveCropCycleAndDependenciesByZone, FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0CodeToObject, pz0IdToObject, pz0IdToRelatedObjectId, serviceContext, serviceFactory| Constructor and Description |
|---|
PracticedCropCycleNodeImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNodeToCycle(PracticedCropCycleNodeImportDto dto,
PracticedCropCycleNodeDto cycleNodeDto) |
static DomainAndDependencies |
getDomainAndDependenciesFromNode(String practicedSeasonalCropCycleId) |
protected static PracticedSystemAndDependencies |
getPracticedSystemFromPracticedSeasonalCropId(String practicedSeasonalCropCycleId) |
static PracticedSystemAndDependencies |
getSeasonalCropCycleRelatedPracticedSystem(String practicedSeasonalCropCycleId) |
ImportResults |
importFromStream(InputStream is,
Map<String,EntityAndDependencies> entitiesByCsvId) |
protected boolean |
validNodeCrop(ImportResults importResults,
long line,
PracticedCropCycleNodeImportDto from,
PracticedCropCycleNodeDto to,
boolean error) |
protected boolean |
validSeasonalPracticedSystemAffiliationAndAddNodeToIt(ImportResults importResults,
long line,
PracticedCropCycleNodeImportDto from,
boolean error) |
csvCodeToAgrosystCode, getDatePatternForInput, getDomainAndDependenciesForZone, getEffectiveCropCycleAndDependencies, getEffectiveCropCycleAndDependenciesByZone, getPersistenceContext, getPlotAndDependenciesForZone, getServiceFactory, getSolWaterPh, getSpeciesStadeCodes, initpublic static final String NEW_NODE
public static DomainAndDependencies getDomainAndDependenciesFromNode(String practicedSeasonalCropCycleId)
public static PracticedSystemAndDependencies getSeasonalCropCycleRelatedPracticedSystem(String practicedSeasonalCropCycleId)
protected static PracticedSystemAndDependencies getPracticedSystemFromPracticedSeasonalCropId(String practicedSeasonalCropCycleId)
public ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> entitiesByCsvId)
protected boolean validSeasonalPracticedSystemAffiliationAndAddNodeToIt(ImportResults importResults, long line, PracticedCropCycleNodeImportDto from, boolean error)
protected void addNodeToCycle(PracticedCropCycleNodeImportDto dto, PracticedCropCycleNodeDto cycleNodeDto)
protected boolean validNodeCrop(ImportResults importResults, long line, PracticedCropCycleNodeImportDto from, PracticedCropCycleNodeDto to, boolean error)
Copyright © 2013–2015 Inra. All rights reserved.