public interface PlotService extends AgrosystService
| Modifier and Type | Method and Description |
|---|---|
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)
Create or update the plot
|
Plot |
duplicatePlot(String topiaId)
Duplicate given plot topia id and return duplicated plot topia id.
|
InputStream |
exportPlotsAsXlsStream(List<String> plotIds)
Export selected effective plots id as excel sheet.
|
Plot |
extendPlot(ExtendContext extendContext,
Domain clonedDomain,
Plot plot)
Duplicate plot for extend domain process.
|
List<Plot> |
findAllByDomain(Domain domain)
Find all plot for a specific domain.
|
List<Plot> |
findAllByGrowingSystem(GrowingSystem growingSystem)
Find all plots for a specific growing system.
|
List<Plot> |
findAllFreeAndGrowingSystemPlots(GrowingSystem growingSystem,
String growingPlanId)
Find all free plot and plots linked to current system.
|
List<Plot> |
getAllGrowingSystemPlot(GrowingSystem growingSystem)
return plots that target the given growingSystem
|
List<Plot> |
getFreePlotForGrowingPlan(String growingPlanTopiaId)
Retourne les parcelles libres (non affectée à un système de culture) liées au dispositif
choisit.
|
Plot |
getPlot(String plotTopiaId)
Return the plot with reference, the given TopiaId key.
|
List<MeasurementSession> |
getPlotMeasurementSessions(String plotTopiaId)
Retourne la liste des observations et mesures associées à la parcelle.
|
List<PlotDto> |
getPlots(Collection<String> plotIds) |
List<Zone> |
getPlotZones(Plot plot)
Find all plot's zone.
|
LinkedHashMap<Integer,String> |
getRelatedPlots(String plotCode)
Get all plots related to given code.
|
LinkedHashMap<Integer,String> |
getRelatedZones(String zoneCode)
Get all zones related to given code.
|
UsageList<Zone> |
getZonesAndUsages(String plotTopiaId)
Get zones with map of plot's zones topiaIds with boolean set to true, if zone is used or not into the soft.
|
List<Zone> |
getZonesWithoutCycle(String zoneId)
Retourne la liste des autres zones attachées au domaine de la zone dont l'identifiant
et l'identifiant de zone passée en paramètre.
|
void |
importPlotsForXlsStream(InputStream is)
Import effective plots from stream.
|
void |
importPZ0Plots(Map<Class,ImportResults> allResults)
Plot PZ0 import
|
Plot |
mergePlots(List<String> plotTopiaIds)
Merge given plot id into a single plot.
|
Plot |
unactivatePlot(String plotTopiaId,
boolean activate)
Unactivate plot and return unactivated plot.
|
void |
updatePlotsGrowingSystemRelationship(GrowingSystem growingSystem,
Collection<String> plotIds)
Update Plots relationship with a growingSystem
|
boolean |
validMergingPlots(List<String> plotTopiaIds) |
Plot getPlot(String plotTopiaId)
plotTopiaId - the Plots's TopiaIdPlot 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)
plot - the plot to savedomainId - the plot domain's idlocationId - RefLocation id, may be nullgrowingSystemId - Growing System id, may be nullselectedPlotZoningIds - all plotZonings, may be nullselectedSolId - Ground idselectedSurfaceTextureId - surface Texture id, may be nullselectedSubSoilTextureId - Sub soil texture id, may be nullselectedSolDepthId - sol Depth id from RefSolProfondeurIndigo, may be nullsolHorizons - plot all sol Horizon, may be nullzones - All plot'szones, at least one is requiredadjacentElementIds - all adjacent element ids, may be nullList<Plot> findAllByGrowingSystem(GrowingSystem growingSystem)
growingSystem - growing planList<Plot> findAllFreeAndGrowingSystemPlots(GrowingSystem growingSystem, String growingPlanId)
growingSystem - growing systemgrowingPlanId - growing plan idList<Plot> getFreePlotForGrowingPlan(String growingPlanTopiaId)
growingPlanTopiaId - growing plan idPlot extendPlot(ExtendContext extendContext, Domain clonedDomain, Plot plot)
extendContext - extend contextclonedDomain - domain to attache plot toplot - plotvoid updatePlotsGrowingSystemRelationship(GrowingSystem growingSystem, Collection<String> plotIds)
growingSystem - the growing systemplotIds - All plots TopiaIds related with the growingSystem.List<Plot> findAllByDomain(Domain domain)
domain - domainList<Zone> getPlotZones(Plot plot)
plot - plotUsageList<Zone> getZonesAndUsages(String plotTopiaId)
plotTopiaId - plot topia idLinkedHashMap<Integer,String> getRelatedPlots(String plotCode)
plotCode - plot codeLinkedHashMap<Integer,String> getRelatedZones(String zoneCode)
zoneCode - zone codePlot duplicatePlot(String topiaId)
topiaId - plot topia id to duplicatePlot unactivatePlot(String plotTopiaId, boolean activate)
plotTopiaId - plot id to unactivateactivate - activate or unactivate plotPlot mergePlots(List<String> plotTopiaIds)
plotTopiaIds - List<MeasurementSession> getPlotMeasurementSessions(String plotTopiaId)
plotTopiaId - plot topia idList<Zone> getZonesWithoutCycle(String zoneId)
zoneId - identifiant de la zoneList<PlotDto> getPlots(Collection<String> plotIds)
InputStream exportPlotsAsXlsStream(List<String> plotIds)
plotIds - zone idsvoid importPlotsForXlsStream(InputStream is)
is - input streamList<Plot> getAllGrowingSystemPlot(GrowingSystem growingSystem)
growingSystem - The growingSystem targeted bay the plotsvoid importPZ0Plots(Map<Class,ImportResults> allResults)
allResults - import parsing resultCopyright © 2013–2015 Inra. All rights reserved.