public class PlotServiceImpl extends AbstractAgrosystService implements PlotService
| Modifier and Type | Field and Description |
|---|---|
protected AnonymizeService |
anonymizeService |
protected BusinessAuthorizationService |
authorizationService |
protected DomainTopiaDao |
domainDao |
protected EntityUsageService |
entityUsageService |
protected static com.google.common.base.Function<Zone,String> |
GET_ZONE_CODE |
protected GrowingPlanTopiaDao |
growingPlanDao |
protected GrowingSystemTopiaDao |
growingSystemDao |
protected RefLocationTopiaDao |
locationDao |
protected MeasurementSessionTopiaDao |
measurementSessionDao |
protected RefParcelleZonageEDITopiaDao |
parcelleZonageEDIDao |
static String |
PLOT_DEFAULT_ZONE_NAME
Nom de la zone principale créée automatiquement.
|
protected PlotTopiaDao |
plotDao |
protected RefElementVoisinageTopiaDao |
refElementVoisinageDao |
protected RefSolProfondeurIndigoTopiaDao |
refSolProfondeurIndigoDao |
protected RefSolTextureGeppaTopiaDao |
refSolTextureGeppaDao |
protected GroundTopiaDao |
solDao |
protected SolHorizonTopiaDao |
solHorizonDao |
protected ZoneTopiaDao |
zoneDao |
context__PARANAMER_DATA| Constructor and Description |
|---|
PlotServiceImpl() |
easyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextpublic static final String PLOT_DEFAULT_ZONE_NAME
protected AnonymizeService anonymizeService
protected BusinessAuthorizationService authorizationService
protected EntityUsageService entityUsageService
protected PlotTopiaDao plotDao
protected RefLocationTopiaDao locationDao
protected DomainTopiaDao domainDao
protected RefParcelleZonageEDITopiaDao parcelleZonageEDIDao
protected GrowingSystemTopiaDao growingSystemDao
protected RefSolTextureGeppaTopiaDao refSolTextureGeppaDao
protected GroundTopiaDao solDao
protected RefSolProfondeurIndigoTopiaDao refSolProfondeurIndigoDao
protected SolHorizonTopiaDao solHorizonDao
protected ZoneTopiaDao zoneDao
protected GrowingPlanTopiaDao growingPlanDao
protected RefElementVoisinageTopiaDao refElementVoisinageDao
protected MeasurementSessionTopiaDao measurementSessionDao
public void setEntityUsageService(EntityUsageService entityUsageService)
public void setAnonymizeService(AnonymizeService anonymizeService)
public void setAuthorizationService(BusinessAuthorizationService authorizationService)
public void setPlotDao(PlotTopiaDao plotDao)
public void setLocationDao(RefLocationTopiaDao locationDao)
public void setDomainDao(DomainTopiaDao domainDao)
public void setParcelleZonageEDIDao(RefParcelleZonageEDITopiaDao parcelleZonageEDIDao)
public void setGrowingSystemDao(GrowingSystemTopiaDao growingSystemDao)
public void setRefSolTextureGeppaDao(RefSolTextureGeppaTopiaDao refSolTextureGeppaDao)
public void setSolDao(GroundTopiaDao solDao)
public void setRefSolProfondeurIndigoDao(RefSolProfondeurIndigoTopiaDao refSolProfondeurIndigoDao)
public void setSolHorizonDao(SolHorizonTopiaDao solHorizonDao)
public void setZoneDao(ZoneTopiaDao zoneDao)
public void setGrowingPlanDao(GrowingPlanTopiaDao growingPlanDao)
public void setRefElementVoisinageDao(RefElementVoisinageTopiaDao refElementVoisinageDao)
public void setMeasurementSessionDao(MeasurementSessionTopiaDao measurementSessionDao)
public Plot getPlot(String plotTopiaId)
getPlot in interface PlotServicepublic Plot createOrUpdatePlot(Plot plot, String domainId, String locationId, String growingSystemId, Collection<String> selectedPlotZoningIds, String selectedSolId, String selectedSurfaceTextureId, String selectedSubSoilTextureId, String selectedSolDepthId, List<SolHorizonDto> solHorizons, Collection<Zone> zones, List<String> adjacentElementIds)
createOrUpdatePlot in interface PlotServiceprotected Plot createOrUpdatePlotWithoutCommit(Plot plot, String domainId, String locationId, String growingSystemId, Collection<String> selectedPlotZoningIds, String selectedSolId, String selectedSurfaceTextureId, String selectedSubSoilTextureId, String selectedSolDepthId, List<SolHorizonDto> solHorizons, Collection<Zone> zones, List<String> adjacentElementIds)
protected void validPlotPreconditions(Plot plot, String domainId, String locationId, Collection<Zone> zones)
protected Plot doCreateOrUpdatePlot(Plot plot, String domainId, String locationId, String growingSystemId, Collection<String> selectedPlotZoningIds, String selectedSolId, String selectedSurfaceTextureId, String selectedSubSoilTextureId, String selectedSolDepthId, List<SolHorizonDto> solHorizons, Collection<Zone> zones, List<String> adjacentElementIds)
protected void addZoningsEntities(Plot plot, Collection<String> selectedPlotZoningIds)
protected RefSolTextureGeppa getRefSolTextureGeppa(String selectedSubSoilTextureId)
protected void addPlotSolProfondeurIndigo(Plot plot, String selectedSolDepthId)
protected void persistPlotSolHorizons(Plot plot, List<SolHorizonDto> solHorizons)
protected void addPlotAdjacentElements(Plot plot, List<String> adjacentElementIds)
protected void persistPlotZones(Plot plot, Collection<Zone> zones, Plot result)
public void updatePlotsGrowingSystemRelationship(GrowingSystem growingSystem, Collection<String> plotIds)
updatePlotsGrowingSystemRelationship in interface PlotServicepublic List<Plot> findAllByGrowingSystem(GrowingSystem growingSystem)
findAllByGrowingSystem in interface PlotServicepublic List<Plot> findAllFreeAndGrowingSystemPlots(GrowingSystem growingSystem, String growingPlanTopiaId)
findAllFreeAndGrowingSystemPlots in interface PlotServicepublic List<Plot> getFreePlotForGrowingPlan(String growingPlanTopiaId)
getFreePlotForGrowingPlan in interface PlotServicepublic LinkedHashMap<Integer,String> getRelatedPlots(String plotCode)
getRelatedPlots in interface PlotServicepublic LinkedHashMap<Integer,String> getRelatedZones(String zoneCode)
getRelatedZones in interface PlotServicepublic boolean validMergingPlots(List<String> plotTopiaIds)
validMergingPlots in interface PlotServicepublic Plot mergePlots(List<String> plotTopiaIds)
mergePlots in interface PlotServicepublic Plot duplicatePlot(String topiaId)
duplicatePlot in interface PlotServicepublic Plot extendPlot(ExtendContext extendContext, Domain clonedDomain, Plot plot)
extendPlot in interface PlotServicepublic List<Plot> findAllByDomain(Domain domain)
findAllByDomain in interface PlotServicepublic List<Zone> getPlotZones(Plot plot)
getPlotZones in interface PlotServicepublic List<MeasurementSession> getPlotMeasurementSessions(String plotTopiaId)
getPlotMeasurementSessions in interface PlotServicepublic UsageList<Zone> getZonesAndUsages(String plotTopiaId)
getZonesAndUsages in interface PlotServicepublic Plot unactivatePlot(String plotTopiaId, boolean activate)
unactivatePlot in interface PlotServicepublic List<Zone> getZonesWithoutCycle(String zoneId)
getZonesWithoutCycle in interface PlotServicepublic List<PlotDto> getPlots(Collection<String> plotIds)
getPlots in interface PlotServicepublic InputStream exportPlotsAsXlsStream(List<String> plotIds)
exportPlotsAsXlsStream in interface PlotServicepublic void importPlotsForXlsStream(InputStream is)
importPlotsForXlsStream in interface PlotServicepublic List<Plot> getAllGrowingSystemPlot(GrowingSystem growingSystem)
getAllGrowingSystemPlot in interface PlotServicepublic void importPZ0Plots(Map<Class,ImportResults> allResults)
importPZ0Plots in interface PlotServiceCopyright © 2013–2015 Inra. All rights reserved.