Interface TmaPolicyStatementValidationStrategy
- All Known Implementing Classes:
DefaultTmaPolicyStatementValidationStrategy
public interface TmaPolicyStatementValidationStrategy
Strategy used for evaluating
TmaPolicyStatementModel.- Since:
- 6.7
-
Method Summary
Modifier and TypeMethodDescriptiongetApplicableContexts(TmaPolicyStatementModel statementModel, List<TmaPolicyContext> contexts) Returns the list of contexts for which the statement is validbooleanisStatementValid(TmaPolicyStatementModel statementModel, List<TmaPolicyContext> contexts) Verifies if the statement is valid against the list of contextsbooleanvalidateStatement(TmaPolicyStatementModel statementModel, List<TmaPolicyContext> contexts) Deprecated, for removal: This API element is subject to removal in a future version.since 1911.
-
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 validatedcontexts- the contexts to be validated against- Returns:
- the list of contexts for which the statement is valid
-
isStatementValid
Verifies if the statement is valid against the list of contexts- Parameters:
statementModel- the statement to be validatedcontexts- 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) insteadValidates a statement model against a list of product offerings parameters.- Parameters:
statementModel- the givenTmaPolicyStatementModelto be validatedcontexts- product offerings parameters- Returns:
- true if the statement is valid, false otherwise
-