Interface TmaCompatibilityPolicyEngine
-
- All Known Implementing Classes:
DefaultTmaCompatibilityPolicyEngine
public interface TmaCompatibilityPolicyEngineService responsible for verifying if a list of several product offerings are eligible to be bought together from compatibility policies point of view.- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<TmaPolicyActionModel>getInvalidCompatibilityPolicies(java.util.List<TmaPolicyContext> contexts)Deprecated, for removal: This API element is subject to removal in a future version.since 1907.voidverifyCompatibilityPolicies(AbstractOrderModel orderModel, EntryGroup entryGroup)Verifies compatibility policies identified for the product offerings within a given entry group from an order.voidverifyCompatibilityPoliciesForStandaloneProducts(AbstractOrderModel orderModel)Verifies compatibility policies identified for all standalone products from the cart.
-
-
-
Method Detail
-
getInvalidCompatibilityPolicies
@Deprecated(since="1907", forRemoval=true) java.util.List<TmaPolicyActionModel> getInvalidCompatibilityPolicies(java.util.List<TmaPolicyContext> contexts)Deprecated, for removal: This API element is subject to removal in a future version.since 1907. Use insteadTmaPolicyEngine.findPolicies(List, Set)Verifies the compatibility policies found for a list of product offerings and returns the ones that are invalid. Policies considered during evaluation are the ones that have conditions corresponding to given request parameters together with the ones without conditions but with actions corresponding to request parameters.- Parameters:
contexts- list containing the details for the product offerings to ve verified (product offering, product offering group, quantity)- Returns:
- returns the list of invalid policy statements
-
verifyCompatibilityPolicies
void verifyCompatibilityPolicies(AbstractOrderModel orderModel, EntryGroup entryGroup)
Verifies compatibility policies identified for the product offerings within a given entry group from an order. In case of any invalid compatibility policy found, the actions are applied by either setting an error message on the entry group or adding a new auto picked entry.- Parameters:
orderModel- the current orderentryGroup- the group whose product offerings entries are verified
-
verifyCompatibilityPoliciesForStandaloneProducts
void verifyCompatibilityPoliciesForStandaloneProducts(AbstractOrderModel orderModel)
Verifies compatibility policies identified for all standalone products from the cart. In case of any invalid compatibility policy found, the actions are applied by either setting an error message on cart or by adding a new auto picked entry.- Parameters:
orderModel- the current order
-
-