@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) |
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() |
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.
|
protected String |
getKey(Address address,
FulfillmentOption option) |
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) |
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 FulfillmentGroupServicePricingException@Transactional(value="blTransactionManager") public FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequest, boolean priceOrder) throws PricingException
addItemToFulfillmentGroup in interface FulfillmentGroupServicePricingException@Transactional(value="blTransactionManager") public void removeOrderItemFromFullfillmentGroups(Order order, OrderItem orderItem)
FulfillmentGroupServiceremoveOrderItemFromFullfillmentGroups in interface FulfillmentGroupService@Transactional(value="blTransactionManager") public Order collapseToOneFulfillmentGroup(Order order, boolean priceOrder) throws PricingException
FulfillmentGroupServicecollapseToOneFulfillmentGroup 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)
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 FulfillmentGroupServiceCopyright © 2014. All Rights Reserved.