atg.commerce.inventory
Class NoInventoryManager
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.inventory.AbstractInventoryManagerImpl
atg.commerce.inventory.NoInventoryManager
- All Implemented Interfaces:
- InventoryManager, MessageSource, NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener
public class NoInventoryManager
- extends AbstractInventoryManagerImpl
- implements MessageSource
This implementation of the InventoryManager interface is intented to be merely a placeholder.
It will be useful in cases where no InventoryManager functionality is required, but
an inventory manager of some kind is needed for a property setting (for example).
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
Method Summary |
int |
purchase(java.lang.String pId,
long pHowMany)
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. |
Methods inherited from class atg.commerce.inventory.AbstractInventoryManagerImpl |
acquireInventoryLocks, backorder, decreaseBackorderLevel, decreasePreorderLevel, decreaseStockLevel, getInventoryName, increaseBackorderLevel, increasePreorderLevel, increaseStockLevel, inventoryWasUpdated, preorder, purchaseOffBackorder, purchaseOffPreorder, queryAvailabilityDate, queryAvailabilityStatus, queryBackorderLevel, queryBackorderThreshold, queryPreorderLevel, queryPreorderThreshold, queryStockLevel, queryStockThreshold, releaseInventoryLocks, setAvailabilityDate, setAvailabilityStatus, setBackorderLevel, setBackorderThreshold, setPreorderLevel, setPreorderThreshold, setStockLevel, setStockThreshold |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, 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, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
NoInventoryManager
public NoInventoryManager()
purchase
public int purchase(java.lang.String pId,
long pHowMany)
throws InventoryException
- Actually purchases a product. The backend inventory system should register
that a purchase has been made.
- Specified by:
purchase
in interface InventoryManager
- Specified by:
purchase
in class AbstractInventoryManagerImpl
- Parameters:
pId
- the id of the item involved
- Returns:
- INVENTORY_STATUS_SUCCEED because no work is required
- Throws:
InventoryException
- if there was a problem during the purchase process.
setMessageSourceContext
public void setMessageSourceContext(MessageSourceContext pContext)
- This notifies the MessageSource as to what its
MessageSourceContext should be. The context is what the
component should use to generate and send out Messages. The
component should not actually start to send out Messages until
startMessageSource() is called. An implementation will generally
store the MessageSourceContext in a member variable.
This is an empty implementation
- Specified by:
setMessageSourceContext
in interface MessageSource
startMessageSource
public void startMessageSource()
- This is called to tell the MessageSource that it may begin
sending messages.
This is an empty implementation
- Specified by:
startMessageSource
in interface MessageSource
stopMessageSource
public void stopMessageSource()
- This is called to tell the MessageSource that it should stop
sending messages.
This is an empty implementation
- Specified by:
stopMessageSource
in interface MessageSource