public class LocalizingInventoryManager extends SourceSinkTemplate implements InventoryManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
SERVICE_INFO_KEY
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
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
LocalizingInventoryManager() |
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 pLocaleKey) |
int |
backorder(java.lang.String pId,
double pQuantity)
Backorder an item.
|
int |
backorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocaleKey) |
int |
backorder(java.lang.String pId,
long pQuantity)
Backorder an item.
|
int |
backorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocaleKey) |
int |
decreaseBackorderLevel(java.lang.String pId,
double pNumber)
Decrease an item's backorder level by the specified amount.
|
int |
decreaseBackorderLevel(java.lang.String pId,
double pNumber,
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 pLocaleKey) |
int |
decreasePreorderLevel(java.lang.String pId,
double pNumber)
Decrease an item's preorder level by the specified amount.
|
int |
decreasePreorderLevel(java.lang.String pId,
double pNumber,
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 pLocaleKey) |
int |
decreaseStockLevel(java.lang.String pId,
double pNumber)
Decrease an item's stock level by the specified amount.
|
int |
decreaseStockLevel(java.lang.String pId,
double pNumber,
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 pLocaleKey) |
InventoryManager |
getDefaultInventoryManager()
Returns property DefaultInventoryManager
|
java.lang.String |
getDefaultLocaleKey() |
InventoryManager |
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,
double pNumber)
Increase an item's backorder level by the specified number.
|
int |
increaseBackorderLevel(java.lang.String pId,
double pNumber,
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 pLocaleKey) |
int |
increasePreorderLevel(java.lang.String pId,
double pNumber)
Increase an item's preorder level by the specified number.
|
int |
increasePreorderLevel(java.lang.String pId,
double pNumber,
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 pLocaleKey) |
int |
increaseStockLevel(java.lang.String pId,
double pNumber)
Increase an item's stock level by the specified number.
|
int |
increaseStockLevel(java.lang.String pId,
double pNumber,
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 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 pLocaleKey) |
boolean |
isUseDefaultInventoryManager()
Returns property useDefaultInventoryManager
|
int |
preorder(java.lang.String pId,
double pQuantity)
Preorder an item.
|
int |
preorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocaleKey) |
int |
preorder(java.lang.String pId,
long pQuantity)
Preorder an item.
|
int |
preorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocaleKey) |
int |
purchase(java.lang.String pId,
double pQuantity)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
double pQuantity,
java.lang.String pLocaleKey) |
int |
purchase(java.lang.String pId,
long pQuantity)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
long pQuantity,
java.lang.String pLocaleKey) |
int |
purchaseOffBackorder(java.lang.String pId,
double pQuantity)
Actually purchases a product.
|
int |
purchaseOffBackorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocaleKey) |
int |
purchaseOffBackorder(java.lang.String pId,
long pQuantity)
Actually purchases a product.
|
int |
purchaseOffBackorder(java.lang.String pId,
long pQuantity,
java.lang.String pLocaleKey) |
int |
purchaseOffPreorder(java.lang.String pId,
double pQuantity)
Actually purchases a product.
|
int |
purchaseOffPreorder(java.lang.String pId,
double pQuantity,
java.lang.String pLocaleKey) |
int |
purchaseOffPreorder(java.lang.String pId,
long pQuantity)
Actually purchases a product.
|
int |
purchaseOffPreorder(java.lang.String pId,
long pQuantity,
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 pLocaleKey) |
int |
queryAvailabilityStatus(java.lang.String pId)
Return the availability status of a given item.
|
int |
queryAvailabilityStatus(java.lang.String pId,
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 pLocaleKey) |
double |
queryBackorderLevelWithFraction(java.lang.String pId)
Return how many of a given item can be backorder.
|
double |
queryBackorderLevelWithFraction(java.lang.String pId,
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 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 pLocaleKey) |
double |
queryPreorderLevelWithFraction(java.lang.String pId)
Return how many of a given item can be preorder.
|
double |
queryPreorderLevelWithFraction(java.lang.String pId,
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 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 pLocaleKey) |
double |
queryStockLevelWithFraction(java.lang.String pId)
Return how many of a given item are in the system.
|
double |
queryStockLevelWithFraction(java.lang.String pId,
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 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 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 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 pLocaleKey) |
int |
setBackorderLevel(java.lang.String pId,
double pNumber)
Set an item's backorder level to the specified number.
|
int |
setBackorderLevel(java.lang.String pId,
double pNumber,
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 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 pLocaleKey) |
void |
setDefaultInventoryManager(InventoryManager 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,
double pNumber)
Set an item's preorder level to the specified number.
|
int |
setPreorderLevel(java.lang.String pId,
double pNumber,
java.lang.String pLocaleKey) |
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 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 pLocaleKey) |
int |
setStockLevel(java.lang.String pId,
double pNumber)
Set an item's stock level to the specified number.
|
int |
setStockLevel(java.lang.String pId,
double pNumber,
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 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 pLocaleKey) |
void |
setUseDefaultInventoryManager(boolean pUseDefaultInventoryManager)
Sets property useDefaultInventoryManager.
|
receiveMessage, sendCommerceMessage
beforeSendMessage, getDefaultMessageSourceName, getDelayOnSendRetry, getLimboDeliveryDelay, getMessageSourceContext, getMessageSourceName, getTransactionManager, isAllowMessageSending, sendObjectMessage, setAllowMessageSending, setDelayOnSendRetry, setLimboDeliveryDelay, setMessageSourceContext, setMessageSourceName, setTransactionManager, startMessageSource, stopMessageSource
addLogListener, 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, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setDefaultLocaleKey(java.lang.String pDefaultLocaleKey)
public java.lang.String getDefaultLocaleKey()
public void setDefaultInventoryManager(InventoryManager pDefaultInventoryManager)
public InventoryManager getDefaultInventoryManager()
public void setInventoryManagers(ServiceMap pInventoryManagers)
public ServiceMap getInventoryManagers()
public void setUseDefaultInventoryManager(boolean pUseDefaultInventoryManager)
public boolean isUseDefaultInventoryManager()
public java.lang.String getInventoryName()
getInventoryName
in interface InventoryManager
public java.lang.String getInventoryName(java.lang.String pLocaleKey)
public InventoryManager getInventoryManager(java.lang.String pLocaleKey)
public int purchase(java.lang.String pId, long pQuantity) throws InventoryException
purchase
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem during the purchase process.public int purchase(java.lang.String pId, long pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int purchase(java.lang.String pId, double pQuantity) throws InventoryException
InventoryManager
purchase
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem during the purchase process.public int purchase(java.lang.String pId, double pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int purchaseOffBackorder(java.lang.String pId, long pQuantity) throws InventoryException
purchaseOffBackorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem during the purchase process.public int purchaseOffBackorder(java.lang.String pId, long pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int purchaseOffBackorder(java.lang.String pId, double pQuantity) throws InventoryException
InventoryManager
purchaseOffBackorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem during the purchase process.public int purchaseOffBackorder(java.lang.String pId, double pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int purchaseOffPreorder(java.lang.String pId, long pQuantity) throws InventoryException
purchaseOffPreorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem during the purchase process.public int purchaseOffPreorder(java.lang.String pId, long pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int purchaseOffPreorder(java.lang.String pId, double pQuantity) throws InventoryException
InventoryManager
purchaseOffPreorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem during the purchase process.public int purchaseOffPreorder(java.lang.String pId, double pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int preorder(java.lang.String pId, long pQuantity) throws InventoryException
preorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem in trying to preorder the itempublic int preorder(java.lang.String pId, long pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int preorder(java.lang.String pId, double pQuantity) throws InventoryException
InventoryManager
preorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem in trying to preorder the itempublic int preorder(java.lang.String pId, double pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int backorder(java.lang.String pId, long pQuantity) throws InventoryException
backorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem with the backordering process.public int backorder(java.lang.String pId, long pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int backorder(java.lang.String pId, double pQuantity) throws InventoryException
InventoryManager
backorder
in interface InventoryManager
pId
- the id of the item involvedpQuantity
- the quantity of productInventoryException
- if there was a problem with the backordering process.public int backorder(java.lang.String pId, double pQuantity, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setStockLevel(java.lang.String pId, long pNumber) throws InventoryException
setStockLevel
in interface InventoryManager
pId
- the id of the item involvedpNumber
- the number of the given item to restockInventoryException
- if there was a problem trying to restockpublic int setStockLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setStockLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
setStockLevel
in interface InventoryManager
pId
- the id of the item involvedpNumber
- the number of the given item to restockInventoryException
- if there was a problem trying to restockpublic int setStockLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setBackorderLevel(java.lang.String pId, long pNumber) throws InventoryException
setBackorderLevel
in interface InventoryManager
pId
- 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, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setBackorderLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
setBackorderLevel
in interface InventoryManager
pId
- 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, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setPreorderLevel(java.lang.String pId, long pNumber) throws InventoryException
setPreorderLevel
in interface InventoryManager
pId
- 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, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setPreorderLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
setPreorderLevel
in interface InventoryManager
pId
- 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, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int increaseStockLevel(java.lang.String pId, long pNumber) throws InventoryException
increaseStockLevel
in interface InventoryManager
pId
- 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 increaseStockLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int increaseStockLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
increaseStockLevel
in interface InventoryManager
pId
- 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 increaseStockLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int decreaseStockLevel(java.lang.String pId, long pNumber) throws InventoryException
decreaseStockLevel
in interface InventoryManager
pId
- 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 decreaseStockLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int decreaseStockLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
decreaseStockLevel
in interface InventoryManager
pId
- 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 decreaseStockLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int increaseBackorderLevel(java.lang.String pId, long pNumber) throws InventoryException
increaseBackorderLevel
in interface InventoryManager
pId
- 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 increaseBackorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int increaseBackorderLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
increaseBackorderLevel
in interface InventoryManager
pId
- 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 increaseBackorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int decreaseBackorderLevel(java.lang.String pId, long pNumber) throws InventoryException
decreaseBackorderLevel
in interface InventoryManager
pId
- 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 decreaseBackorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int decreaseBackorderLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
decreaseBackorderLevel
in interface InventoryManager
pId
- 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 decreaseBackorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int increasePreorderLevel(java.lang.String pId, long pNumber) throws InventoryException
increasePreorderLevel
in interface InventoryManager
pId
- 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 increasePreorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int increasePreorderLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
increasePreorderLevel
in interface InventoryManager
pId
- 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 increasePreorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int decreasePreorderLevel(java.lang.String pId, long pNumber) throws InventoryException
decreasePreorderLevel
in interface InventoryManager
pId
- 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 decreasePreorderLevel(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int decreasePreorderLevel(java.lang.String pId, double pNumber) throws InventoryException
InventoryManager
decreasePreorderLevel
in interface InventoryManager
pId
- 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 decreasePreorderLevel(java.lang.String pId, double pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setStockThreshold(java.lang.String pId, long pNumber) throws InventoryException
setStockThreshold
in interface InventoryManager
pId
- the id of the item involvedpNumber
- the number of the given item to restockInventoryException
- if there was a problem trying to restockpublic int setStockThreshold(java.lang.String pId, long pNumber, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setBackorderThreshold(java.lang.String pId, long pNumber) throws InventoryException
setBackorderThreshold
in interface InventoryManager
pId
- 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, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setPreorderThreshold(java.lang.String pId, long pNumber) throws InventoryException
setPreorderThreshold
in interface InventoryManager
pId
- 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, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setAvailabilityStatus(java.lang.String pId, int pStatus) throws InventoryException
setAvailabilityStatus
in interface InventoryManager
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)InventoryException
public int setAvailabilityStatus(java.lang.String pId, int pStatus, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int setAvailabilityDate(java.lang.String pId, java.util.Date pDate) throws InventoryException
setAvailabilityDate
in interface InventoryManager
pId
- the id of the item involvedpDate
- The new availability date for the item.InventoryException
public int setAvailabilityDate(java.lang.String pId, java.util.Date pDate, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int queryAvailabilityStatus(java.lang.String pId) throws InventoryException
queryAvailabilityStatus
in interface InventoryManager
pId
- The id of the item involved.InventoryException
- if there was a problem determining the status of the itempublic int queryAvailabilityStatus(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public long queryStockLevel(java.lang.String pId) throws InventoryException
queryStockLevel
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic long queryStockLevel(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public double queryStockLevelWithFraction(java.lang.String pId) throws InventoryException
queryStockLevelWithFraction
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic double queryStockLevelWithFraction(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public long queryBackorderLevel(java.lang.String pId) throws InventoryException
queryBackorderLevel
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic long queryBackorderLevel(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public double queryBackorderLevelWithFraction(java.lang.String pId) throws InventoryException
queryBackorderLevelWithFraction
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic double queryBackorderLevelWithFraction(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public long queryPreorderLevel(java.lang.String pId) throws InventoryException
queryPreorderLevel
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic long queryPreorderLevel(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public double queryPreorderLevelWithFraction(java.lang.String pId) throws InventoryException
queryPreorderLevelWithFraction
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic double queryPreorderLevelWithFraction(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public long queryStockThreshold(java.lang.String pId) throws InventoryException
queryStockThreshold
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic long queryStockThreshold(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public long queryBackorderThreshold(java.lang.String pId) throws InventoryException
queryBackorderThreshold
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic long queryBackorderThreshold(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public long queryPreorderThreshold(java.lang.String pId) throws InventoryException
queryPreorderThreshold
in interface InventoryManager
InventoryException
- if there was a problem determining the numberpublic long queryPreorderThreshold(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public java.util.Date queryAvailabilityDate(java.lang.String pId) throws InventoryException
queryAvailabilityDate
in interface InventoryManager
InventoryException
- if there was a problem determining the datepublic java.util.Date queryAvailabilityDate(java.lang.String pId, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public int inventoryWasUpdated(java.util.List pItemIds) throws InventoryException
inventoryWasUpdated
in interface InventoryManager
pItemIds
- The items with recently added inventoryInventoryException
public int inventoryWasUpdated(java.util.List pItemIds, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public void acquireInventoryLocks(java.util.List pItemIds) throws InventoryException
acquireInventoryLocks
in interface InventoryManager
InventoryException
public void acquireInventoryLocks(java.util.List pItemIds, java.lang.String pLocaleKey) throws InventoryException
InventoryException
public void releaseInventoryLocks(java.util.List pItemIds) throws InventoryException
releaseInventoryLocks
in interface InventoryManager
InventoryException
public void releaseInventoryLocks(java.util.List pItemIds, java.lang.String pLocaleKey) throws InventoryException
InventoryException