|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.order.service.FulfillmentGroupServiceImpl
@Service(value="blFulfillmentGroupService") public class FulfillmentGroupServiceImpl
| Field Summary | |
|---|---|
protected FulfillmentGroupDao |
fulfillmentGroupDao
|
protected FulfillmentGroupItemDao |
fulfillmentGroupItemDao
|
protected OrderMultishipOptionService |
orderMultishipOptionService
|
protected OrderService |
orderService
|
| Constructor Summary | |
|---|---|
FulfillmentGroupServiceImpl()
|
|
| 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()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FulfillmentGroupDao fulfillmentGroupDao
protected FulfillmentGroupItemDao fulfillmentGroupItemDao
protected OrderService orderService
protected OrderMultishipOptionService orderMultishipOptionService
| Constructor Detail |
|---|
public FulfillmentGroupServiceImpl()
| Method Detail |
|---|
@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)
FulfillmentGroupService
removeOrderItemFromFullfillmentGroups in interface FulfillmentGroupService
@Transactional(value="blTransactionManager")
public Order collapseToOneFulfillmentGroup(Order order,
boolean priceOrder)
throws PricingException
FulfillmentGroupService
collapseToOneFulfillmentGroup in interface FulfillmentGroupServicePricingExceptionFulfillmentGroupService.matchFulfillmentGroupsToMultishipOptions(Order, boolean)
@Transactional(value="blTransactionManager")
public Order matchFulfillmentGroupsToMultishipOptions(Order order,
boolean priceOrder)
throws PricingException
FulfillmentGroupService
matchFulfillmentGroupsToMultishipOptions in interface FulfillmentGroupServicePricingExceptionOrderMultishipOption
protected 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 FulfillmentGroupService
public List<FulfillmentGroup> findUnfulfilledFulfillmentGroups(int start,
int maxResults)
FulfillmentGroupService
findUnfulfilledFulfillmentGroups in interface FulfillmentGroupService
public List<FulfillmentGroup> findPartiallyFulfilledFulfillmentGroups(int start,
int maxResults)
FulfillmentGroupService
findPartiallyFulfilledFulfillmentGroups in interface FulfillmentGroupService
public List<FulfillmentGroup> findUnprocessedFulfillmentGroups(int start,
int maxResults)
FulfillmentGroupService
findUnprocessedFulfillmentGroups in interface FulfillmentGroupService
public List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status,
int start,
int maxResults,
boolean ascending)
FulfillmentGroupService
findFulfillmentGroupsByStatus in interface FulfillmentGroupService
public List<FulfillmentGroup> findFulfillmentGroupsByStatus(FulfillmentGroupStatusType status,
int start,
int maxResults)
FulfillmentGroupService
findFulfillmentGroupsByStatus in interface FulfillmentGroupService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||