public class InputImporter extends AbstractCSVImporter
| Modifier and Type | Field and Description |
|---|---|
protected ActionService |
actionService |
protected RefFertiMinUNIFATopiaDao |
mineralProductDao |
protected RefFertiOrgaTopiaDao |
organicProductDao |
protected RefActaTraitementsProduitTopiaDao |
phytoProductDao |
FIRST_LINE_NUMBER, pz0CodeToAgrosystCode, pz0IdToObject, pz0IdToRelatedObjectId, serviceContext, serviceFactory| Constructor and Description |
|---|
InputImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractInput |
getInput(InputImportDto from,
ImportResults importResults,
long line,
Boolean error) |
ImportResults |
importFromStream(InputStream is,
Map<String,EntityAndDependencies> entitiesByCsvId) |
void |
init(ServiceContext serviceContext) |
protected boolean |
validAction(ImportResults importResults,
AbstractInput input,
long line,
InputImportDto from,
Boolean error) |
protected AbstractAction |
validAndGetAction(String actionId,
String inputTypeName,
ImportResults importResults,
Long line,
boolean error) |
protected void |
validPhytoProductInput(PhytoProductInput input,
InputImportDto from,
ImportResults importResults,
long line,
boolean error) |
csvCodeToAgrosystCode, getPersistenceContext, getServiceFactoryprotected ActionService actionService
protected RefFertiMinUNIFATopiaDao mineralProductDao
protected RefActaTraitementsProduitTopiaDao phytoProductDao
protected RefFertiOrgaTopiaDao organicProductDao
public ImportResults importFromStream(InputStream is, Map<String,EntityAndDependencies> entitiesByCsvId)
protected void validPhytoProductInput(PhytoProductInput input, InputImportDto from, ImportResults importResults, long line, boolean error)
protected AbstractAction validAndGetAction(String actionId, String inputTypeName, ImportResults importResults, Long line, boolean error)
protected AbstractInput getInput(InputImportDto from, ImportResults importResults, long line, Boolean error)
protected boolean validAction(ImportResults importResults, AbstractInput input, long line, InputImportDto from, Boolean error)
public void init(ServiceContext serviceContext)
init in interface ICsvImporterinit in class AbstractCSVImporterCopyright © 2013–2015 Inra. All rights reserved.