public interface ManagementModeService extends AgrosystService
| Modifier and Type | Method and Description |
|---|---|
ManagementMode |
copyManagementMode(String growingSystemId,
ManagementModeCategory category,
String mainChangesFromPlanned,
String changeReasonFromPlanned) |
DecisionRule |
createNewDecisionRule(AgrosystInterventionType interventionType,
String growingSystemTopiaId,
BioAgressorType bioAgressorType,
String bioAgressorTopiaId,
String croppingPlanEntryId,
String name)
Create decision rule with params given has parameters
|
DecisionRule |
createNewDecisonRuleVersion(String decisionRuleCode,
String versionReason) |
DecisionRule |
createOrUpdateDecisionRule(DecisionRule decisionRule,
String domainCode,
String croppingPlanEntryCode,
String bioAgressorTopiaId)
Update decision rule.
|
ManagementMode |
createOrUpdateManagementMode(ManagementMode managementMode,
String growingSystemTopiaId,
Collection<SectionDto> sections)
Update management mode.
|
DecisionRule |
duplicateDecisionRule(String decisionRuleIds) |
ManagementMode |
duplicateManagementModes(String plannedManagementModeTopiaId,
String observedManagementMode,
String duplicateManagementModeGrowingSystemId) |
InputStream |
exportDecisionRulesAsXlsStream(Collection<String> decisionRuleIds) |
InputStream |
exportManagementModesAsXlsStream(Collection<ManagementModeDto> managementModeDtos) |
ManagementMode |
extendManagementMode(ExtendContext extendContext,
ManagementMode managementMode,
GrowingSystem clonedGrowingSystem)
Extend management mode.
|
List<DecisionRule> |
getAllDecisionRules(List<String> decisionRulesIds)
return all decision Rules from topiaIds given as parameters
|
List<GrowingSystem> |
getAvailableGsForDuplication(String growingSystemId,
NavigationContext navigationContext) |
List<ManagementModeCategory> |
getAvailableManagementModeCategories(String growingSystemId)
Return the categories associated with the GrowingSystem with same topiaId as given in parameter.
|
<E extends RefBioAgressor> |
getBioAgressors(BioAgressorType bioAgressorType)
Find all agressor from specified type.
|
List<BioAgressorType> |
getBioAgressorTypes()
Get bio agressor types.
|
CroppingPlanEntry |
getCroppingPlanEntries(String croppingPlanEntryTopiaId) |
DecisionRule |
getDecisionRule(String decisionRuleTopiaId)
Find decision rule instance by id.
|
List<CroppingPlanEntry> |
getDomainCodeCroppingPlanEntries(String domainCode)
Find all cropping plan entries for domains with code as given in parameter
|
ResultList<DecisionRulesDto> |
getFilteredDecisionRules(DecisionRuleFilter filter)
Return the DecisionRules according the given filter.
|
ResultList<ManagementModeDto> |
getFilteredManagementModeDtos(ManagementModeFilter managementModeFilter)
Return the ManagementModes according the given filter.
|
List<CroppingPlanEntry> |
getGrowingSystemCroppingPlanEntries(String growingSystemTopiaId)
Find all cropping plan entries corresponding to
|
Collection<DecisionRule> |
getGrowingSystemDecisionRules(String growingSystemTopiaId)
Get growing system's decision rules.
|
List<GrowingSystem> |
getGrowingSystemsForManagementMode(NavigationContext navigationContext) |
DecisionRule |
getLastDecisionRuleVersion(String decisionRuleCode)
Return an exact copie of the rule
|
ManagementMode |
getManagementMode(String managementModeTopiaId)
Find management mode instance from id.
|
ManagementMode |
getManagementModeByGrowingSystem(GrowingSystem growingSystem)
Find management mode by growing system.
|
List<DecisionRule> |
getRelatedDecisionRules(String code)
Get decision rules version with his related rule's topidId liked to the given rule code
|
List<ManagementMode> |
getRelatedManagementModes(GrowingSystem growingSystem)
Return ManagementMode related to growingSystem given as parameter
|
DecisionRule |
newDecisionRule()
New decision rule instance.
|
ManagementMode |
newManagementMode()
Create new management mode instance for creation.
|
void |
unactivateDecisionRules(List<String> decisionRuleIds,
boolean activate) |
ResultList<DecisionRulesDto> getFilteredDecisionRules(DecisionRuleFilter filter)
filter - The DecisionRule filterDecisionRule newDecisionRule()
DecisionRule getDecisionRule(String decisionRuleTopiaId)
decisionRuleTopiaId - topia idDecisionRule getLastDecisionRuleVersion(String decisionRuleCode)
decisionRuleCode - the code of the ruleList<BioAgressorType> getBioAgressorTypes()
<E extends RefBioAgressor> List<E> getBioAgressors(BioAgressorType bioAgressorType)
bioAgressorType - bio agressor typeList<CroppingPlanEntry> getDomainCodeCroppingPlanEntries(String domainCode)
domainCode - List<CroppingPlanEntry> getGrowingSystemCroppingPlanEntries(String growingSystemTopiaId)
growingSystemTopiaId - growing system topia idCroppingPlanEntry getCroppingPlanEntries(String croppingPlanEntryTopiaId)
DecisionRule createOrUpdateDecisionRule(DecisionRule decisionRule, String domainCode, String croppingPlanEntryCode, String bioAgressorTopiaId)
decisionRule - domainCode - croppingPlanEntryCode - bioAgressorTopiaId - DecisionRule createNewDecisionRule(AgrosystInterventionType interventionType, String growingSystemTopiaId, BioAgressorType bioAgressorType, String bioAgressorTopiaId, String croppingPlanEntryId, String name)
interventionType - growingSystemTopiaId - bioAgressorType - croppingPlanEntryId - name - ResultList<ManagementModeDto> getFilteredManagementModeDtos(ManagementModeFilter managementModeFilter)
managementModeFilter - The ManagementMode filterManagementMode newManagementMode()
ManagementMode getManagementMode(String managementModeTopiaId)
managementModeTopiaId - topia idManagementMode createOrUpdateManagementMode(ManagementMode managementMode, String growingSystemTopiaId, Collection<SectionDto> sections)
managementMode - management mode to updategrowingSystemTopiaId - growing system idsections - section dtoCollection<DecisionRule> getGrowingSystemDecisionRules(String growingSystemTopiaId)
growingSystemTopiaId - growing system idManagementMode getManagementModeByGrowingSystem(GrowingSystem growingSystem)
growingSystem - growing systemManagementMode extendManagementMode(ExtendContext extendContext, ManagementMode managementMode, GrowingSystem clonedGrowingSystem)
extendContext - extend contextmanagementMode - management mode to cloneclonedGrowingSystem - clonedGrowingSystemList<DecisionRule> getRelatedDecisionRules(String code)
code - the rule codeDecisionRule createNewDecisonRuleVersion(String decisionRuleCode, String versionReason)
decisionRuleCode - the code of the source decisionRuleversionReason - the reason to create this new versionList<ManagementModeCategory> getAvailableManagementModeCategories(String growingSystemId)
growingSystemId - GrowingSystem topiaIdList<ManagementMode> getRelatedManagementModes(GrowingSystem growingSystem)
growingSystem - the GrowingSystem to witch ManagementModes or attachedManagementMode copyManagementMode(String growingSystemId, ManagementModeCategory category, String mainChangesFromPlanned, String changeReasonFromPlanned)
growingSystemId - category - List<GrowingSystem> getGrowingSystemsForManagementMode(NavigationContext navigationContext)
List<GrowingSystem> getAvailableGsForDuplication(String growingSystemId, NavigationContext navigationContext)
void unactivateDecisionRules(List<String> decisionRuleIds, boolean activate)
DecisionRule duplicateDecisionRule(String decisionRuleIds)
ManagementMode duplicateManagementModes(String plannedManagementModeTopiaId, String observedManagementMode, String duplicateManagementModeGrowingSystemId)
List<DecisionRule> getAllDecisionRules(List<String> decisionRulesIds)
decisionRulesIds - InputStream exportManagementModesAsXlsStream(Collection<ManagementModeDto> managementModeDtos)
InputStream exportDecisionRulesAsXlsStream(Collection<String> decisionRuleIds)
Copyright © 2013–2015 Inra. All rights reserved.