Class CartMessageOrderItemServiceExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.order.service.AbstractOrderServiceExtensionHandler
org.broadleafcommerce.core.order.service.CartMessageOrderItemServiceExtensionHandler
- All Implemented Interfaces:
ExtensionHandler,OrderServiceExtensionHandler
@Service("blCartMessageOrderItemServiceExtensionHandler")
public class CartMessageOrderItemServiceExtensionHandler
extends AbstractOrderServiceExtensionHandler
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OrderServiceExtensionManagerprotected List<PromotionMessageGenerator>protected OrderItemServiceFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPromotionMessagesForType(List<PromotionMessageDTO> messageDTOs, List<PromotionMessageDTO> messages) attachAdditionalDataToOrder(Order order, boolean priceOrder) Can be used to attach or update fields must prior to saving an order.gatherOrderItemCartMessages(OrderItem orderItem) gatherProductCartMessages(OrderItem orderItem) intvoidinit()protected voidupdateOrderItemCartMessages(OrderItem orderItem) Methods inherited from class org.broadleafcommerce.core.order.service.AbstractOrderServiceExtensionHandler
addOfferCodes, attachAdditionalDataToNewNamedCart, findCartForCustomerWithEnhancements, findCartForCustomerWithEnhancements, preValidateCartOperation, preValidateUpdateQuantityOperationMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
isEnabled, setEnabled, setPriorityMethods 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
isEnabled
-
Field Details
-
orderItemService
-
generators
-
extensionManager
-
-
Constructor Details
-
CartMessageOrderItemServiceExtensionHandler
public CartMessageOrderItemServiceExtensionHandler()
-
-
Method Details
-
init
@PostConstruct public void init() -
attachAdditionalDataToOrder
Description copied from interface:OrderServiceExtensionHandlerCan be used to attach or update fields must prior to saving an order.- Specified by:
attachAdditionalDataToOrderin interfaceOrderServiceExtensionHandler- Overrides:
attachAdditionalDataToOrderin classAbstractOrderServiceExtensionHandler- Returns:
-
updateOrderItemCartMessages
-
gatherOrderItemCartMessages
-
gatherProductCartMessages
-
addPromotionMessagesForType
protected void addPromotionMessagesForType(List<PromotionMessageDTO> messageDTOs, List<PromotionMessageDTO> messages) -
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceExtensionHandler- Overrides:
getPriorityin classAbstractExtensionHandler
-