Class AbstractTmaPolicyStatementValidator
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.compatibility.validators.AbstractTmaPolicyStatementValidator
-
- Direct Known Subclasses:
TmaConfigurablePscvPolicyStatementValidator,TmaPoChecklistPolicyStatementValidator,TmaPoGroupStatementValidator,TmaPoStatementValidator,TmaProcessTypesStatementValidator,TmaProductSpecificationStatementValidator,TmaPsChecklistPolicyStatementValidator,TmaPscvStatementValidator,TmaRemainingCommittedPeriodStatementValidator,TmaSubscribedPoStatementValidator
public abstract class AbstractTmaPolicyStatementValidator extends java.lang.ObjectValidator responsible for validatingTmaPolicyStatementModel.- Since:
- 6.7
-
-
Constructor Summary
Constructors Constructor Description AbstractTmaPolicyStatementValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleancheckQuantity(java.lang.Integer quantity, java.lang.Integer min, java.lang.Integer max)Checks if the given quantity is between the min and max limits.abstract java.util.List<TmaPolicyContext>retrieveApplicableContexts(TmaPolicyStatementModel statement, java.util.List<TmaPolicyContext> contexts)Returns the list of contexts for which the statement is valid againstbooleanvalidatePolicyStatement(TmaPolicyStatementModel statement, java.util.List<TmaPolicyContext> contexts)Deprecated, for removal: This API element is subject to removal in a future version.since 1911.
-
-
-
Method Detail
-
validatePolicyStatement
@Deprecated(since="1911", forRemoval=true) public boolean validatePolicyStatement(TmaPolicyStatementModel statement, java.util.List<TmaPolicyContext> contexts)Deprecated, for removal: This API element is subject to removal in a future version.since 1911. Use insteadretrieveApplicableContexts(TmaPolicyStatementModel, List)Validates aTmaPolicyStatementModelagainst a set of product offerings parameters.- Parameters:
statement- compatibility policy statementcontexts- product offerings parameters considered for validation- Returns:
- true if the statement is valid for the product offerings list, false otherwise
-
retrieveApplicableContexts
public abstract java.util.List<TmaPolicyContext> retrieveApplicableContexts(TmaPolicyStatementModel statement, java.util.List<TmaPolicyContext> contexts)
Returns the list of contexts for which the statement is valid against- Parameters:
statement- the statement to be validatedcontexts- the contexts to be validated against- Returns:
- the list of contexts for which the statement is valid against
-
checkQuantity
protected boolean checkQuantity(java.lang.Integer quantity, java.lang.Integer min, java.lang.Integer max)Checks if the given quantity is between the min and max limits.- Parameters:
quantity- quantity to be verifiedmin- minimum limitmax- maximum limit- Returns:
- true if the number is between min and max, false otherwise
-
-