Interface TmaCompatibilityPolicyEvaluationStrategy

All Known Implementing Classes:
DefaultTmaCompatibilityPolicyEvaluationStrategy

public interface TmaCompatibilityPolicyEvaluationStrategy
Strategy used for evaluating compatibility policies.
Since:
6.7
  • Method Details

    • evaluatePolicies

      Evaluates a list of TmaCompatibilityPolicyModel against a list of contexts and returns the evaluation results containing the actions to be performed and the contexts applicable for the actions
      Parameters:
      policies - policies to be evaluated
      contexts - the list of input contexts
      Returns:
      the results containing the actions to be performed and the contexts applicable for the actions
    • getApplicablePolicies

      Set<TmaCompatibilityPolicyModel> getApplicablePolicies(List<TmaCompatibilityPolicyModel> policies, List<TmaPolicyContext> requestParams)
      Returns the list of policies having all conditions fulfilled.
      Parameters:
      policies - the list of policies to be evaluated
      requestParams - request parameters agains which the evaluation is made
      Returns:
      a list of policies that have all conditions true