public class DemoDatas extends AbstractAgrosystService
context__PARANAMER_DATA| Constructor and Description |
|---|
DemoDatas() |
easyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextprotected static final int DEMO_DOMAINS_COUNT
protected static final int DEMO_PRACTICED_SYSTEMS_COUNT
public static final List<CroppingEntryType> CROPPING_ENTRY_TYPES
protected static final String LOREM_IPSUM_SOURCE
protected static final com.google.common.base.Predicate<Network> SDC_COMPLIANT_NETWORKS
protected final List<RefVarieteGeves> varieteGeveses
protected final List<RefVarietePlantGrape> varietePlantGrapes
protected final List<RefSolArvalis> solArvalis
protected final List<RefMateriel> refMateriel
protected final List<RefFertiMinUNIFA> fertiMinUnifa
protected final Map<AgrosystInterventionType,List<RefInterventionAgrosystTravailEDI>> interventionsTravailEDI
protected final List<RefFertiEngraisorg> fertiEngraisorg
protected ImportService importService
protected DomainService domainService
protected EffectiveCropCycleService effectiveCropCycleService
protected PracticedSystemService practicedSystemService
protected NetworkService networkService
protected AuthenticationService authenticationService
protected Random random
public static void onInit(AgrosystServiceConfig serviceConfig)
protected static com.google.common.base.Supplier<AgrosystTopiaPersistenceContext> getAgrosystTopiaPersistenceContextSupplier(AgrosystServiceConfig serviceConfig)
public void setImportService(ImportService importService)
public void setDomainService(DomainService domainService)
public void setEffectiveCropCycleService(EffectiveCropCycleService effectiveCropCycleService)
public void setPracticedSystemService(PracticedSystemService practicedSystemService)
public void setNetworkService(NetworkService networkService)
public void setAuthenticationService(AuthenticationService authenticationService)
protected int randomInt(int max)
protected int randomInt(int min,
int max)
protected double randomDouble(double max)
protected double randomDouble(double min,
double max)
protected double randomDouble(double min,
double max,
int round)
protected <T> T randomElem(List<T> list)
protected <T> T randomEnum(T[] values)
public void checkForDemoReferentials()
public void checkForBuiltinUsers()
public void checkForDemoDatas()
protected void createPlots(Domain domain)
protected void createBrodcastInfoMessage()
protected void createPlots(Domain domain, String name, Double area, Integer pacIlotNumber, Double latitude, Double longitude, String comment, GrowingSystem growingSystem, RefLocation location, MaxSlope maxSlope, BufferStrip bufferStrip, WaterFlowDistance waterFlowDistance, boolean active)
protected void createDemoUser(AgrosystUserTopiaDao userTopiaDao, String firstName, String lastName, String email, String org, String phone)
protected void createDemoUsers()
protected void promuteAdmins()
protected void promuteIsDataProcessors()
protected void promuteDomainResponsibles()
protected void promuteLutinsDomainResponsibles()
protected void promuteGrowingPlanResponsibles()
protected void promuteNetworkResponsibles()
protected void promuteGrowingSystemDataProcessors()
public void createDemoDomains()
protected void createCroppingPlan(Domain domain)
protected RefSolArvalis randomRefSolArvalis()
protected void createSolsArvalis(Domain domain)
protected RefMateriel randomRefMateriel()
protected void createMaterielAndTooling(Domain domain)
protected RefVarietePlantGrape randomVarietePlantGrape()
protected RefVarieteGeves randomVarieteGeves()
protected RefEspece randomEspece()
protected List<GrowingPlan> createGrowingPlans(Domain domain)
protected void createDemoNetworks()
protected void createGrowingSystems(Domain domain, GrowingPlan growingPlan)
protected void createDemoPracticedSystems()
protected void createDemoPracticedCropCycles(PracticedSystem practicedSystem)
protected void createDemoPracticedITK(PracticedSystem practicedSystem, PracticedCropCyclePhase phase, PracticedCropCycleConnection conn)
protected void createDemoInterventionCulturales()
protected void createDemoEffectiveInterventions(Zone zone, EffectiveCropCyclePhase phase, EffectiveCropCycleNode node)
protected void createDemoActions(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
protected RefFertiMinUNIFA randomFertiMinUNIFA()
protected RefFertiEngraisorg randomFertiEngraisorg()
protected RefInterventionAgrosystTravailEDI randomActionTravailEDI(AgrosystInterventionType interventionAgrosyst)
protected void createMineralFertilizersSpreadingAction(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
protected void createOrganicFertilizersSpreadingAction(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
protected void createMaintenancePruningVinesAction(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
protected void createIrrigationAction(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
protected void createTillageAction(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
protected void createOtherAction(PracticedIntervention practicedIntervention, EffectiveIntervention effectiveIntervention)
public void checkForDemoMateriels()
public void checkForDemoCommunes()
public void checkForDemoDepartments()
public void checkForDemoActaTraitementsProduits()
public void checkForDemoActaTraitementsProduitsCateg()
public void checkForDemoSolsArvalis()
public void checkForDemoStatutJuridique()
public void checkForDemoEspeces()
public void checkForDemoVarietesGeves()
public void checkForDemoVarietesPlantGrape()
public void checkForDemoClonesPlantGrape()
public void checkForDemoEspecesToVarietes()
public void checkForDemoOtex()
public void checkForDemoOrientationEdi()
public void checkForDemoInterventionAgrosysytTravailEdi()
public void checkForDemoTypeTravailEdi()
public void checkForDemoStadesEdi()
protected void checkForDemoSolProfondeurIndigo()
protected void checkForDemoSolCaracteristiquesIndigo()
protected void checkForDemoParcelleZonageEdi()
protected void checkForDemoSolTextureGeppa()
protected void checkForDemoUnitesEdi()
protected void checkForDemoFertiMinUNIFA()
protected void checkForDemoBioAgressors()
protected void checkForDemoRefFertiOrga()
protected void checkForDemoFertiEngraisOrg()
protected void checkForDemoStationMeteo()
protected void checkForDemoTypeAgriculture()
protected void checkForDemoIndicatorReferentials()
protected void checkForDemoMesureReferentials()
protected void checkForDemoSupportOrganeEdi()
protected void checkForDemoActaSubstanceActive()
protected void checkForDemoProtocoleVgObs()
protected void checkForDemoElementVoisinage()
protected void checkForDemoIphyReferentials()
protected void checkForDemoPhytoSubstanceActiveIphy()
protected void checkForDemoRcesoCaseGroundWater()
protected void checkForDemoRcesoFuzzySetGroundWater()
protected void checkForDemoRcesoRulesGroundWater()
protected void checkForDemoRcesuRunoffPotRulesParc()
protected void checkForDemoSaActaIphy()
protected void checkForDemoLienCulturesEdiActa()
protected void checkForDemoActaGroupeCultures()
protected void checkForDemoActaDosageSpc()
protected void checkForDemoTraitSdC()
protected void checkForDemoCouvSolPerenne()
protected void checkForDemoCultureEdiGroupeCouvSol()
protected void checkForDemoCouvSolAnnuelle()
protected void checkForDemoZoneClimatiqueIphy()
Copyright © 2013–2015 Inra. All rights reserved.