@Service(value="blFulfillmentGroupService") public class FulfillmentGroupServiceImpl extends Object implements FulfillmentGroupService
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentGroupDao |
fulfillmentGroupDao |
protected FulfillmentGroupItemDao |
fulfillmentGroupItemDao |
protected OrderMultishipOptionService |
orderMultishipOptionService |
protected OrderService |
orderService |
| Constructor and Description |
|---|
FulfillmentGroupServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
FulfillmentGroup |
addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest,
boolean priceOrder) |
FulfillmentGroup |
addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest,
boolean priceOrder) |
FulfillmentGroup |
addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest,
boolean priceOrder,
boolean save) |
Order |
collapseToOneShippableFulfillmentGroup(Order order,
boolean priceOrder)
Collapses all of the shippable fulfillment groups in the given order to the first shippable fulfillment group
in the order.
|
FulfillmentGroup |
createEmptyFulfillmentGroup() |
FulfillmentGroupFee |
createFulfillmentGroupFee() |
protected FulfillmentGroupItem |
createFulfillmentGroupItemFromOrderItem(OrderItem orderItem,
FulfillmentGroup fulfillmentGroup,
int quantity) |
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.
|
FulfillmentGroup |
getFirstShippableFulfillmentGroup(Order order)
This method will get the first shippable fulfillment group from an order.
|
List<FulfillmentGroupItem> |
getFulfillmentGroupItemsForOrderItem(Order order,
OrderItem orderItem)
Finds all FulfillmentGroupItems in the given Order that reference the given OrderItem.
|
protected String |
getKey(Address address,
FulfillmentOption option,
FulfillmentType fulfillmentType) |
boolean |
isShippable(FulfillmentType fulfillmentType)
Determines if a fulfillment group is shippable based on its fulfillment type.
|
Order |
matchFulfillmentGroupsToMultishipOptions(Order order,
boolean priceOrder)
Associates shippable 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) |
protected FulfillmentGroupDao fulfillmentGroupDao
protected FulfillmentGroupItemDao fulfillmentGroupItemDao
protected OrderService orderService
protected OrderMultishipOptionService orderMultishipOptionService
@Transactional(value="blTransactionManager") public FulfillmentGroup save(FulfillmentGroup fulfillmentGroup)
save in interface FulfillmentGroupServicepublic FulfillmentGroup createEmptyFulfillmentGroup()
createEmptyFulfillmentGroup in interface FulfillmentGroupServicepublic FulfillmentGroup findFulfillmentGroupById(Long fulfillmentGroupId)
findFulfillmentGroupById in interface FulfillmentGroupService@Transactional(value="blTransactionManager") public void delete(FulfillmentGroup fulfillmentGroup)
delete in interface FulfillmentGroupService@Transactional(value="blTransactionManager") public FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequest, boolean priceOrder) throws PricingException
addFulfillmentGroupToOrder in interface FulfillmentGroupServicePricingExceptionpublic FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest, boolean priceOrder) throws PricingException
addItemToFulfillmentGroup in interface FulfillmentGroupServicePricingExceptionpublic FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest, boolean priceOrder, boolean save) throws PricingException
addItemToFulfillmentGroup in interface FulfillmentGroupServicePricingExceptionpublic List<FulfillmentGroupItem> getFulfillmentGroupItemsForOrderItem(Order order, OrderItem orderItem)
FulfillmentGroupServicegetFulfillmentGroupItemsForOrderItem in interface FulfillmentGroupService@Transactional(value="blTransactionManager") public void removeOrderItemFromFullfillmentGroups(Order order, OrderItem orderItem)
FulfillmentGroupServiceremoveOrderItemFromFullfillmentGroups in interface FulfillmentGroupService@Transactional(value="blTransactionManager") public Order collapseToOneShippableFulfillmentGroup(Order order, boolean priceOrder) throws PricingException
FulfillmentGroupServicecollapseToOneShippableFulfillmentGroup in interface FulfillmentGroupServicePricingExceptionFulfillmentGroupService.matchFulfillmentGroupsToMultishipOptions(Order, boolean)@Transactional(value="blTransactionManager") public Order matchFulfillmentGroupsToMultishipOptions(Order order, boolean priceOrder) throws PricingException
FulfillmentGroupServicematchFulfillmentGroupsToMultishipOptions in interface FulfillmentGroupServicePricingExceptionOrderMultishipOptionprotected String getKey(Address address, FulfillmentOption option, FulfillmentType fulfillmentType)
protected FulfillmentGroupItem createFulfillmentGroupItemFromOrderItem(OrderItem orderItem, FulfillmentGroup fulfillmentGroup, int quantity)
@Transactional(value="blTransactionManager") public Order removeAllFulfillmentGroupsFromOrder(Order order, boolean priceOrder) throws PricingException
removeAllFulfillmentGroupsFromOrder in interface FulfillmentGroupServicePricingExceptionpublic FulfillmentGroupFee createFulfillmentGroupFee()
createFulfillmentGroupFee in interface FulfillmentGroupServicepublic List<FulfillmentGroup> findUnfulfilledFulfillmentGroups(int start, int maxResults)
FulfillmentGroupServicefindUnfulfilledFulfillmentGroups in interface FulfillmentGroupServicepublic List<FulfillmentGroup> findPartiallyFulfilledFulfillmentGroups(int start, int maxResults)
FulfillmentGroupServicefindPartiallyFulfilledFulfillmentGroups in interface FulfillmentGroupServicepublic List<FulfillmentGroup> findUnprocessedFulfillmentGroups(int start, int maxResults)
FulfillmentGroupServicefindUnprocessedFulfillmentGroups in interface FulfillmentGroupServicepublic List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults, boolean ascending)
FulfillmentGroupServicefindFulfillmentGroupsByStatus in interface FulfillmentGroupServicepublic List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status, int start, int maxResults)
FulfillmentGroupServicefindFulfillmentGroupsByStatus in interface FulfillmentGroupServicepublic boolean isShippable(FulfillmentType fulfillmentType)
FulfillmentGroupServiceisShippable in interface FulfillmentGroupServicepublic FulfillmentGroup getFirstShippableFulfillmentGroup(Order order)
getFirstShippableFulfillmentGroup in interface FulfillmentGroupServiceorder - Copyright © 2014. All Rights Reserved.