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 Detail

      • findPolicies

        java.util.Set<RuleEvaluationResult> findPolicies​(java.util.List<TmaPolicyContext> contexts,
                                                         java.util.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 contexts
        actionTypes - the given action types
        Returns:
        a list of RuleEvaluationResult
      • applyActions

        void applyActions​(java.util.Set<RuleEvaluationResult> ruleEvaluationResults)
        Apply each action from the results received as input
        Parameters:
        ruleEvaluationResults - the results containing the actions to be applied