public interface ActionService extends AgrosystService
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_ACTION_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
Map<String,AbstractAction> |
createEffectiveInterventionActions(EffectiveIntervention intervention,
Collection<AbstractAction> actions,
Set<String> speciesCodes)
Create Actions related to the given EffectiveIntervention
|
Map<String,AbstractAction> |
createPracticedInterventionActions(PracticedIntervention intervention,
List<AbstractAction> actions,
Set<String> speciesCodes)
Create Actions related to the given PracticedIntervention
|
void |
duplicatePracticedActions(DuplicateCropCyclesContext duplicateContext,
PracticedIntervention practicedIntervention,
PracticedIntervention practicedInterventionClone)
Duplicate action as part of practiced intervention or effective intervention.
|
AbstractAction |
getClonedAbstractAction(AbstractAction originalAction)
Return same action as non persisted one
|
void |
migrateActionsSpeciesToTargetedSpecies(Collection<AbstractAction> actions,
Map<String,CroppingPlanSpecies> speciesByCode,
Map<String,String> fromSpeciesCodeToSpeciesCode)
migrate action species to targeted species.
|
Map<String,AbstractAction> |
updateEffectiveInterventionActions(EffectiveIntervention intervention,
Collection<AbstractAction> actions,
Set<String> speciesCodes)
Update Actions related to the given EffectiveIntervention
|
Map<String,AbstractAction> |
updatePracticedInterventionActions(PracticedIntervention intervention,
List<AbstractAction> actions,
Set<String> speciesCodes)
Update Actions related to the given PracticedIntervention
|
static final String NEW_ACTION_PREFIX
Map<String,AbstractAction> createPracticedInterventionActions(PracticedIntervention intervention, List<AbstractAction> actions, Set<String> speciesCodes)
actions - Actions related to the interventionintervention - the intervention to affect to the actionsspeciesCodes - intervention speciesMap<String,AbstractAction> updatePracticedInterventionActions(PracticedIntervention intervention, List<AbstractAction> actions, Set<String> speciesCodes)
actions - Actions related to the interventionintervention - the intervention to affect to the actionsspeciesCodes - intervention speciesMap<String,AbstractAction> createEffectiveInterventionActions(EffectiveIntervention intervention, Collection<AbstractAction> actions, Set<String> speciesCodes)
actions - Actions related to the interventionintervention - the intervention to affect to the actionsspeciesCodes - intervention speciesMap<String,AbstractAction> updateEffectiveInterventionActions(EffectiveIntervention intervention, Collection<AbstractAction> actions, Set<String> speciesCodes)
actions - Actions related to the interventionintervention - the intervention to affect to the actionsspeciesCodes - intervention speciesvoid duplicatePracticedActions(DuplicateCropCyclesContext duplicateContext, PracticedIntervention practicedIntervention, PracticedIntervention practicedInterventionClone)
duplicateContext - duplicate contextpracticedIntervention - practiced interventionpracticedInterventionClone - intervention to clone action toAbstractAction getClonedAbstractAction(AbstractAction originalAction)
originalAction - action to clonevoid migrateActionsSpeciesToTargetedSpecies(Collection<AbstractAction> actions, Map<String,CroppingPlanSpecies> speciesByCode, Map<String,String> fromSpeciesCodeToSpeciesCode)
actions - all actions to process migration treatment. If there are some ActionSpecies there species code will be change for new one if possiblespeciesByCode - species mapped with there codefromSpeciesCodeToSpeciesCode - species codes that can replace orginial one if not foundCopyright © 2013–2015 Inra. All rights reserved.