@Service(value="blOrderServiceExtensionManager") public class OrderServiceExtensionManager extends ExtensionManager<OrderServiceExtensionHandler> implements OrderServiceExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
static ExtensionManagerOperation |
addOfferCodes |
static ExtensionManagerOperation |
attachAdditionalDataToNewNamedCart |
static ExtensionManagerOperation |
attachAdditionalDataToOrder |
static ExtensionManagerOperation |
findStaleCacheAwareCartForCustomer |
static ExtensionManagerOperation |
findStaleCacheAwareCartForCustomer2 |
static ExtensionManagerOperation |
preValidateCartOperation |
static ExtensionManagerOperation |
preValidateUpdateQuantityOperation |
extensionHandler, handlers, handlersSorted, LOCK_OBJECT| Constructor and Description |
|---|
OrderServiceExtensionManager() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
addOfferCodes(Order order,
List<OfferCode> offerCodes,
boolean priceOrder) |
ExtensionResultStatusType |
attachAdditionalDataToNewNamedCart(org.broadleafcommerce.profile.core.domain.Customer customer,
Order cart) |
ExtensionResultStatusType |
attachAdditionalDataToOrder(Order order,
boolean priceOrder)
Can be used to attach or update fields must prior to saving an order.
|
boolean |
continueOnHandled()
By default,this extension manager will continue on handled allowing multiple handlers to interact with the order.
|
ExtensionResultStatusType |
findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer,
ExtensionResultHolder erh)
Retrieve an enhanced version of the cart for the customer.
|
ExtensionResultStatusType |
findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer,
Order candidateCart,
ExtensionResultHolder erh)
Retrieve an enhanced version of the cart for the customer.
|
boolean |
isEnabled() |
ExtensionResultStatusType |
preValidateCartOperation(Order cart,
ExtensionResultHolder erh) |
ExtensionResultStatusType |
preValidateUpdateQuantityOperation(Order cart,
OrderItemRequestDTO dto,
ExtensionResultHolder erh) |
execute, getHandlers, getPriority, getProxy, invoke, registerHandler, setHandlers, shouldContinue, sortHandlersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrioritypublic static final ExtensionManagerOperation attachAdditionalDataToNewNamedCart
public static final ExtensionManagerOperation preValidateCartOperation
public static final ExtensionManagerOperation preValidateUpdateQuantityOperation
public static final ExtensionManagerOperation attachAdditionalDataToOrder
public static final ExtensionManagerOperation addOfferCodes
public static final ExtensionManagerOperation findStaleCacheAwareCartForCustomer
public static final ExtensionManagerOperation findStaleCacheAwareCartForCustomer2
public boolean continueOnHandled()
continueOnHandled in class ExtensionManager<OrderServiceExtensionHandler>public ExtensionResultStatusType attachAdditionalDataToNewNamedCart(org.broadleafcommerce.profile.core.domain.Customer customer, Order cart)
attachAdditionalDataToNewNamedCart in interface OrderServiceExtensionHandlerpublic ExtensionResultStatusType preValidateCartOperation(Order cart, ExtensionResultHolder erh)
preValidateCartOperation in interface OrderServiceExtensionHandlerpublic ExtensionResultStatusType preValidateUpdateQuantityOperation(Order cart, OrderItemRequestDTO dto, ExtensionResultHolder erh)
preValidateUpdateQuantityOperation in interface OrderServiceExtensionHandlerpublic ExtensionResultStatusType attachAdditionalDataToOrder(Order order, boolean priceOrder)
OrderServiceExtensionHandlerattachAdditionalDataToOrder in interface OrderServiceExtensionHandlerpublic ExtensionResultStatusType addOfferCodes(Order order, List<OfferCode> offerCodes, boolean priceOrder)
addOfferCodes in interface OrderServiceExtensionHandlerpublic ExtensionResultStatusType findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer, ExtensionResultHolder erh)
OrderServiceExtensionHandlerOrderServiceExtensionHandler
can provide one or more interesting enhancements.findCartForCustomerWithEnhancements in interface OrderServiceExtensionHandlercustomer - the user for whom the cart is retrievederh - the holder for the enhanced cart to be set by the handlerpublic ExtensionResultStatusType findCartForCustomerWithEnhancements(org.broadleafcommerce.profile.core.domain.Customer customer, Order candidateCart, ExtensionResultHolder erh)
OrderServiceExtensionHandlerOrderServiceExtensionHandler can provide one or more interesting enhancements.findCartForCustomerWithEnhancements in interface OrderServiceExtensionHandlercustomer - the user for whom the cart is enhancedcandidateCart - the source cart to enhanceerh - the holder for the enhanced cart to be set by the handlerpublic boolean isEnabled()
isEnabled in interface ExtensionHandlerCopyright © 2021. All rights reserved.