Interface TmaBpoCardinalityService
- All Known Implementing Classes:
DefaultTmaBpoCardinalityService
public interface TmaBpoCardinalityService
Service for operations related to the
TmaBundledProdOfferOptionModel.- Since:
- 2011
-
Method Summary
Modifier and TypeMethodDescriptiongetValidationMessage(TmaBundledProdOfferOptionModel bundledProdOfferOption, TmaProductOfferingModel productOffering) Returns cardinality validation message for given Product Offering based on the details of the Bundled Product Offering Option.voidupdateCardinalityValidationMessages(AbstractOrderEntryModel entry, List<String> validationMessages) Updates the cardinality validation messages on the entry group with the provided messages.voidupdateCardinalityValidationMessages(AbstractOrderModel abstractOrder, EntryGroup entryGroup, List<String> validationMessages) Deprecated.booleanvalidate(TmaBundledProdOfferOptionModel cardinalityRule, long quantity) Checks if provided quantity meets the requirements of the cardinality rule.booleanverifyCardinality(TmaBundledProductOfferingModel bpo, Map<TmaProductOfferingModel, Integer> children) Verifies if bundled product offering's children have valid cardinalityValidated the cardinality rules for the provided entry.verifyCardinality(AbstractOrderModel abstractOrder) Deprecated.since 2102 - useverifyCardinality(AbstractOrderEntryModel)insteadverifyCardinality(AbstractOrderModel abstractOrder, EntryGroup entryGroup) Deprecated.since 2102 - useverifyCardinality(AbstractOrderEntryModel)insteadverifyCardinalityForOrder(AbstractOrderModel abstractOrder) Validates the cardinality rules for the provided abstract order.
-
Method Details
-
verifyCardinality
@Deprecated(since="2102") List<String> verifyCardinality(AbstractOrderModel abstractOrder, EntryGroup entryGroup) Deprecated.since 2102 - useverifyCardinality(AbstractOrderEntryModel)insteadValidated the cardinality rules for the provided entry group.- Parameters:
abstractOrder- The cart or orderentryGroup- The entry group- Returns:
- List of validation messages
-
verifyCardinality
Validated the cardinality rules for the provided entry.- Parameters:
entry- The entry- Returns:
- List of validation messages for the entries
-
verifyCardinality
@Deprecated(since="2102") Map<EntryGroup,List<String>> verifyCardinality(AbstractOrderModel abstractOrder) Deprecated.since 2102 - useverifyCardinality(AbstractOrderEntryModel)insteadValidates the cardinality rules for the provided abstract order.- Parameters:
abstractOrder- The cart or order
-
verifyCardinalityForOrder
Map<AbstractOrderEntryModel,List<String>> verifyCardinalityForOrder(AbstractOrderModel abstractOrder) Validates the cardinality rules for the provided abstract order.- Parameters:
abstractOrder- The cart or order- Returns:
- List of validation messages for the entry
-
validate
Checks if provided quantity meets the requirements of the cardinality rule.- Parameters:
cardinalityRule- The bundled product offering rulequantity- The product offering quantity- Returns:
- True if product offering fulfills the cardinality rules, otherwise false
-
getValidationMessage
String getValidationMessage(TmaBundledProdOfferOptionModel bundledProdOfferOption, TmaProductOfferingModel productOffering) Returns cardinality validation message for given Product Offering based on the details of the Bundled Product Offering Option.- Parameters:
bundledProdOfferOption- The bundled product offering optionproductOffering- The product Offering- Returns:
- The validation message
-
updateCardinalityValidationMessages
@Deprecated(since="2102") void updateCardinalityValidationMessages(AbstractOrderModel abstractOrder, EntryGroup entryGroup, List<String> validationMessages) Deprecated.since 2102 - useupdateCardinalityValidationMessages(AbstractOrderEntryModel, List String)insteadUpdates the cardinality validation messages on the entry group with the provided messages.- Parameters:
abstractOrder- The cart or orderentryGroup- The entry groupvalidationMessages- The validation messages
-
updateCardinalityValidationMessages
void updateCardinalityValidationMessages(AbstractOrderEntryModel entry, List<String> validationMessages) Updates the cardinality validation messages on the entry group with the provided messages.- Parameters:
entry- The entryvalidationMessages- The validation messages
-
verifyCardinality
boolean verifyCardinality(TmaBundledProductOfferingModel bpo, Map<TmaProductOfferingModel, Integer> children) Verifies if bundled product offering's children have valid cardinality- Parameters:
bpo- the bundled product offeringchildren- the children product offerings for which the cardinality should be fulfilled- Returns:
- true if all the children product offerings fulfills the cardinality rules, otherwise false
-
updateCardinalityValidationMessages(AbstractOrderEntryModel, List String)instead