public class CliStarter extends Object
| Constructor and Description |
|---|
CliStarter(String dbConfigFilePath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInterventionDomainId(Map<Class,ImportResults> allResults) |
AgrosystTopiaPersistenceContext |
getPersistenceContext() |
protected ServiceContext |
getServiceContext() |
protected void |
importCroppingPlans(String croppingPlanFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importCroppingPlanSpecies(String croppingPlanSpeciesFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importDomains(String domainFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importEquipments(String equipmentFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importEquipmentToToolCoupling(String equipmentToToolCouplingFilePath,
Map<Class,ImportResults> allResults,
ImportResults toolsCouplingsImportResults) |
protected void |
importGrowingPlans(String growingPlanFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importGrowingSystems(String growingSystemFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importPracticedPlots(String practicedPlotFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importPracticedSystems(String practicedSystemFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importToolsCouplingMainsActions(String mainsActionsToolCouplingFilePath,
Map<Class,ImportResults> allResults,
ImportResults toolsCouplingsImportResults) |
protected void |
importToolsCouplings(String toolCouplingFilePath,
String equipmentToToolCouplingFilePath,
String mainActionToToolCouplingFilePath,
Map<Class,ImportResults> allResults) |
protected void |
init() |
protected boolean |
isImportErrors(Map<Class,ImportResults> allResults) |
static void |
main(String[] args) |
protected void |
processEntitiesPersistence(Map<Class,ImportResults> allResults) |
protected Map<Class,ImportResults> |
processImport() |
protected void |
processPzOCSVFilesParsing(Map<Class,ImportResults> allResults) |
void |
setDomainFilePath(String domainFilePath) |
void |
setGrowingPlanFilePath(String growingPlanFilePath) |
void |
setGrowingSystemFilePath(String growingSystemFilePath) |
protected void |
userAuthentication() |
protected void |
validPracticedCropCycle(Map<Class,ImportResults> allResults) |
protected void |
validToolsCouplingsEquipementsExists(ImportResults domainsImportResults) |
protected static final String LAUNCH_INFO
protected String dbConfigFilePath
protected ServiceFactory serviceFactory
protected AgrosystCliServiceContext serviceContext
protected DomainService domainService
protected GrowingSystemService growingSystemService
protected GrowingPlanService growingPlanService
protected PracticedSystemService practicedSystemService
protected PracticedPlotService practicedPlotService
protected String domainFilePath
protected String croppingPlanFilePath
protected String croppingPlanSpeciesFilePath
protected String equipmentFilePath
protected String toolCouplingFilePath
protected String equipmentToToolsCouplingFilePath
protected String mainActionToToolsCouplingFilePath
protected String growingPlanFilePath
protected String growingSystemFilePath
protected String practicedSystemFilePath
protected String practicedPlotFilePath
protected String practicedCropCycleFilePath
protected String practicedSeasonalCropCycleFilePath
protected String practicedCropCycleNodeFilePath
protected String practicedCropCycleConnectionFilePath
protected String practicedInterventionFilePath
protected String practiceInterventionToolsCouplingFilePath
protected String abstractActionFilePath
protected String seedingActionSpeciesFilePath
protected String harverstingYealdFilePath
protected String abstractInputFilePath
public CliStarter(String dbConfigFilePath)
protected void init()
public AgrosystTopiaPersistenceContext getPersistenceContext()
protected Map<Class,ImportResults> processImport()
protected void processPzOCSVFilesParsing(Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void validPracticedCropCycle(Map<Class,ImportResults> allResults)
protected void processEntitiesPersistence(Map<Class,ImportResults> allResults)
protected void addInterventionDomainId(Map<Class,ImportResults> allResults)
protected boolean isImportErrors(Map<Class,ImportResults> allResults)
protected void importDomains(String domainFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importCroppingPlans(String croppingPlanFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importCroppingPlanSpecies(String croppingPlanSpeciesFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importEquipments(String equipmentFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importToolsCouplings(String toolCouplingFilePath, String equipmentToToolCouplingFilePath, String mainActionToToolCouplingFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void validToolsCouplingsEquipementsExists(ImportResults domainsImportResults)
protected void importEquipmentToToolCoupling(String equipmentToToolCouplingFilePath, Map<Class,ImportResults> allResults, ImportResults toolsCouplingsImportResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importToolsCouplingMainsActions(String mainsActionsToolCouplingFilePath, Map<Class,ImportResults> allResults, ImportResults toolsCouplingsImportResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importGrowingPlans(String growingPlanFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importGrowingSystems(String growingSystemFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importPracticedSystems(String practicedSystemFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importPracticedPlots(String practicedPlotFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionpublic static void main(String[] args)
args - Optional Parameter: config file path (if null 'agrosyst-import.properties' will be used)protected void userAuthentication()
public void setDomainFilePath(String domainFilePath)
public void setGrowingPlanFilePath(String growingPlanFilePath)
public void setGrowingSystemFilePath(String growingSystemFilePath)
protected ServiceContext getServiceContext()
Copyright © 2013–2015 Inra. All rights reserved.