Interface TmaCompatibilityPolicyEvaluationStrategy

    • Method Detail

      • evaluatePolicies

        java.util.Set<RuleEvaluationResult> evaluatePolicies​(java.util.Set<TmaCompatibilityPolicyModel> policies,
                                                             java.util.List<TmaPolicyContext> contexts)
        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
      • 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.
        Evaluates a list of TmaCompatibilityPolicyModel against 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 evaluated
        contexts - 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.
        Evaluates a TmaCompatibilityPolicyModel against a set of product offerings parameters, returning the actions that are not fulfilled and have to pe performed.
        Parameters:
        compatibilityPolicy - policy to be evaluated
        productListParams - 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 evaluated
        requestParams - request parameters agains which the evaluation is made
        Returns:
        a list of policies that have all conditions true