|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.inventory.AbstractInventoryManagerImpl atg.commerce.inventory.NoInventoryManager
public class NoInventoryManager
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).
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
NoInventoryManager()
|
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.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 |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public NoInventoryManager()
Method Detail |
---|
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 involved
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |