Class OrderServiceExtensionManager
java.lang.Object
org.broadleafcommerce.common.extension.ExtensionManager<OrderServiceExtensionHandler>
org.broadleafcommerce.core.order.service.OrderServiceExtensionManager
- All Implemented Interfaces:
InvocationHandler,ExtensionHandler,OrderServiceExtensionHandler
@Service("blOrderServiceExtensionManager")
public class OrderServiceExtensionManager
extends ExtensionManager<OrderServiceExtensionHandler>
implements OrderServiceExtensionHandler
- Author:
- Andre Azzolini (apazzolini), bpolster
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationstatic final ExtensionManagerOperationFields inherited from class org.broadleafcommerce.common.extension.ExtensionManager
extensionHandler, handlers, handlersSorted, LOCK_OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOfferCodes(Order order, List<OfferCode> offerCodes, boolean priceOrder) attachAdditionalDataToNewNamedCart(Customer customer, Order cart) attachAdditionalDataToOrder(Order order, boolean priceOrder) Can be used to attach or update fields must prior to saving an order.booleanBy default,this extension manager will continue on handled allowing multiple handlers to interact with the order.findCartForCustomerWithEnhancements(Customer customer, ExtensionResultHolder erh) Retrieve an enhanced version of the cart for the customer.findCartForCustomerWithEnhancements(Customer customer, Order candidateCart, ExtensionResultHolder erh) Retrieve an enhanced version of the cart for the customer.booleanpreValidateCartOperation(Order cart, ExtensionResultHolder erh) Methods inherited from class org.broadleafcommerce.common.extension.ExtensionManager
execute, getHandlers, getPriority, getProxy, invoke, registerHandler, setHandlers, shouldContinue, sortHandlersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority
-
Field Details
-
attachAdditionalDataToNewNamedCart
-
preValidateCartOperation
-
preValidateUpdateQuantityOperation
-
attachAdditionalDataToOrder
-
addOfferCodes
-
findStaleCacheAwareCartForCustomer
-
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:
continueOnHandledin classExtensionManager<OrderServiceExtensionHandler>
-
attachAdditionalDataToNewNamedCart
- Specified by:
attachAdditionalDataToNewNamedCartin interfaceOrderServiceExtensionHandler
-
preValidateCartOperation
- Specified by:
preValidateCartOperationin interfaceOrderServiceExtensionHandler
-
preValidateUpdateQuantityOperation
public ExtensionResultStatusType preValidateUpdateQuantityOperation(Order cart, OrderItemRequestDTO dto, ExtensionResultHolder erh) - Specified by:
preValidateUpdateQuantityOperationin interfaceOrderServiceExtensionHandler
-
attachAdditionalDataToOrder
Description copied from interface:OrderServiceExtensionHandlerCan be used to attach or update fields must prior to saving an order.- Specified by:
attachAdditionalDataToOrderin interfaceOrderServiceExtensionHandler- Returns:
-
addOfferCodes
public ExtensionResultStatusType addOfferCodes(Order order, List<OfferCode> offerCodes, boolean priceOrder) - Specified by:
addOfferCodesin interfaceOrderServiceExtensionHandler
-
findCartForCustomerWithEnhancements
public ExtensionResultStatusType findCartForCustomerWithEnhancements(Customer customer, ExtensionResultHolder erh) Description copied from interface:OrderServiceExtensionHandlerRetrieve an enhanced version of the cart for the customer. Individual instances ofOrderServiceExtensionHandlercan provide one or more interesting enhancements.- Specified by:
findCartForCustomerWithEnhancementsin interfaceOrderServiceExtensionHandler- Parameters:
customer- the user for whom the cart is retrievederh- the holder for the enhanced cart to be set by the handler- Returns:
- whether or not the enhancement was performed
-
findCartForCustomerWithEnhancements
public ExtensionResultStatusType findCartForCustomerWithEnhancements(Customer customer, Order candidateCart, ExtensionResultHolder erh) Description copied from interface:OrderServiceExtensionHandlerRetrieve an enhanced version of the cart for the customer. Use the candidateCart as the source cart to be enhanced. Individual instances ofOrderServiceExtensionHandlercan provide one or more interesting enhancements.- Specified by:
findCartForCustomerWithEnhancementsin interfaceOrderServiceExtensionHandler- Parameters:
customer- the user for whom the cart is enhancedcandidateCart- the source cart to enhanceerh- 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:
isEnabledin interfaceExtensionHandler
-