public interface PracticedSystemService extends AgrosystService
| Modifier and Type | Method and Description |
|---|---|
PracticedSystem |
createOrUpdatePracticedSystem(PracticedSystem practicedSystem,
List<PracticedPerennialCropCycleDto> practicedPerennialCropCycleDtos,
List<PracticedSeasonalCropCycleDto> practicedSeasonalCropCycleDtos,
List<Price> prices)
Create or update practicedPerennialCropCycle.
|
PracticedSystem |
duplicatePracticedSystem(String practicedSystemId,
String growingSystemId)
Duplicate practiced system with id practicedSystemId on the target growing system with id the growingSystemId given has parameter.
|
InputStream |
exportPracticedSystemsAsXlsStream(List<String> effectiveCropCycleIds)
Export cycle
|
List<PracticedPerennialCropCycleDto> |
getAllPracticedPerennialCropCycles(String practicedSystemId)
Return All practicedPerennialCropCycle related to the PracticedSystem
|
List<PracticedSeasonalCropCycleDto> |
getAllPracticedSeasonalCropCycles(String practicedSystemId)
Return All PracticedSeasonalCropCycle related to the PracticedSystem
|
List<String> |
getCropCodesFromDomainCodeForCampaigns(String domainCode,
String campaigns)
Return all Cropping Plan Entry code present on domains with same code as the given domainCode and for the given campaigns.
|
List<String> |
getCropCodesFromGrowingSystemIdForCampaigns(String growingSystemId,
String campaigns)
Return all Cropping Plan Entry code present on domain related to the growing system that match the given growing system id and for the given campaigns.
|
List<CropCycleModelDto> |
getCropCycleModel(String growingSystemId,
String campaigns,
boolean includeIntermediate,
boolean includeCropsFromInactiveDomains)
Retourne les modeles des cultures principales (sans les cultures intermédiaires) du système de culture passé en paramètre
et pour les campagnes passée en paramètres.
|
Map<CropCycleModelDto,List<CroppingPlanSpeciesDto>> |
getCropCycleModelMap(String growingSystemId,
String campaigns,
boolean includeIntermediate,
boolean includeCropsFromInactiveDomains)
Retourne les modeles des cultures.
|
List<PracticedCropCycleSpeciesDto> |
getCropCyclePerennialSpecies(String croppingPlanEntryCode,
PracticedPerennialCropCycle cycle,
String campaigns)
Méthode qui charge la liste des espèces disponibles pour le cycle passé en paramètre et remplit les Dto avec les
informations déjà saisie dans ce cycle
|
String |
getCroppingPlanEntryName(String croppingPlanEntryCode)
return the name of the cropping plan
|
String |
getdomainCode(String growingSystemId)
return the Domain code from the domain related to the growing system with id as growingSystemId
|
ResultList<PracticedSystem> |
getFilteredPracticedSystems(PracticedSystemFilter filter)
Return the list of Plots filtered according the given filter.
|
ResultList<PracticedSystemDto> |
getFilteredPracticedSystemsDto(PracticedSystemFilter filter)
Return a list of Plot's DTOs filtered according the given filter.
|
Map<PracticedCropCycleNodeDto,List<CroppingPlanSpeciesDto>> |
getNodes(String cycleId) |
PracticedPerennialCropCycle |
getPracticedPerennialCropCycle(String cycleId)
Return practicedPerennialCropCycle with the given cycleId
|
List<Price> |
getPracticedPrices(String practicedSystemId)
Loads the prices involved in the given practiced system ITK
|
PracticedSeasonalCropCycle |
getPracticedSeasonalCropCycle(String cycleId) |
PracticedSystem |
getPracticedSystem(String practicedSystemTopiaId)
Return the practicedSystem matching the given TopiaId key if null a new empty instance is created.
|
List<ToolsCouplingDto> |
getToolsCouplingModel(String growingSystemId,
String campaigns,
AgrosystInterventionType interventionType)
Create a list of toolsCouplingDto from the domain associated to the growing system and the selected campains that have the same interventionType.
|
List<String> |
getToolsCouplingsCodesFromDomainAndCampaigns(String domainCode,
String campaigns) |
List<String> |
getToolsCouplingsFromGrowingSystemAndCampaigns(String growingSystemId,
String campaigns) |
void |
importPZ0PracticedSystems(Map<Class,ImportResults> allResults)
Import practiced System from PZ0
|
void |
unactivatePracticedSystem(List<String> practicedSystemIds,
boolean activate)
Unactivate or reactivate the given practiced System
|
PracticedSystem |
validate(String practicedSystemId)
Set valid true to practiced system
|
PracticedSystem getPracticedSystem(String practicedSystemTopiaId)
practicedSystemTopiaId - the PracticedSystem's TopiaId can be nullResultList<PracticedSystem> getFilteredPracticedSystems(PracticedSystemFilter filter)
filter - the Plot filterResultList<PracticedSystemDto> getFilteredPracticedSystemsDto(PracticedSystemFilter filter)
filter - the Plot filterList<String> getToolsCouplingsFromGrowingSystemAndCampaigns(String growingSystemId, String campaigns)
List<String> getToolsCouplingsCodesFromDomainAndCampaigns(String domainCode, String campaigns)
domainCode - campaigns - List<String> getCropCodesFromGrowingSystemIdForCampaigns(String growingSystemId, String campaigns)
growingSystemId - the growing system's idcampaigns - the domain campaignsList<String> getCropCodesFromDomainCodeForCampaigns(String domainCode, String campaigns)
domainCode - domain's codecampaigns - domain's campaignsMap<CropCycleModelDto,List<CroppingPlanSpeciesDto>> getCropCycleModelMap(String growingSystemId, String campaigns, boolean includeIntermediate, boolean includeCropsFromInactiveDomains)
growingSystemId - campaigns - includeIntermediate - includeCropsFromInactiveDomains - List<CropCycleModelDto> getCropCycleModel(String growingSystemId, String campaigns, boolean includeIntermediate, boolean includeCropsFromInactiveDomains)
growingSystemId - Growing sytem identifiant'scampaigns - The growing system campain's.includeIntermediate - Shall intermediate cropping entry be included ?Map<PracticedCropCycleNodeDto,List<CroppingPlanSpeciesDto>> getNodes(String cycleId)
cycleId - The cycle id where node come fromPracticedSystem createOrUpdatePracticedSystem(PracticedSystem practicedSystem, List<PracticedPerennialCropCycleDto> practicedPerennialCropCycleDtos, List<PracticedSeasonalCropCycleDto> practicedSeasonalCropCycleDtos, List<Price> prices)
practicedSystem - The practicedPerennialCropCycle's PracticedSystempracticedPerennialCropCycleDtos - All the PracticedPerennialCropCycleDtospracticedSeasonalCropCycleDtos - All the PracticedSeasonalCropCycleDtoprices - The list of prices associated with this practicedSystemList<ToolsCouplingDto> getToolsCouplingModel(String growingSystemId, String campaigns, AgrosystInterventionType interventionType)
growingSystemId - Growing system id use to find tools couplingcampaigns - The growing system campain's.interventionType - The tools coupling required InterventionTypePracticedSeasonalCropCycle getPracticedSeasonalCropCycle(String cycleId)
cycleId - practicedSeasonalCropCycle id, if null a new instance is createdList<PracticedPerennialCropCycleDto> getAllPracticedPerennialCropCycles(String practicedSystemId)
practicedSystemId - the PracticedSystem's topiaId where to find the practicedPerennialCropCycleList<PracticedSeasonalCropCycleDto> getAllPracticedSeasonalCropCycles(String practicedSystemId)
practicedSystemId - the PracticedSystem's topiaId where to find the PracticedSeasonalCropCycleList<PracticedCropCycleSpeciesDto> getCropCyclePerennialSpecies(String croppingPlanEntryCode, PracticedPerennialCropCycle cycle, String campaigns)
croppingPlanEntryCode - l'identifiant de la culture à traitercycle - le cycle pérennecampaigns - la liste des campagnes concernées (issues du système synthétisé)String getCroppingPlanEntryName(String croppingPlanEntryCode)
croppingPlanEntryCode - the cropping plan's code, if null a new instance is created but not persisted yedPracticedPerennialCropCycle getPracticedPerennialCropCycle(String cycleId)
cycleId - if of cycleList<Price> getPracticedPrices(String practicedSystemId)
practicedSystemId - the identifier of the practiced system it is aboutPracticedSystem duplicatePracticedSystem(String practicedSystemId, String growingSystemId)
practicedSystemId - practiced system idgrowingSystemId - void unactivatePracticedSystem(List<String> practicedSystemIds, boolean activate)
practicedSystemIds - : Practiced System topiaId to unactivate/reactivateactivate - : if "true", reactivate practiced systems, else unactivate.String getdomainCode(String growingSystemId)
growingSystemId - growing system IdPracticedSystem validate(String practicedSystemId)
practicedSystemId - The practiced system id to validInputStream exportPracticedSystemsAsXlsStream(List<String> effectiveCropCycleIds)
effectiveCropCycleIds - cycle id's to exportvoid importPZ0PracticedSystems(Map<Class,ImportResults> allResults)
allResults - imported data from PZ0 witch include practiced systemsCopyright © 2013–2015 Inra. All rights reserved.