public interface LocationInventoryManager extends InventoryManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
AVAILABILITY_STATUS_BACKORDERABLE, AVAILABILITY_STATUS_DERIVED, AVAILABILITY_STATUS_DISCONTINUED, AVAILABILITY_STATUS_IN_STOCK, AVAILABILITY_STATUS_OUT_OF_STOCK, AVAILABILITY_STATUS_PREORDERABLE, INVENTORY_STATUS_FAIL, INVENTORY_STATUS_INSUFFICIENT_SUPPLY, INVENTORY_STATUS_ITEM_NOT_FOUND, INVENTORY_STATUS_SUCCEED
Modifier and Type | Method and Description |
---|---|
void |
acquireInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId)
Acquires locks for the inventory items that apply to the given
ids.
|
int |
backorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocationId)
Backorder an item.
|
int |
backorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocationId)
Backorder an item.
|
int |
decreaseBackorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Decrease an item's backorder level by the specified amount.
|
int |
decreaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Decrease an item's backorder level by the specified amount.
|
int |
decreasePreorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Decrease an item's preorder level by the specified amount.
|
int |
decreasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Decrease an item's preorder level by the specified amount.
|
int |
decreaseStockLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Decrease an item's stock level by the specified amount.
|
int |
decreaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Decrease an item's stock level by the specified amount.
|
int |
increaseBackorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Increase an item's backorder level by the specified number.
|
int |
increaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Increase an item's backorder level by the specified number.
|
int |
increasePreorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Increase an item's preorder level by the specified number.
|
int |
increasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Increase an item's preorder level by the specified number.
|
int |
increaseStockLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Increase an item's stock level by the specified number.
|
int |
increaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Increase an item's stock level by the specified number.
|
int |
inventoryWasUpdated(java.util.List pItemIds,
java.lang.String pLocationId)
Informs the inventory manager that the given ids are now available.
|
int |
preorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocationId)
Preorder an item.
|
int |
preorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocationId)
Preorder an item.
|
int |
purchase(java.lang.String pId,
double pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
long pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchaseOffBackorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchaseOffBackorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchaseOffPreorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchaseOffPreorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
java.util.Date |
queryAvailabilityDate(java.lang.String pId,
java.lang.String pLocationId)
Return the availability date of an item.
|
int |
queryAvailabilityStatus(java.lang.String pId,
java.lang.String pLocationId)
Return the availability status of a given item.
|
AvailableToPromise |
queryAvailableToPromise(java.lang.String pItemId,
java.lang.String pLocationId)
Returns Available To Promise information for a given id and location
|
long |
queryBackorderLevel(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item can be backorder.
|
double |
queryBackorderLevelWithFraction(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item can be backorder.
|
long |
queryBackorderThreshold(java.lang.String pId,
java.lang.String pLocationId)
Return the threshold associated with backorderLevel
|
java.util.Collection<InventoryInfo> |
queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds,
java.util.Collection<java.lang.String> pLocationIds)
Returns an InventoryInfo object for every id at every location
|
java.util.Collection<InventoryInfo> |
queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds,
java.lang.String pLocationId)
Returns an InventoryInfo object for each id at the given location
|
java.util.Collection<InventoryInfo> |
queryInventoryInformation(java.lang.String pId,
java.util.Collection<java.lang.String> pLocationIds)
Returns an InventoryInfo object for the given id at each given location
|
InventoryInfo |
queryInventoryInformation(java.lang.String pId,
java.lang.String pLocationId)
Returns an InventoryInfo object for the given id and location
|
long |
queryPreorderLevel(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item can be preorder.
|
double |
queryPreorderLevelWithFraction(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item can be preorder.
|
long |
queryPreorderThreshold(java.lang.String pId,
java.lang.String pLocationId)
Return the threshold associated with preorderLevel
|
long |
queryStockLevel(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item are in the system.
|
double |
queryStockLevelWithFraction(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item are in the system.
|
long |
queryStockThreshold(java.lang.String pId,
java.lang.String pLocationId)
Return the threshold associated with stockLevel.
|
void |
releaseInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId)
Release locks for the inventory items that apply to the given
ids.
|
int |
setAvailabilityDate(java.lang.String pId,
java.util.Date pDate,
java.lang.String pLocationId)
Set an item's availability date.
|
int |
setAvailabilityStatus(java.lang.String pId,
int pStatus,
java.lang.String pLocationId)
Set an item's availability status.
|
int |
setBackorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Set an item's backorder level to the specified number.
|
int |
setBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's backorder level to the specified number.
|
int |
setBackorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's backorder level threshold.
|
int |
setPreorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Set an item's preorder level to the specified number.
|
int |
setPreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's preorder level to the specified number.
|
int |
setPreorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's preorder level threshold.
|
int |
setStockLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocationId)
Set an item's stock level to the specified number.
|
int |
setStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's stock level to the specified number.
|
int |
setStockThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's stock level threshold.
|
acquireInventoryLocks, backorder, backorder, decreaseBackorderLevel, decreaseBackorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreaseStockLevel, decreaseStockLevel, getInventoryName, increaseBackorderLevel, increaseBackorderLevel, increasePreorderLevel, increasePreorderLevel, increaseStockLevel, increaseStockLevel, inventoryWasUpdated, preorder, preorder, purchase, purchase, purchaseOffBackorder, purchaseOffBackorder, purchaseOffPreorder, purchaseOffPreorder, queryAvailabilityDate, queryAvailabilityStatus, queryBackorderLevel, queryBackorderLevelWithFraction, queryBackorderThreshold, queryPreorderLevel, queryPreorderLevelWithFraction, queryPreorderThreshold, queryStockLevel, queryStockLevelWithFraction, queryStockThreshold, releaseInventoryLocks, setAvailabilityDate, setAvailabilityStatus, setBackorderLevel, setBackorderLevel, setBackorderThreshold, setPreorderLevel, setPreorderLevel, setPreorderThreshold, setStockLevel, setStockLevel, setStockThreshold
static final java.lang.String CLASS_VERSION
int purchase(java.lang.String pId, long pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem during the purchase process.int purchase(java.lang.String pId, double pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem during the purchase process.int purchaseOffBackorder(java.lang.String pId, long pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem during the purchase process.int purchaseOffBackorder(java.lang.String pId, double pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem during the purchase process.int purchaseOffPreorder(java.lang.String pId, long pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem during the purchase process.int purchaseOffPreorder(java.lang.String pId, double pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem during the purchase process.int preorder(java.lang.String pId, long pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem in trying to preorder the itemint preorder(java.lang.String pId, double pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem in trying to preorder the itemint backorder(java.lang.String pId, long pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem with the backordering process.int backorder(java.lang.String pId, double pQuantity, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpQuantity
- the quantity of productpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem with the backordering process.int setStockLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setStockLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setBackorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setBackorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setPreorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setPreorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint increaseStockLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to add to the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint increaseStockLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to add to the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint decreaseStockLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to decrease from the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint decreaseStockLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to decrease from the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint increaseBackorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to add to the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint increaseBackorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to add to the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint decreaseBackorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to decrease from the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint decreaseBackorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to decrease from the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint increasePreorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to add to the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint increasePreorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to add to the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint decreasePreorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to decrease from the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint decreasePreorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of items to decrease from the current stock levelpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setStockThreshold(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setBackorderThreshold(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setPreorderThreshold(java.lang.String pId, long pNumber, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpNumber
- the number of the given item to restockpLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem trying to restockint setAvailabilityStatus(java.lang.String pId, int pStatus, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpStatus
- the new status (one of AVAILABILITY_STATUS_IN_STOCK,
AVAILABILITY_STATUS_BACKORDERABLE,
AVAILABILITY_STATUS_PREORDERABLE,
AVAILABILITY_STATUS_OUT_OF_STOCK,
AVAILABILITY_STATUS_DISCONTINUED,
or AVAILABILITY_STATUS_DERIVED)pLocationId
- the location of the inventory (null is default warehouse)InventoryException
int setAvailabilityDate(java.lang.String pId, java.util.Date pDate, java.lang.String pLocationId) throws InventoryException
pId
- the id of the item involvedpDate
- The new availability date for the item.pLocationId
- the location of the inventory (null is default warehouse)InventoryException
int queryAvailabilityStatus(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pId
- The id of the item involved.pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the status of the itemlong queryStockLevel(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberdouble queryStockLevelWithFraction(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberlong queryBackorderLevel(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberdouble queryBackorderLevelWithFraction(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberlong queryPreorderLevel(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberdouble queryPreorderLevelWithFraction(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberlong queryStockThreshold(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberlong queryBackorderThreshold(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberlong queryPreorderThreshold(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the numberjava.util.Date queryAvailabilityDate(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
- if there was a problem determining the dateint inventoryWasUpdated(java.util.List pItemIds, java.lang.String pLocationId) throws InventoryException
pItemIds
- The items with recently added inventorypLocationId
- the location of the inventory (null is default warehouse)InventoryException
void acquireInventoryLocks(java.util.List pItemIds, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
void releaseInventoryLocks(java.util.List pItemIds, java.lang.String pLocationId) throws InventoryException
pLocationId
- the location of the inventory (null is default warehouse)InventoryException
InventoryInfo queryInventoryInformation(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
pId
- The item Id to find inventory info forpLocationId
- the location of the inventory (null is default warehouse)InventoryException
java.util.Collection<InventoryInfo> queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds, java.lang.String pLocationId) throws InventoryException
pItemIds
- The items to find inventory information for.pLocationId
- the location of the inventory (null is default warehouse)InventoryException
java.util.Collection<InventoryInfo> queryInventoryInformation(java.lang.String pId, java.util.Collection<java.lang.String> pLocationIds) throws InventoryException
pId
- The item Id to find inventory info forpLocationIds
- The locations to find inventory information for.InventoryException
java.util.Collection<InventoryInfo> queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds, java.util.Collection<java.lang.String> pLocationIds) throws InventoryException
pItemIds
- The items to find inventory information for.pLocationIds
- The locations to find inventory information for.InventoryException
AvailableToPromise queryAvailableToPromise(java.lang.String pItemId, java.lang.String pLocationId) throws InventoryException
pItemId
- The item to find the ATP information forpLocationId
- The location to find ATP information for.InventoryException