|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.inventory.service.InventoryServiceImpl
@Service(value="blInventoryService") public class InventoryServiceImpl
| Field Summary | |
|---|---|
protected org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration
|
protected FulfillmentLocationService |
fulfillmentLocationService
|
protected InventoryDao |
inventoryDao
|
| Constructor Summary | |
|---|---|
InventoryServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
decrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
Subtracts the quantity from available inventory in the default fulfillment location for each sku in the map. |
void |
decrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
Subtracts the quantity from available inventory for each sku in the map for the given fulfillment location. |
void |
decrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
Subtracts the quantity from inventory on hand in the default fulfillment location for each sku in the map. |
void |
decrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
Subtracts the quantity from inventory on hand for each sku in the map for the given fulfillment location. |
void |
incrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
Attempts to add available inventory to an inventory record associated with a default fulfillment location. |
void |
incrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
Add available inventory to sku. |
void |
incrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
Attempts to add inventory on hand to an inventory record associated with a default fulfillment location. |
void |
incrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
Add inventory on hand to sku. |
boolean |
isQuantityAvailable(org.broadleafcommerce.core.catalog.domain.Sku sku,
Integer quantity)
Retrieves whether or not the quantity is available for a sku at all fulfillment locations. |
boolean |
isQuantityAvailable(org.broadleafcommerce.core.catalog.domain.Sku sku,
Integer quantity,
FulfillmentLocation fulfillmentLocation)
Retrieves whether or not the quantity is available for a sku at a fulfillment location. |
boolean |
isSkuEligibleForInventoryCheck(org.broadleafcommerce.core.catalog.domain.Sku sku)
Tests whether an inventory check will be invoked for the given Sku. |
Inventory |
readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku)
Retrieves inventory for this sku at the default fulfillment location. |
Inventory |
readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
Retrieves the Inventory for the given Sku and FulfillmentLocation |
List<Inventory> |
readInventoryForFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Retrieves all instances of Inventory for this fulfillmentLocation |
List<org.broadleafcommerce.core.catalog.domain.Sku> |
readSkusNotAtFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
Retrieves skus that do not have inventory records at a particular fulfillment location |
Inventory |
save(Inventory inventory)
Persists the inventory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InventoryDao inventoryDao
protected FulfillmentLocationService fulfillmentLocationService
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
| Constructor Detail |
|---|
public InventoryServiceImpl()
| Method Detail |
|---|
public boolean isSkuEligibleForInventoryCheck(org.broadleafcommerce.core.catalog.domain.Sku sku)
InventoryService
isSkuEligibleForInventoryCheck in interface InventoryService
public boolean isQuantityAvailable(org.broadleafcommerce.core.catalog.domain.Sku sku,
Integer quantity)
InventoryService
isQuantityAvailable in interface InventoryServicesku - the skuquantity - the amount for which to check; must be a positive integer
@Transactional(value="blTransactionManager")
public boolean isQuantityAvailable(org.broadleafcommerce.core.catalog.domain.Sku sku,
Integer quantity,
FulfillmentLocation fulfillmentLocation)
InventoryService
isQuantityAvailable in interface InventoryServicesku - the skuquantity - the amount for which to check; must be a positive integerfulfillmentLocation - the fulfillment location
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void decrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
throws ConcurrentInventoryModificationException,
InventoryUnavailableException
InventoryService
decrementInventory in interface InventoryServiceskuInventory - a map which contains the quantity of inventory to subtract from available inventory for each sku
ConcurrentInventoryModificationException
InventoryUnavailableException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void decrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
throws ConcurrentInventoryModificationException,
InventoryUnavailableException
InventoryService
decrementInventory in interface InventoryServiceskuInventory - a map which contains the quantity of inventory to subtract from available inventory for each skufulfillmentLocation - the fulfillment location
ConcurrentInventoryModificationException
InventoryUnavailableException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void decrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
throws ConcurrentInventoryModificationException,
InventoryUnavailableException
InventoryService
decrementInventoryOnHand in interface InventoryServiceConcurrentInventoryModificationException
InventoryUnavailableException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void decrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
throws ConcurrentInventoryModificationException,
InventoryUnavailableException
InventoryService
decrementInventoryOnHand in interface InventoryServiceConcurrentInventoryModificationException
InventoryUnavailableException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void incrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
throws ConcurrentInventoryModificationException
InventoryServiceIllegalArgumentException.
incrementInventory in interface InventoryServiceConcurrentInventoryModificationException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void incrementInventory(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
throws ConcurrentInventoryModificationException
InventoryService
incrementInventory in interface InventoryServiceConcurrentInventoryModificationException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void incrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory,
FulfillmentLocation fulfillmentLocation)
throws ConcurrentInventoryModificationException
InventoryServiceIllegalArgumentException.
incrementInventoryOnHand in interface InventoryServiceConcurrentInventoryModificationException
@Transactional(propagation=REQUIRES_NEW,
value="blTransactionManager",
rollbackFor={InventoryUnavailableException.class,ConcurrentInventoryModificationException.class})
public void incrementInventoryOnHand(Map<org.broadleafcommerce.core.catalog.domain.Sku,Integer> skuInventory)
throws ConcurrentInventoryModificationException
InventoryService
incrementInventoryOnHand in interface InventoryServiceConcurrentInventoryModificationException
@Transactional(value="blTransactionManager")
public Inventory readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku,
FulfillmentLocation fulfillmentLocation)
InventoryServiceInventory for the given Sku and FulfillmentLocation
readInventory in interface InventoryServicesku - SkufulfillmentLocation - FulfillmentLocation
Inventory@Transactional(value="blTransactionManager") public Inventory readInventory(org.broadleafcommerce.core.catalog.domain.Sku sku)
InventoryService
readInventory in interface InventoryService@Transactional(value="blTransactionManager") public List<Inventory> readInventoryForFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
InventoryService
readInventoryForFulfillmentLocation in interface InventoryServiceInventory
@Transactional(value="blTransactionManager")
public Inventory save(Inventory inventory)
throws ConcurrentInventoryModificationException
InventoryService
save in interface InventoryServiceConcurrentInventoryModificationException@Transactional(value="blTransactionManager") public List<org.broadleafcommerce.core.catalog.domain.Sku> readSkusNotAtFulfillmentLocation(FulfillmentLocation fulfillmentLocation)
InventoryService
readSkusNotAtFulfillmentLocation in interface InventoryService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||