@Service(value="blFulfillmentGroupItemStrategy") public class FulfillmentGroupItemStrategyImpl extends Object implements FulfillmentGroupItemStrategy
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentGroupItemDao |
fgItemDao |
protected FulfillmentGroupService |
fulfillmentGroupService |
protected OrderItemService |
orderItemService |
protected OrderService |
orderService |
protected boolean |
removeEmptyFulfillmentGroups |
| Constructor and Description |
|---|
FulfillmentGroupItemStrategyImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected FulfillmentGroup |
addItemToFulfillmentGroup(Order order,
DiscreteOrderItem orderItem,
FulfillmentGroup fulfillmentGroup) |
protected FulfillmentGroup |
addItemToFulfillmentGroup(Order order,
DiscreteOrderItem orderItem,
int quantity,
FulfillmentGroup fulfillmentGroup) |
boolean |
isRemoveEmptyFulfillmentGroups() |
CartOperationRequest |
onItemAdded(CartOperationRequest request) |
CartOperationRequest |
onItemRemoved(CartOperationRequest request) |
CartOperationRequest |
onItemUpdated(CartOperationRequest request) |
protected FulfillmentType |
resolveFulfillmentType(Sku sku) |
void |
setRemoveEmptyFulfillmentGroups(boolean removeEmptyFulfillmentGroups) |
protected Order |
updateItemQuantity(Order order,
OrderItem orderItem,
Integer orderItemQuantityDelta) |
CartOperationRequest |
verify(CartOperationRequest request) |
protected FulfillmentGroupService fulfillmentGroupService
protected OrderItemService orderItemService
protected OrderService orderService
protected FulfillmentGroupItemDao fgItemDao
protected boolean removeEmptyFulfillmentGroups
public CartOperationRequest onItemAdded(CartOperationRequest request) throws PricingException
onItemAdded in interface FulfillmentGroupItemStrategyPricingExceptionprotected FulfillmentType resolveFulfillmentType(Sku sku)
protected FulfillmentGroup addItemToFulfillmentGroup(Order order, DiscreteOrderItem orderItem, FulfillmentGroup fulfillmentGroup) throws PricingException
PricingExceptionprotected FulfillmentGroup addItemToFulfillmentGroup(Order order, DiscreteOrderItem orderItem, int quantity, FulfillmentGroup fulfillmentGroup) throws PricingException
PricingExceptionpublic CartOperationRequest onItemUpdated(CartOperationRequest request) throws PricingException
onItemUpdated in interface FulfillmentGroupItemStrategyPricingExceptionprotected Order updateItemQuantity(Order order, OrderItem orderItem, Integer orderItemQuantityDelta) throws PricingException
PricingExceptionpublic CartOperationRequest onItemRemoved(CartOperationRequest request)
onItemRemoved in interface FulfillmentGroupItemStrategypublic CartOperationRequest verify(CartOperationRequest request) throws PricingException
verify in interface FulfillmentGroupItemStrategyPricingExceptionpublic boolean isRemoveEmptyFulfillmentGroups()
isRemoveEmptyFulfillmentGroups in interface FulfillmentGroupItemStrategypublic void setRemoveEmptyFulfillmentGroups(boolean removeEmptyFulfillmentGroups)
setRemoveEmptyFulfillmentGroups in interface FulfillmentGroupItemStrategyCopyright © 2014. All Rights Reserved.