Interface TmaCompatibilityPolicyEvaluationStrategy
- All Known Implementing Classes:
DefaultTmaCompatibilityPolicyEvaluationStrategy
public interface TmaCompatibilityPolicyEvaluationStrategy
Strategy used for evaluating compatibility policies.
- Since:
- 6.7
-
Method Summary
Modifier and TypeMethodDescriptionevaluatePolicies(Set<TmaCompatibilityPolicyModel> policies, List<TmaPolicyContext> contexts) Evaluates a list ofTmaCompatibilityPolicyModelagainst a list of contexts and returns the evaluation results containing the actions to be performed and the contexts applicable for the actionsgetApplicablePolicies(List<TmaCompatibilityPolicyModel> policies, List<TmaPolicyContext> requestParams) Returns the list of policies having all conditions fulfilled.
-
Method Details
-
evaluatePolicies
Set<RuleEvaluationResult> evaluatePolicies(Set<TmaCompatibilityPolicyModel> policies, List<TmaPolicyContext> contexts) Evaluates a list ofTmaCompatibilityPolicyModelagainst 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 evaluatedcontexts- 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 evaluatedrequestParams- request parameters agains which the evaluation is made- Returns:
- a list of policies that have all conditions true
-