org.broadleafcommerce.core.order.service
Class FulfillmentGroupServiceImpl
java.lang.Object
org.broadleafcommerce.core.order.service.FulfillmentGroupServiceImpl
- All Implemented Interfaces:
- FulfillmentGroupService
@Service(value="blFulfillmentGroupService")
public class FulfillmentGroupServiceImpl
- extends Object
- implements FulfillmentGroupService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fulfillmentGroupDao
protected FulfillmentGroupDao fulfillmentGroupDao
fulfillmentGroupItemDao
protected FulfillmentGroupItemDao fulfillmentGroupItemDao
orderService
protected OrderService orderService
orderMultishipOptionService
protected OrderMultishipOptionService orderMultishipOptionService
FulfillmentGroupServiceImpl
public FulfillmentGroupServiceImpl()
save
@Transactional(value="blTransactionManager")
public FulfillmentGroup save(FulfillmentGroup fulfillmentGroup)
- Specified by:
save in interface FulfillmentGroupService
createEmptyFulfillmentGroup
public FulfillmentGroup createEmptyFulfillmentGroup()
- Specified by:
createEmptyFulfillmentGroup in interface FulfillmentGroupService
findFulfillmentGroupById
public FulfillmentGroup findFulfillmentGroupById(Long fulfillmentGroupId)
- Specified by:
findFulfillmentGroupById in interface FulfillmentGroupService
delete
@Transactional(value="blTransactionManager")
public void delete(FulfillmentGroup fulfillmentGroup)
- Specified by:
delete in interface FulfillmentGroupService
addFulfillmentGroupToOrder
@Transactional(value="blTransactionManager")
public FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest,
boolean priceOrder)
throws PricingException
- Specified by:
addFulfillmentGroupToOrder in interface FulfillmentGroupService
- Throws:
PricingException
addItemToFulfillmentGroup
@Transactional(value="blTransactionManager")
public FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest,
boolean priceOrder)
throws PricingException
- Specified by:
addItemToFulfillmentGroup in interface FulfillmentGroupService
- Throws:
PricingException
removeOrderItemFromFullfillmentGroups
@Transactional(value="blTransactionManager")
public void removeOrderItemFromFullfillmentGroups(Order order,
OrderItem orderItem)
- Description copied from interface:
FulfillmentGroupService
- Removes every fulfillment group item in every fulfillment group in the order
that is associated with the given orderItem. Note that it does not save the changes
made - instead, the caller is responsible for saving the order further down.
- Specified by:
removeOrderItemFromFullfillmentGroups in interface FulfillmentGroupService
collapseToOneFulfillmentGroup
@Transactional(value="blTransactionManager")
public Order collapseToOneFulfillmentGroup(Order order,
boolean priceOrder)
throws PricingException
- Description copied from interface:
FulfillmentGroupService
- Collapses all of the fulfillment groups in the given order to the first fulfillment group
in the order.
- Specified by:
collapseToOneFulfillmentGroup in interface FulfillmentGroupService
- Returns:
- the saved order
- Throws:
PricingException- See Also:
FulfillmentGroupService.matchFulfillmentGroupsToMultishipOptions(Order, boolean)
matchFulfillmentGroupsToMultishipOptions
@Transactional(value="blTransactionManager")
public Order matchFulfillmentGroupsToMultishipOptions(Order order,
boolean priceOrder)
throws PricingException
- Description copied from interface:
FulfillmentGroupService
- Associates FulfillmentGroupItems in the given Order such that they match the structure
of the OrderMultishipOptions associated with the given Order.
- Specified by:
matchFulfillmentGroupsToMultishipOptions in interface FulfillmentGroupService
- Returns:
- the saved order
- Throws:
PricingException- See Also:
OrderMultishipOption
getKey
protected String getKey(Address address,
FulfillmentOption option)
createFulfillmentGroupItemFromOrderItem
protected FulfillmentGroupItem createFulfillmentGroupItemFromOrderItem(OrderItem orderItem,
FulfillmentGroup fulfillmentGroup,
int quantity)
removeAllFulfillmentGroupsFromOrder
@Transactional(value="blTransactionManager")
public Order removeAllFulfillmentGroupsFromOrder(Order order,
boolean priceOrder)
throws PricingException
- Specified by:
removeAllFulfillmentGroupsFromOrder in interface FulfillmentGroupService
- Throws:
PricingException
createFulfillmentGroupFee
public FulfillmentGroupFee createFulfillmentGroupFee()
- Specified by:
createFulfillmentGroupFee in interface FulfillmentGroupService
Copyright © 2013. All Rights Reserved.