Interface TmaPolicyEngine
- All Known Implementing Classes:
DefaultTmaPolicyEngine
public interface TmaPolicyEngine
Engine used to retrieve a list of
RuleEvaluationResult containing actions from valid policies and the list of
context necessary to apply the actions- Since:
- 1907
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyActions(Set<RuleEvaluationResult> ruleEvaluationResults) Apply each action from the results received as inputfindPolicies(List<TmaPolicyContext> contexts, Set<TmaCompatibilityPolicyActionType> actionTypes) Retrieves a list of rule evaluation results, each result having an action to be applied and the list of contexts needed for the action to be applied
-
Method Details
-
findPolicies
Set<RuleEvaluationResult> findPolicies(List<TmaPolicyContext> contexts, Set<TmaCompatibilityPolicyActionType> actionTypes) Retrieves a list of rule evaluation results, each result having an action to be applied and the list of contexts needed for the action to be applied- Parameters:
contexts- the given contextsactionTypes- the given action types- Returns:
- a list of
RuleEvaluationResult
-
applyActions
Apply each action from the results received as input- Parameters:
ruleEvaluationResults- the results containing the actions to be applied
-