Class NullFulfillmentGroupItemStrategyImpl
java.lang.Object
org.broadleafcommerce.core.order.strategy.FulfillmentGroupItemStrategyImpl
org.broadleafcommerce.core.order.strategy.NullFulfillmentGroupItemStrategyImpl
- All Implemented Interfaces:
FulfillmentGroupItemStrategy
This class provides the implementation of a strategy that does not touch
FulfillmentGroupItems when cart add or update operations have been performed.
However, the remove operation must still remove the FulfillmentGroupItems, and this
strategy will delegate to the default Broadleaf FulfillmentGroupItemStrategy to perform
the removal.
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.core.order.strategy.FulfillmentGroupItemStrategyImpl
fgItemDao, fulfillmentGroupService, orderItemService, orderService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonItemAdded(CartOperationRequest request) onItemRemoved(CartOperationRequest request) When we remove an order item, we must also remove the associated fulfillment group item to respsect the database constraints.onItemUpdated(CartOperationRequest request) verify(CartOperationRequest request) Methods inherited from class org.broadleafcommerce.core.order.strategy.FulfillmentGroupItemStrategyImpl
addItemToFulfillmentGroup, addItemToFulfillmentGroup, resolveFulfillmentType, resolveFulfillmentType, setRemoveEmptyFulfillmentGroups, updateItemQuantity
-
Field Details
-
removeEmptyFulfillmentGroups
protected boolean removeEmptyFulfillmentGroups
-
-
Constructor Details
-
NullFulfillmentGroupItemStrategyImpl
public NullFulfillmentGroupItemStrategyImpl()
-
-
Method Details
-
onItemAdded
- Specified by:
onItemAddedin interfaceFulfillmentGroupItemStrategy- Overrides:
onItemAddedin classFulfillmentGroupItemStrategyImpl
-
onItemUpdated
- Specified by:
onItemUpdatedin interfaceFulfillmentGroupItemStrategy- Overrides:
onItemUpdatedin classFulfillmentGroupItemStrategyImpl
-
onItemRemoved
When we remove an order item, we must also remove the associated fulfillment group item to respsect the database constraints.- Specified by:
onItemRemovedin interfaceFulfillmentGroupItemStrategy- Overrides:
onItemRemovedin classFulfillmentGroupItemStrategyImpl
-
verify
- Specified by:
verifyin interfaceFulfillmentGroupItemStrategy- Overrides:
verifyin classFulfillmentGroupItemStrategyImpl
-
isRemoveEmptyFulfillmentGroups
public boolean isRemoveEmptyFulfillmentGroups()- Specified by:
isRemoveEmptyFulfillmentGroupsin interfaceFulfillmentGroupItemStrategy- Overrides:
isRemoveEmptyFulfillmentGroupsin classFulfillmentGroupItemStrategyImpl
-