Interface TmaCompatibilityPolicyEngine
- All Known Implementing Classes:
DefaultTmaCompatibilityPolicyEngine
public interface TmaCompatibilityPolicyEngine
Service 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
Modifier and TypeMethodDescriptionvoidverifyCompatibilityPolicies(AbstractOrderEntryModel entryModel, UserModel userModel) Verifies compatibility policies identified for the product offerings within provided entry and its children.voidverifyCompatibilityPolicies(AbstractOrderModel orderModel, EntryGroup entryGroup) Deprecated.voidVerifies compatibility policies identified for all standalone products from the cart.
-
Method Details
-
verifyCompatibilityPolicies
@Deprecated(since="2102") void verifyCompatibilityPolicies(AbstractOrderModel orderModel, EntryGroup entryGroup) Deprecated.since 2102 - useverifyCompatibilityPolicies(AbstractOrderEntryModel, UserModel)insteadVerifies 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
-
verifyCompatibilityPolicies
Verifies compatibility policies identified for the product offerings within provided entry and its children. 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:
entryModel- The entry which is verifieduserModel- The user
-
verifyCompatibilityPoliciesForStandaloneProducts
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
-
verifyCompatibilityPolicies(AbstractOrderEntryModel, UserModel)instead