public class NoInventoryManager extends AbstractInventoryManagerImpl implements MessageSource
| 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 |
|---|
NoInventoryManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
purchase(java.lang.String pId,
double pQuantity)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
double pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
long pQuantity)
Actually purchases a product.
|
int |
purchase(java.lang.String pId,
long pQuantity,
java.lang.String pLocationId)
Actually purchases a product.
|
void |
setMessageSourceContext(MessageSourceContext pContext)
This notifies the MessageSource as to what its
MessageSourceContext should be.
|
void |
startMessageSource()
This is called to tell the MessageSource that it may begin
sending messages.
|
void |
stopMessageSource()
This is called to tell the MessageSource that it should stop
sending messages.
|
acquireInventoryLocks, acquireInventoryLocks, backorder, backorder, backorder, backorder, decreaseBackorderLevel, decreaseBackorderLevel, decreaseBackorderLevel, decreaseBackorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreaseStockLevel, decreaseStockLevel, decreaseStockLevel, decreaseStockLevel, getInventoryName, increaseBackorderLevel, increaseBackorderLevel, increaseBackorderLevel, increaseBackorderLevel, increasePreorderLevel, increasePreorderLevel, increasePreorderLevel, increasePreorderLevel, increaseStockLevel, increaseStockLevel, increaseStockLevel, increaseStockLevel, inventoryWasUpdated, inventoryWasUpdated, preorder, preorder, preorder, preorder, purchaseOffBackorder, purchaseOffBackorder, purchaseOffBackorder, purchaseOffBackorder, purchaseOffPreorder, purchaseOffPreorder, purchaseOffPreorder, purchaseOffPreorder, queryAvailabilityDate, queryAvailabilityDate, queryAvailabilityStatus, queryAvailabilityStatus, queryAvailableToPromise, queryBackorderLevel, queryBackorderLevel, queryBackorderLevelWithFraction, queryBackorderLevelWithFraction, queryBackorderThreshold, queryBackorderThreshold, queryInventoryInformation, queryInventoryInformation, queryInventoryInformation, queryInventoryInformation, queryPreorderLevel, queryPreorderLevel, queryPreorderLevelWithFraction, queryPreorderLevelWithFraction, queryPreorderThreshold, queryPreorderThreshold, queryStockLevel, queryStockLevel, queryStockLevelWithFraction, queryStockLevelWithFraction, queryStockThreshold, queryStockThreshold, releaseInventoryLocks, releaseInventoryLocks, setAvailabilityDate, setAvailabilityDate, setAvailabilityStatus, setAvailabilityStatus, setBackorderLevel, setBackorderLevel, setBackorderLevel, setBackorderLevel, setBackorderThreshold, setBackorderThreshold, setPreorderLevel, setPreorderLevel, setPreorderLevel, setPreorderLevel, setPreorderThreshold, setPreorderThreshold, setStockLevel, setStockLevel, setStockLevel, setStockLevel, setStockThreshold, setStockThresholdaddLogListener, 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 int purchase(java.lang.String pId,
long pQuantity)
throws InventoryException
purchase in interface InventoryManagerpurchase in class AbstractInventoryManagerImplpId - 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 pLocationId)
throws InventoryException
AbstractInventoryManagerImplpurchase in interface LocationInventoryManagerpurchase in class AbstractInventoryManagerImplpId - 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.public int purchase(java.lang.String pId,
double pQuantity)
throws InventoryException
AbstractInventoryManagerImplpurchase in interface InventoryManagerpurchase in class AbstractInventoryManagerImplpId - 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 pLocationId)
throws InventoryException
AbstractInventoryManagerImplpurchase in interface LocationInventoryManagerpurchase in class AbstractInventoryManagerImplpId - 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.public void setMessageSourceContext(MessageSourceContext pContext)
This is an empty implementation
setMessageSourceContext in interface MessageSourcepublic void startMessageSource()
This is an empty implementation
startMessageSource in interface MessageSourcepublic void stopMessageSource()
This is an empty implementation
stopMessageSource in interface MessageSource