Interface TmaBpoCardinalityService

All Known Implementing Classes:
DefaultTmaBpoCardinalityService

public interface TmaBpoCardinalityService
Service for operations related to the TmaBundledProdOfferOptionModel.
Since:
2011
  • Method Details

    • verifyCardinality

      @Deprecated(since="2102") List<String> verifyCardinality(AbstractOrderModel abstractOrder, EntryGroup entryGroup)
      Deprecated.
      Validated the cardinality rules for the provided entry group.
      Parameters:
      abstractOrder - The cart or order
      entryGroup - 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.
      Validates 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

      boolean validate(TmaBundledProdOfferOptionModel cardinalityRule, long quantity)
      Checks if provided quantity meets the requirements of the cardinality rule.
      Parameters:
      cardinalityRule - The bundled product offering rule
      quantity - 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 option
      productOffering - The product Offering
      Returns:
      The validation message
    • updateCardinalityValidationMessages

      @Deprecated(since="2102") void updateCardinalityValidationMessages(AbstractOrderModel abstractOrder, EntryGroup entryGroup, List<String> validationMessages)
      Updates the cardinality validation messages on the entry group with the provided messages.
      Parameters:
      abstractOrder - The cart or order
      entryGroup - The entry group
      validationMessages - 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 entry
      validationMessages - 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 offering
      children - 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