public class NoInventoryManager extends AbstractInventoryManagerImpl implements MessageSource
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 |
---|
NoInventoryManager() |
Modifier and Type | Method and Description |
---|---|
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.
|
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, decreaseBackorderLevel, decreaseBackorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreaseStockLevel, decreaseStockLevel, getInventoryName, increaseBackorderLevel, increaseBackorderLevel, increasePreorderLevel, increasePreorderLevel, increaseStockLevel, increaseStockLevel, inventoryWasUpdated, inventoryWasUpdated, preorder, preorder, purchaseOffBackorder, purchaseOffBackorder, purchaseOffPreorder, purchaseOffPreorder, queryAvailabilityDate, queryAvailabilityDate, queryAvailabilityStatus, queryAvailabilityStatus, queryAvailableToPromise, queryBackorderLevel, queryBackorderLevel, queryBackorderThreshold, queryBackorderThreshold, queryInventoryInformation, queryInventoryInformation, queryInventoryInformation, queryInventoryInformation, queryPreorderLevel, queryPreorderLevel, queryPreorderThreshold, queryPreorderThreshold, queryStockLevel, queryStockLevel, queryStockThreshold, queryStockThreshold, releaseInventoryLocks, releaseInventoryLocks, setAvailabilityDate, setAvailabilityDate, setAvailabilityStatus, setAvailabilityStatus, setBackorderLevel, setBackorderLevel, setBackorderThreshold, setBackorderThreshold, setPreorderLevel, setPreorderLevel, setPreorderThreshold, setPreorderThreshold, setStockLevel, setStockLevel, setStockThreshold, setStockThreshold
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 int purchase(java.lang.String pId, long pHowMany) throws InventoryException
purchase
in interface InventoryManager
purchase
in class AbstractInventoryManagerImpl
pId
- the id of the item involvedInventoryException
- if there was a problem during the purchase process.public int purchase(java.lang.String pId, long pHowMany, java.lang.String pLocationId) throws InventoryException
AbstractInventoryManagerImpl
purchase
in interface LocationInventoryManager
purchase
in class AbstractInventoryManagerImpl
pId
- 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 void setMessageSourceContext(MessageSourceContext pContext)
This is an empty implementation
setMessageSourceContext
in interface MessageSource
public void startMessageSource()
This is an empty implementation
startMessageSource
in interface MessageSource
public void stopMessageSource()
This is an empty implementation
stopMessageSource
in interface MessageSource