org.broadleafcommerce.core.order.service
Interface FulfillmentGroupService

All Known Implementing Classes:
FulfillmentGroupServiceImpl

public interface FulfillmentGroupService


Method Summary
 FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest, boolean priceOrder)
           
 FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest, boolean priceOrder)
           
 Order collapseToOneFulfillmentGroup(Order order, boolean priceOrder)
          Collapses all of the fulfillment groups in the given order to the first fulfillment group in the order.
 FulfillmentGroup createEmptyFulfillmentGroup()
           
 FulfillmentGroupFee createFulfillmentGroupFee()
           
 void delete(FulfillmentGroup fulfillmentGroup)
           
 FulfillmentGroup findFulfillmentGroupById(Long fulfillmentGroupId)
           
 List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults)
          Reads FulfillmentGroups by status, ascending according to the date that the order was created.
 List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults, boolean ascending)
          Reads FulfillmentGroups by status, either ascending or descending according to the date that the order was created.
 List<FulfillmentGroup> findPartiallyFulfilledFulfillmentGroups(int start, int maxResults)
          Reads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.
 List<FulfillmentGroup> findUnfulfilledFulfillmentGroups(int start, int maxResults)
          Reads FulfillmentGroups whose status is not FULFILLED or DELIVERED.
 List<FulfillmentGroup> findUnprocessedFulfillmentGroups(int start, int maxResults)
          Returns FulfillmentGroups whose status is null, or where no processing has yet occured.
 Order matchFulfillmentGroupsToMultishipOptions(Order order, boolean priceOrder)
          Associates FulfillmentGroupItems in the given Order such that they match the structure of the OrderMultishipOptions associated with the given Order.
 Order removeAllFulfillmentGroupsFromOrder(Order order, boolean priceOrder)
           
 void removeOrderItemFromFullfillmentGroups(Order order, OrderItem orderItem)
          Removes every fulfillment group item in every fulfillment group in the order that is associated with the given orderItem.
 FulfillmentGroup save(FulfillmentGroup fulfillmentGroup)
           
 

Method Detail

save

FulfillmentGroup save(FulfillmentGroup fulfillmentGroup)

createEmptyFulfillmentGroup

FulfillmentGroup createEmptyFulfillmentGroup()

findFulfillmentGroupById

FulfillmentGroup findFulfillmentGroupById(Long fulfillmentGroupId)

delete

void delete(FulfillmentGroup fulfillmentGroup)

addFulfillmentGroupToOrder

FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest,
                                            boolean priceOrder)
                                            throws PricingException
Throws:
PricingException

addItemToFulfillmentGroup

FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest,
                                           boolean priceOrder)
                                           throws PricingException
Throws:
PricingException

removeAllFulfillmentGroupsFromOrder

Order removeAllFulfillmentGroupsFromOrder(Order order,
                                          boolean priceOrder)
                                          throws PricingException
Throws:
PricingException

removeOrderItemFromFullfillmentGroups

void removeOrderItemFromFullfillmentGroups(Order order,
                                           OrderItem orderItem)
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.

Parameters:
order -
orderItem -

createFulfillmentGroupFee

FulfillmentGroupFee createFulfillmentGroupFee()

matchFulfillmentGroupsToMultishipOptions

Order matchFulfillmentGroupsToMultishipOptions(Order order,
                                               boolean priceOrder)
                                               throws PricingException
Associates FulfillmentGroupItems in the given Order such that they match the structure of the OrderMultishipOptions associated with the given Order.

Parameters:
order -
Returns:
the saved order
Throws:
PricingException
See Also:
OrderMultishipOption

collapseToOneFulfillmentGroup

Order collapseToOneFulfillmentGroup(Order order,
                                    boolean priceOrder)
                                    throws PricingException
Collapses all of the fulfillment groups in the given order to the first fulfillment group in the order.

Parameters:
order -
priceOrder -
Returns:
the saved order
Throws:
PricingException
See Also:
matchFulfillmentGroupsToMultishipOptions(Order, boolean)

findUnfulfilledFulfillmentGroups

List<FulfillmentGroup> findUnfulfilledFulfillmentGroups(int start,
                                                        int maxResults)
Reads FulfillmentGroups whose status is not FULFILLED or DELIVERED.

Parameters:
start -
maxResults -
Returns:

findPartiallyFulfilledFulfillmentGroups

List<FulfillmentGroup> findPartiallyFulfilledFulfillmentGroups(int start,
                                                               int maxResults)
Reads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.

Parameters:
start -
maxResults -
Returns:

findUnprocessedFulfillmentGroups

List<FulfillmentGroup> findUnprocessedFulfillmentGroups(int start,
                                                        int maxResults)
Returns FulfillmentGroups whose status is null, or where no processing has yet occured. Default returns in ascending order according to date that the order was created.

Parameters:
start -
maxResults -
Returns:

findFulfillmentGroupsByStatus

List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status,
                                                     int start,
                                                     int maxResults,
                                                     boolean ascending)
Reads FulfillmentGroups by status, either ascending or descending according to the date that the order was created.

Parameters:
status -
start -
maxResults -
ascending -
Returns:

findFulfillmentGroupsByStatus

List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status,
                                                     int start,
                                                     int maxResults)
Reads FulfillmentGroups by status, ascending according to the date that the order was created.

Parameters:
status -
start -
maxResults -
Returns:


Copyright © 2013. All Rights Reserved.