public class CliStarter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
croppingPlanFilePath |
protected String |
croppingPlanSpeciesFilePath |
protected String |
dbConfigFilePath |
protected String |
domainFilePath |
protected DomainService |
domainService |
protected String |
equipmentFilePath |
protected String |
equipmentToToolCouplingFilePath |
protected String |
growingPlanFilePath |
protected GrowingPlanService |
growingPlanService |
protected String |
growingSystemFilePath |
protected GrowingSystemService |
growingSystemService |
protected static String |
LAUNCH_INFO |
protected AgrosystCliServiceContext |
serviceContext |
protected ServiceFactory |
serviceFactory |
protected String |
toolCouplingFilePath |
| Constructor and Description |
|---|
CliStarter(String dbConfigFilePath) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected void |
importGrowingPlans(String growingPlanFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importGrowingSystems(String growingSystemFilePath,
Map<Class,ImportResults> allResults) |
protected void |
importToolsCouplings(String toolCouplingFilePath,
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 static final String LAUNCH_INFO
protected String dbConfigFilePath
protected ServiceFactory serviceFactory
protected AgrosystCliServiceContext serviceContext
protected DomainService domainService
protected GrowingSystemService growingSystemService
protected GrowingPlanService growingPlanService
protected String domainFilePath
protected String croppingPlanFilePath
protected String croppingPlanSpeciesFilePath
protected String equipmentFilePath
protected String toolCouplingFilePath
protected String equipmentToToolCouplingFilePath
protected String growingPlanFilePath
protected String growingSystemFilePath
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 processEntitiesPersistence(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, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importEquipmentToToolCoupling(String equipmentToToolCouplingFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importGrowingPlans(String growingPlanFilePath, Map<Class,ImportResults> allResults) throws FileNotFoundException
FileNotFoundExceptionprotected void importGrowingSystems(String growingSystemFilePath, 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–2014 Inra. All rights reserved.