Interface TmaPolicyStatementValidationStrategy

All Known Implementing Classes:
DefaultTmaPolicyStatementValidationStrategy

public interface TmaPolicyStatementValidationStrategy
Strategy used for evaluating TmaPolicyStatementModel.
Since:
6.7
  • Method Details

    • getApplicableContexts

      List<TmaPolicyContext> getApplicableContexts(TmaPolicyStatementModel statementModel, List<TmaPolicyContext> contexts)
      Returns the list of contexts for which the statement is valid
      Parameters:
      statementModel - the statement to be validated
      contexts - the contexts to be validated against
      Returns:
      the list of contexts for which the statement is valid
    • isStatementValid

      boolean isStatementValid(TmaPolicyStatementModel statementModel, List<TmaPolicyContext> contexts)
      Verifies if the statement is valid against the list of contexts
      Parameters:
      statementModel - the statement to be validated
      contexts - the contexts to be validated againnst
      Returns:
      true if the statement is valid against the contexts, otherwise false
    • validateStatement

      @Deprecated(since="1911", forRemoval=true) boolean validateStatement(TmaPolicyStatementModel statementModel, List<TmaPolicyContext> contexts)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1911. Use TmaPolicyStatementValidationStrategy#getApplicableContexts(TmaPolicyStatementModel, java.util .List) instead
      Validates a statement model against a list of product offerings parameters.
      Parameters:
      statementModel - the given TmaPolicyStatementModel to be validated
      contexts - product offerings parameters
      Returns:
      true if the statement is valid, false otherwise