public class LocalizingLocationInventoryManager extends SourceSinkTemplate implements LocationInventoryManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
SERVICE_INFO_KEYAVAILABILITY_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_SUCCEEDDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
LocalizingLocationInventoryManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireInventoryLocks(java.util.List pItemIds)
Acquires locks for the inventory items that apply to the given
ids.
|
void |
acquireInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId)
Acquires locks for the inventory items that apply to the given
ids.
|
void |
acquireInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
backorder(java.lang.String pId,
long pHowMany)
Backorder an item.
|
int |
backorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
Backorder an item.
|
int |
backorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
decreaseBackorderLevel(java.lang.String pId,
long pNumber)
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 |
decreaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
decreasePreorderLevel(java.lang.String pId,
long pNumber)
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 |
decreasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
decreaseStockLevel(java.lang.String pId,
long pNumber)
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 |
decreaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
LocationInventoryManager |
getDefaultInventoryManager()
Returns property DefaultInventoryManager
|
java.lang.String |
getDefaultLocaleKey() |
LocationInventoryManager |
getInventoryManager(java.lang.String pLocaleKey)
Returns an InventoryManager, localized if the localeKey parameter was passed
as a parameter to the servlet bean and a map of InventoryManagers has been defined.
|
ServiceMap |
getInventoryManagers()
Returns property InventoryManagers
|
java.lang.String |
getInventoryName()
The displayable name of this inventory manager.
|
java.lang.String |
getInventoryName(java.lang.String pLocaleKey) |
int |
increaseBackorderLevel(java.lang.String pId,
long pNumber)
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 |
increaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
increasePreorderLevel(java.lang.String pId,
long pNumber)
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 |
increasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
increaseStockLevel(java.lang.String pId,
long pNumber)
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 |
increaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
inventoryWasUpdated(java.util.List pItemIds)
Informs the inventory manager that the given ids are now available.
|
int |
inventoryWasUpdated(java.util.List pItemIds,
java.lang.String pLocationId)
Informs the inventory manager that the given ids are now available.
|
int |
inventoryWasUpdated(java.util.List pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
boolean |
isUseDefaultInventoryManager()
Returns property useDefaultInventoryManager
|
int |
preorder(java.lang.String pId,
long pHowMany)
Preorder an item.
|
int |
preorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
Preorder an item.
|
int |
preorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
purchase(java.lang.String pId,
long pHowMany)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
purchaseOffBackorder(java.lang.String pId,
long pHowMany)
Actually purchases a product.
|
int |
purchaseOffBackorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchaseOffBackorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
purchaseOffPreorder(java.lang.String pId,
long pHowMany)
Actually purchases a product.
|
int |
purchaseOffPreorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchaseOffPreorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
java.util.Date |
queryAvailabilityDate(java.lang.String pId)
Return the availability date of an item.
|
java.util.Date |
queryAvailabilityDate(java.lang.String pId,
java.lang.String pLocationId)
Return the availability date of an item.
|
java.util.Date |
queryAvailabilityDate(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
queryAvailabilityStatus(java.lang.String pId)
Return the availability status of a given item.
|
int |
queryAvailabilityStatus(java.lang.String pId,
java.lang.String pLocationId)
Return the availability status of a given item.
|
int |
queryAvailabilityStatus(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
AvailableToPromise |
queryAvailableToPromise(java.lang.String pItemId,
java.lang.String pLocationId)
Returns Available To Promise information for a given id and location
|
AvailableToPromise |
queryAvailableToPromise(java.lang.String pItemId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
long |
queryBackorderLevel(java.lang.String pId)
Return how many of a given item can be backorder.
|
long |
queryBackorderLevel(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item can be backorder.
|
long |
queryBackorderLevel(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
long |
queryBackorderThreshold(java.lang.String pId)
Return the threshold associated with backorderLevel
|
long |
queryBackorderThreshold(java.lang.String pId,
java.lang.String pLocationId)
Return the threshold associated with backorderLevel
|
long |
queryBackorderThreshold(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
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.util.Collection<java.lang.String> pLocationIds,
java.lang.String pLocaleKey) |
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.util.Collection<java.lang.String> pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
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
|
java.util.Collection<InventoryInfo> |
queryInventoryInformation(java.lang.String pId,
java.util.Collection<java.lang.String> pLocationIds,
java.lang.String pLocaleKey) |
InventoryInfo |
queryInventoryInformation(java.lang.String pId,
java.lang.String pLocationId)
Returns an InventoryInfo object for the given id and location
|
InventoryInfo |
queryInventoryInformation(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
long |
queryPreorderLevel(java.lang.String pId)
Return how many of a given item can be preorder.
|
long |
queryPreorderLevel(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item can be preorder.
|
long |
queryPreorderLevel(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
long |
queryPreorderThreshold(java.lang.String pId)
Return the threshold associated with preorderLevel
|
long |
queryPreorderThreshold(java.lang.String pId,
java.lang.String pLocationId)
Return the threshold associated with preorderLevel
|
long |
queryPreorderThreshold(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
long |
queryStockLevel(java.lang.String pId)
Return how many of a given item are in the system.
|
long |
queryStockLevel(java.lang.String pId,
java.lang.String pLocationId)
Return how many of a given item are in the system.
|
long |
queryStockLevel(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
long |
queryStockThreshold(java.lang.String pId)
Return the threshold associated with stockLevel.
|
long |
queryStockThreshold(java.lang.String pId,
java.lang.String pLocationId)
Return the threshold associated with stockLevel.
|
long |
queryStockThreshold(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
void |
releaseInventoryLocks(java.util.List pItemIds)
Release locks for the inventory items that apply to the given
ids.
|
void |
releaseInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId)
Release locks for the inventory items that apply to the given
ids.
|
void |
releaseInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setAvailabilityDate(java.lang.String pId,
java.util.Date pDate)
Set an item's availability date.
|
int |
setAvailabilityDate(java.lang.String pId,
java.util.Date pDate,
java.lang.String pLocationId)
Set an item's availability date.
|
int |
setAvailabilityDate(java.lang.String pId,
java.util.Date pDate,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setAvailabilityStatus(java.lang.String pId,
int pStatus)
Set an item's availability status.
|
int |
setAvailabilityStatus(java.lang.String pId,
int pStatus,
java.lang.String pLocationId)
Set an item's availability status.
|
int |
setAvailabilityStatus(java.lang.String pId,
int pStatus,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setBackorderLevel(java.lang.String pId,
long pNumber)
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 |
setBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setBackorderThreshold(java.lang.String pId,
long pNumber)
Set an item's backorder level threshold.
|
int |
setBackorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's backorder level threshold.
|
int |
setBackorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
void |
setDefaultInventoryManager(LocationInventoryManager pDefaultInventoryManager)
Sets property InventoryManager
|
void |
setDefaultLocaleKey(java.lang.String pDefaultLocaleKey)
Sets property mDefaultLocalKey
|
void |
setInventoryManagers(ServiceMap pInventoryManagers)
Sets property InventoryManagers
|
int |
setPreorderLevel(java.lang.String pId,
long pNumber)
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 |
setPreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setPreorderThreshold(java.lang.String pId,
long pNumber)
Set an item's preorder level threshold.
|
int |
setPreorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's preorder level threshold.
|
int |
setPreorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setStockLevel(java.lang.String pId,
long pNumber)
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 |
setStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
int |
setStockThreshold(java.lang.String pId,
long pNumber)
Set an item's stock level threshold.
|
int |
setStockThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
Set an item's stock level threshold.
|
int |
setStockThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey) |
void |
setUseDefaultInventoryManager(boolean pUseDefaultInventoryManager)
Sets property useDefaultInventoryManager.
|
getDelayOnSendRetry, getMessageSourceContext, getMessageSourceName, getTransactionManager, isAllowMessageSending, receiveMessage, sendCommerceMessage, sendObjectMessage, setAllowMessageSending, setDelayOnSendRetry, setMessageSourceContext, setMessageSourceName, setTransactionManager, startMessageSource, stopMessageSourceaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setDefaultLocaleKey(java.lang.String pDefaultLocaleKey)
public java.lang.String getDefaultLocaleKey()
public void setDefaultInventoryManager(LocationInventoryManager pDefaultInventoryManager)
public LocationInventoryManager getDefaultInventoryManager()
public void setInventoryManagers(ServiceMap pInventoryManagers)
public ServiceMap getInventoryManagers()
public void setUseDefaultInventoryManager(boolean pUseDefaultInventoryManager)
public boolean isUseDefaultInventoryManager()
public LocationInventoryManager getInventoryManager(java.lang.String pLocaleKey)
public java.lang.String getInventoryName(java.lang.String pLocaleKey)
public int purchase(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.purchase(String, long, String)public int purchaseOffBackorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.purchaseOffBackorder(String, long, String)public int purchaseOffPreorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.purchaseOffPreorder(String, long, String)public int preorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.preorder(String, long, String)public int backorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.backorder(String, long, String)public int setStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setStockLevel(String, long, String)public int setBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setBackorderLevel(String, long, String)public int setPreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setPreorderLevel(String, long, String)public int increaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.increaseStockLevel(String, long, String)public int decreaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.decreaseStockLevel(String, long, String)public int increaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.increaseBackorderLevel(String, long, String)public int decreaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.decreaseBackorderLevel(String, long, String)public int increasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.increasePreorderLevel(String, long, String)public int decreasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.decreasePreorderLevel(String, long, String)public int setStockThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setStockThreshold(String, long, String)public int setBackorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setBackorderThreshold(String, long, String)public int setPreorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setPreorderThreshold(String, long, String)public int setAvailabilityStatus(java.lang.String pId,
int pStatus,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setAvailabilityStatus(String, int, String)public int setAvailabilityDate(java.lang.String pId,
java.util.Date pDate,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.setAvailabilityDate(String, Date, String)public int queryAvailabilityStatus(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryAvailabilityStatus(String, String)public long queryStockLevel(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryStockLevel(String, String)public long queryBackorderLevel(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryBackorderLevel(String, String)public long queryPreorderLevel(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager#queryPreOrderLevel(String, String)public long queryStockThreshold(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryStockThreshold(String, String)public long queryBackorderThreshold(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryBackorderThreshold(String, String)public long queryPreorderThreshold(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryPreorderThreshold(String, String)public java.util.Date queryAvailabilityDate(java.lang.String pId,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryAvailabilityDate(String, String)public int inventoryWasUpdated(java.util.List pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager#inventoryWasUpdated(String, String)public void acquireInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager#acquireInventoryLocks(String, String)public void releaseInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId,
java.lang.String pLocaleKey)
throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager#releaseInventoryLocks(String, String)public InventoryInfo queryInventoryInformation(java.lang.String pId, java.lang.String pLocationId, java.lang.String pLocaleKey) throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryInventoryInformation(String, String)public java.util.Collection<InventoryInfo> queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds, java.lang.String pLocationId, java.lang.String pLocaleKey) throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager#queryInventoryInformation(Collection, String) public java.util.Collection<InventoryInfo> queryInventoryInformation(java.lang.String pId, java.util.Collection<java.lang.String> pLocationIds, java.lang.String pLocaleKey) throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryInventoryInformation(String, Collection)public java.util.Collection<InventoryInfo> queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds, java.util.Collection<java.lang.String> pLocationIds, java.lang.String pLocaleKey) throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryInventoryInformation(Collection, Collection)public AvailableToPromise queryAvailableToPromise(java.lang.String pItemId, java.lang.String pLocationId, java.lang.String pLocaleKey) throws InventoryException
pLocaleKey - the locale keyInventoryExceptionLocationInventoryManager.queryAvailableToPromise(String, String)public java.lang.String getInventoryName()
InventoryManagergetInventoryName in interface InventoryManagerpublic int purchase(java.lang.String pId,
long pHowMany)
throws InventoryException
InventoryManagerpurchase in interface InventoryManagerpId - the id of the item involvedInventoryException - if there was a problem during the purchase process.public int purchaseOffBackorder(java.lang.String pId,
long pHowMany)
throws InventoryException
InventoryManagerpurchaseOffBackorder in interface InventoryManagerpId - the id of the item involvedInventoryException - if there was a problem during the purchase process.public int purchaseOffPreorder(java.lang.String pId,
long pHowMany)
throws InventoryException
InventoryManagerpurchaseOffPreorder in interface InventoryManagerpId - the id of the item involvedInventoryException - if there was a problem during the purchase process.public int preorder(java.lang.String pId,
long pHowMany)
throws InventoryException
InventoryManagerpreorder in interface InventoryManagerpId - the id of the item involvedInventoryException - if there was a problem in trying to preorder the itempublic int backorder(java.lang.String pId,
long pHowMany)
throws InventoryException
InventoryManagerbackorder in interface InventoryManagerpId - the id of the item involvedInventoryException - if there was a problem with the backordering process.public int setStockLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagersetStockLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of the given item to restockInventoryException - if there was a problem trying to restockpublic int setBackorderLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagersetBackorderLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of the given item to restockInventoryException - if there was a problem trying to restockpublic int setPreorderLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagersetPreorderLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of the given item to restockInventoryException - if there was a problem trying to restockpublic int increaseStockLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagerincreaseStockLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of items to add to the current stock levelInventoryException - if there was a problem trying to restockpublic int decreaseStockLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagerdecreaseStockLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of items to decrease from the current stock levelInventoryException - if there was a problem trying to restockpublic int increaseBackorderLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagerincreaseBackorderLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of items to add to the current stock levelInventoryException - if there was a problem trying to restockpublic int decreaseBackorderLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagerdecreaseBackorderLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of items to decrease from the current stock levelInventoryException - if there was a problem trying to restockpublic int increasePreorderLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagerincreasePreorderLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of items to add to the current stock levelInventoryException - if there was a problem trying to restockpublic int decreasePreorderLevel(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagerdecreasePreorderLevel in interface InventoryManagerpId - the id of the item involvedpNumber - the number of items to decrease from the current stock levelInventoryException - if there was a problem trying to restockpublic int setStockThreshold(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagersetStockThreshold in interface InventoryManagerpId - the id of the item involvedpNumber - the number of the given item to restockInventoryException - if there was a problem trying to restockpublic int setBackorderThreshold(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagersetBackorderThreshold in interface InventoryManagerpId - the id of the item involvedpNumber - the number of the given item to restockInventoryException - if there was a problem trying to restockpublic int setPreorderThreshold(java.lang.String pId,
long pNumber)
throws InventoryException
InventoryManagersetPreorderThreshold in interface InventoryManagerpId - the id of the item involvedpNumber - the number of the given item to restockInventoryException - if there was a problem trying to restockpublic int setAvailabilityStatus(java.lang.String pId,
int pStatus)
throws InventoryException
InventoryManagersetAvailabilityStatus in interface InventoryManagerpId - 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)InventoryExceptionpublic int setAvailabilityDate(java.lang.String pId,
java.util.Date pDate)
throws InventoryException
InventoryManagersetAvailabilityDate in interface InventoryManagerpId - the id of the item involvedpDate - The new availability date for the item.InventoryExceptionpublic int queryAvailabilityStatus(java.lang.String pId)
throws InventoryException
InventoryManagerqueryAvailabilityStatus in interface InventoryManagerpId - The id of the item involved.InventoryException - if there was a problem determining the status of the itempublic long queryStockLevel(java.lang.String pId)
throws InventoryException
InventoryManagerqueryStockLevel in interface InventoryManagerInventoryException - if there was a problem determining the numberpublic long queryBackorderLevel(java.lang.String pId)
throws InventoryException
InventoryManagerqueryBackorderLevel in interface InventoryManagerInventoryException - if there was a problem determining the numberpublic long queryPreorderLevel(java.lang.String pId)
throws InventoryException
InventoryManagerqueryPreorderLevel in interface InventoryManagerInventoryException - if there was a problem determining the numberpublic long queryStockThreshold(java.lang.String pId)
throws InventoryException
InventoryManagerqueryStockThreshold in interface InventoryManagerInventoryException - if there was a problem determining the numberpublic long queryBackorderThreshold(java.lang.String pId)
throws InventoryException
InventoryManagerqueryBackorderThreshold in interface InventoryManagerInventoryException - if there was a problem determining the numberpublic long queryPreorderThreshold(java.lang.String pId)
throws InventoryException
InventoryManagerqueryPreorderThreshold in interface InventoryManagerInventoryException - if there was a problem determining the numberpublic java.util.Date queryAvailabilityDate(java.lang.String pId)
throws InventoryException
InventoryManagerqueryAvailabilityDate in interface InventoryManagerInventoryException - if there was a problem determining the datepublic int inventoryWasUpdated(java.util.List pItemIds)
throws InventoryException
InventoryManagerinventoryWasUpdated in interface InventoryManagerpItemIds - The items with recently added inventoryInventoryExceptionpublic void acquireInventoryLocks(java.util.List pItemIds)
throws InventoryException
InventoryManageracquireInventoryLocks in interface InventoryManagerInventoryExceptionpublic void releaseInventoryLocks(java.util.List pItemIds)
throws InventoryException
InventoryManagerreleaseInventoryLocks in interface InventoryManagerInventoryExceptionpublic int purchase(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerpurchase in interface LocationInventoryManagerpId - the id of the item involvedpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem during the purchase process.public int purchaseOffBackorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerpurchaseOffBackorder in interface LocationInventoryManagerpId - the id of the item involvedpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem during the purchase process.public int purchaseOffPreorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerpurchaseOffPreorder in interface LocationInventoryManagerpId - the id of the item involvedpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem during the purchase process.public int preorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerpreorder in interface LocationInventoryManagerpId - the id of the item involvedpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem in trying to preorder the itempublic int backorder(java.lang.String pId,
long pHowMany,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerbackorder in interface LocationInventoryManagerpId - the id of the item involvedpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem with the backordering process.public int setStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetStockLevel in interface LocationInventoryManagerpId - 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 restockpublic int setBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetBackorderLevel in interface LocationInventoryManagerpId - 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 restockpublic int setPreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetPreorderLevel in interface LocationInventoryManagerpId - 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 restockpublic int increaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerincreaseStockLevel in interface LocationInventoryManagerpId - 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 restockpublic int decreaseStockLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerdecreaseStockLevel in interface LocationInventoryManagerpId - 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 restockpublic int increaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerincreaseBackorderLevel in interface LocationInventoryManagerpId - 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 restockpublic int decreaseBackorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerdecreaseBackorderLevel in interface LocationInventoryManagerpId - 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 restockpublic int increasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerincreasePreorderLevel in interface LocationInventoryManagerpId - 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 restockpublic int decreasePreorderLevel(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerdecreasePreorderLevel in interface LocationInventoryManagerpId - 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 restockpublic int setStockThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetStockThreshold in interface LocationInventoryManagerpId - 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 restockpublic int setBackorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetBackorderThreshold in interface LocationInventoryManagerpId - 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 restockpublic int setPreorderThreshold(java.lang.String pId,
long pNumber,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetPreorderThreshold in interface LocationInventoryManagerpId - 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 restockpublic int setAvailabilityStatus(java.lang.String pId,
int pStatus,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetAvailabilityStatus in interface LocationInventoryManagerpId - 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)InventoryExceptionpublic int setAvailabilityDate(java.lang.String pId,
java.util.Date pDate,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagersetAvailabilityDate in interface LocationInventoryManagerpId - the id of the item involvedpDate - The new availability date for the item.pLocationId - the location of the inventory (null is default warehouse)InventoryExceptionpublic int queryAvailabilityStatus(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryAvailabilityStatus in interface LocationInventoryManagerpId - 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 itempublic long queryStockLevel(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryStockLevel in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the numberpublic long queryBackorderLevel(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryBackorderLevel in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the numberpublic long queryPreorderLevel(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryPreorderLevel in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the numberpublic long queryStockThreshold(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryStockThreshold in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the numberpublic long queryBackorderThreshold(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryBackorderThreshold in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the numberpublic long queryPreorderThreshold(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryPreorderThreshold in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the numberpublic java.util.Date queryAvailabilityDate(java.lang.String pId,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerqueryAvailabilityDate in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryException - if there was a problem determining the datepublic int inventoryWasUpdated(java.util.List pItemIds,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerinventoryWasUpdated in interface LocationInventoryManagerpItemIds - The items with recently added inventorypLocationId - the location of the inventory (null is default warehouse)InventoryExceptionpublic void acquireInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManageracquireInventoryLocks in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryExceptionpublic void releaseInventoryLocks(java.util.List pItemIds,
java.lang.String pLocationId)
throws InventoryException
LocationInventoryManagerreleaseInventoryLocks in interface LocationInventoryManagerpLocationId - the location of the inventory (null is default warehouse)InventoryExceptionpublic InventoryInfo queryInventoryInformation(java.lang.String pId, java.lang.String pLocationId) throws InventoryException
LocationInventoryManagerqueryInventoryInformation in interface LocationInventoryManagerpId - The item Id to find inventory info forpLocationId - the location of the inventory (null is default warehouse)InventoryExceptionpublic java.util.Collection<InventoryInfo> queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds, java.lang.String pLocationId) throws InventoryException
LocationInventoryManagerqueryInventoryInformation in interface LocationInventoryManagerpItemIds - The items to find inventory information for.pLocationId - the location of the inventory (null is default warehouse)InventoryExceptionpublic java.util.Collection<InventoryInfo> queryInventoryInformation(java.lang.String pId, java.util.Collection<java.lang.String> pLocationIds) throws InventoryException
LocationInventoryManagerqueryInventoryInformation in interface LocationInventoryManagerpId - The item Id to find inventory info forpLocationIds - The locations to find inventory information for.InventoryExceptionpublic java.util.Collection<InventoryInfo> queryInventoryInformation(java.util.Collection<java.lang.String> pItemIds, java.util.Collection<java.lang.String> pLocationIds) throws InventoryException
LocationInventoryManagerqueryInventoryInformation in interface LocationInventoryManagerpItemIds - The items to find inventory information for.pLocationIds - The locations to find inventory information for.InventoryExceptionpublic AvailableToPromise queryAvailableToPromise(java.lang.String pItemId, java.lang.String pLocationId) throws InventoryException
LocationInventoryManagerqueryAvailableToPromise in interface LocationInventoryManagerpItemId - The item to find the ATP information forpLocationId - The location to find ATP information for.InventoryException