Interface TmaCompatibilityPolicyEvaluationStrategy
-
- All Known Implementing Classes:
DefaultTmaCompatibilityPolicyEvaluationStrategy
public interface TmaCompatibilityPolicyEvaluationStrategyStrategy used for evaluating compatibility policies.- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<TmaPolicyActionModel>evaluateCompatibilityPolicies(java.util.Set<TmaCompatibilityPolicyModel> compatibilityPolicyModels, java.util.List<TmaPolicyContext> contexts)Deprecated, for removal: This API element is subject to removal in a future version.since 1911.java.util.List<TmaPolicyActionModel>evaluateCompatibilityPolicy(TmaCompatibilityPolicyModel compatibilityPolicy, java.util.List<TmaPolicyContext> productListParams)Deprecated, for removal: This API element is subject to removal in a future version.since 1907.java.util.Set<RuleEvaluationResult>evaluatePolicies(java.util.Set<TmaCompatibilityPolicyModel> policies, java.util.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 actionsjava.util.Set<TmaCompatibilityPolicyModel>getApplicablePolicies(java.util.List<TmaCompatibilityPolicyModel> policies, java.util.List<TmaPolicyContext> requestParams)Returns the list of policies having all conditions fulfilled.
-
-
-
Method Detail
-
evaluatePolicies
java.util.Set<RuleEvaluationResult> evaluatePolicies(java.util.Set<TmaCompatibilityPolicyModel> policies, java.util.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
-
evaluateCompatibilityPolicies
@Deprecated(since="1911", forRemoval=true) java.util.List<TmaPolicyActionModel> evaluateCompatibilityPolicies(java.util.Set<TmaCompatibilityPolicyModel> compatibilityPolicyModels, java.util.List<TmaPolicyContext> contexts)Deprecated, for removal: This API element is subject to removal in a future version.since 1911. Use insteadevaluatePolicies(java.util.Set, java.util.List)Evaluates a list ofTmaCompatibilityPolicyModelagainst a list of product offerings parameters and returns the list of actions that have to be performed for having all parameters compatible.- Parameters:
compatibilityPolicyModels- compatibility policies to be evaluatedcontexts- the list of input product offerings parameters- Returns:
- the list of invalid policy actions found during evaluation
-
evaluateCompatibilityPolicy
@Deprecated(since="1907", forRemoval=true) java.util.List<TmaPolicyActionModel> evaluateCompatibilityPolicy(TmaCompatibilityPolicyModel compatibilityPolicy, java.util.List<TmaPolicyContext> productListParams)Deprecated, for removal: This API element is subject to removal in a future version.since 1907. Use insteadevaluateCompatibilityPolicies(Set, List)Evaluates aTmaCompatibilityPolicyModelagainst a set of product offerings parameters, returning the actions that are not fulfilled and have to pe performed.- Parameters:
compatibilityPolicy- policy to be evaluatedproductListParams- product offerings parameters- Returns:
- return a list of invalid policy actions that have to be performed
-
getApplicablePolicies
java.util.Set<TmaCompatibilityPolicyModel> getApplicablePolicies(java.util.List<TmaCompatibilityPolicyModel> policies, java.util.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
-
-