Class OrderServiceExtensionManager

java.lang.Object
org.broadleafcommerce.common.extension.ExtensionManager<OrderServiceExtensionHandler>
org.broadleafcommerce.core.order.service.OrderServiceExtensionManager
All Implemented Interfaces:
InvocationHandler, org.broadleafcommerce.common.extension.ExtensionHandler, OrderServiceExtensionHandler

@Service("blOrderServiceExtensionManager") public class OrderServiceExtensionManager extends org.broadleafcommerce.common.extension.ExtensionManager<OrderServiceExtensionHandler> implements OrderServiceExtensionHandler
Author:
Andre Azzolini (apazzolini), bpolster
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     
    static final org.broadleafcommerce.common.extension.ExtensionManagerOperation
     

    Fields inherited from class org.broadleafcommerce.common.extension.ExtensionManager

    extensionHandler, handlers, handlersSorted, LOCK_OBJECT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    addOfferCodes(Order order, List<OfferCode> offerCodes, boolean priceOrder)
     
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    attachAdditionalDataToNewNamedCart(org.broadleafcommerce.profile.core.domain.Customer customer, Order cart)
     
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    attachAdditionalDataToOrder(Order order, boolean priceOrder)
    Can be used to attach or update fields must prior to saving an order.
    boolean
    By default,this extension manager will continue on handled allowing multiple handlers to interact with the order.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
    Retrieve an enhanced version of the cart for the customer.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer, Order candidateCart, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
    Retrieve an enhanced version of the cart for the customer.
    boolean
     
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    preValidateCartOperation(Order cart, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
     
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    preValidateUpdateQuantityOperation(Order cart, OrderItemRequestDTO dto, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
     

    Methods inherited from class org.broadleafcommerce.common.extension.ExtensionManager

    execute, getHandlers, getPriority, getProxy, invoke, registerHandler, setHandlers, shouldContinue, sortHandlers

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority
  • Field Details

    • attachAdditionalDataToNewNamedCart

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation attachAdditionalDataToNewNamedCart
    • preValidateCartOperation

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation preValidateCartOperation
    • preValidateUpdateQuantityOperation

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation preValidateUpdateQuantityOperation
    • attachAdditionalDataToOrder

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation attachAdditionalDataToOrder
    • addOfferCodes

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation addOfferCodes
    • findStaleCacheAwareCartForCustomer

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation findStaleCacheAwareCartForCustomer
    • findStaleCacheAwareCartForCustomer2

      public static final org.broadleafcommerce.common.extension.ExtensionManagerOperation findStaleCacheAwareCartForCustomer2
  • Constructor Details

    • OrderServiceExtensionManager

      public OrderServiceExtensionManager()
  • Method Details

    • continueOnHandled

      public boolean continueOnHandled()
      By default,this extension manager will continue on handled allowing multiple handlers to interact with the order.
      Overrides:
      continueOnHandled in class org.broadleafcommerce.common.extension.ExtensionManager<OrderServiceExtensionHandler>
    • attachAdditionalDataToNewNamedCart

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType attachAdditionalDataToNewNamedCart(org.broadleafcommerce.profile.core.domain.Customer customer, Order cart)
      Specified by:
      attachAdditionalDataToNewNamedCart in interface OrderServiceExtensionHandler
    • preValidateCartOperation

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType preValidateCartOperation(Order cart, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
      Specified by:
      preValidateCartOperation in interface OrderServiceExtensionHandler
    • preValidateUpdateQuantityOperation

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType preValidateUpdateQuantityOperation(Order cart, OrderItemRequestDTO dto, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
      Specified by:
      preValidateUpdateQuantityOperation in interface OrderServiceExtensionHandler
    • attachAdditionalDataToOrder

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType attachAdditionalDataToOrder(Order order, boolean priceOrder)
      Description copied from interface: OrderServiceExtensionHandler
      Can be used to attach or update fields must prior to saving an order.
      Specified by:
      attachAdditionalDataToOrder in interface OrderServiceExtensionHandler
      Returns:
    • addOfferCodes

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType addOfferCodes(Order order, List<OfferCode> offerCodes, boolean priceOrder)
      Specified by:
      addOfferCodes in interface OrderServiceExtensionHandler
    • findCartForCustomerWithEnhancements

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
      Description copied from interface: OrderServiceExtensionHandler
      Retrieve an enhanced version of the cart for the customer. Individual instances of OrderServiceExtensionHandler can provide one or more interesting enhancements.
      Specified by:
      findCartForCustomerWithEnhancements in interface OrderServiceExtensionHandler
      Parameters:
      customer - the user for whom the cart is retrieved
      erh - the holder for the enhanced cart to be set by the handler
      Returns:
      whether or not the enhancement was performed
    • findCartForCustomerWithEnhancements

      public org.broadleafcommerce.common.extension.ExtensionResultStatusType findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer, Order candidateCart, org.broadleafcommerce.common.extension.ExtensionResultHolder erh)
      Description copied from interface: OrderServiceExtensionHandler
      Retrieve an enhanced version of the cart for the customer. Use the candidateCart as the source cart to be enhanced. Individual instances of OrderServiceExtensionHandler can provide one or more interesting enhancements.
      Specified by:
      findCartForCustomerWithEnhancements in interface OrderServiceExtensionHandler
      Parameters:
      customer - the user for whom the cart is enhanced
      candidateCart - the source cart to enhance
      erh - the holder for the enhanced cart to be set by the handler
      Returns:
      whether or not the enhancement was performed
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.broadleafcommerce.common.extension.ExtensionHandler