|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.inventory.InventoryServices
public class InventoryServices
Helper methods to access and enhance InventoryManager
services.
Inventory accessed by these helper methods is determined by the property
getInventoryManager()
.
SimpleInventoryInfo
,
InventoryManager
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 | |
---|---|
InventoryServices()
|
Method Summary | |
---|---|
protected java.lang.String |
getAvailabilityStatusMsg(int pCode)
Return a String message that should correspond to the supplied code. |
SimpleInventoryInfo[] |
getInventory(java.lang.String[] pSkuIds)
This method will return a SimpleInventoryInfo object for each of the given skus. |
InventoryManager |
getInventoryManager()
Returns InventoryManager component to query against |
java.lang.String[] |
getInventoryStatus(java.lang.String[] pSkuIds)
This method will return an inventory status message for each of the given skus. |
void |
setInventoryManager(InventoryManager pInventoryManager)
Sets InventoryManager component to query against |
void |
setStockLevel(java.lang.String pSkuId,
long pStockLevel)
This method will update the stock level for the given sku. |
void |
setStockLevels(java.lang.String[] pSkuIds,
long[] pStockLevels)
This method will update each of the given sku ids with the new given stock level. |
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 InventoryServices()
Method Detail |
---|
public InventoryManager getInventoryManager()
public void setInventoryManager(InventoryManager pInventoryManager)
InventoryManager
- public SimpleInventoryInfo[] getInventory(java.lang.String[] pSkuIds) throws InventoryException
pSkuIds
- The array of sku ids whose info is returned
InventoryException
- Thrown if any of the skus is invalid, or for some other problem.public java.lang.String[] getInventoryStatus(java.lang.String[] pSkuIds) throws InventoryException
pSkuIds
- The array of sku ids whose status will be return
InventoryException
getAvailabilityStatusMsg(int)
public void setStockLevels(java.lang.String[] pSkuIds, long[] pStockLevels) throws InventoryException
pStockLevels
corresponds
to an id in pSkuIds
pSkuIds
- An array of sku ids being updatedpStockLevels
- An array the same length as pSkuIds
InventoryException
public void setStockLevel(java.lang.String pSkuId, long pStockLevel) throws InventoryException
pSkuId
- The sku being updatedpStockLevel
- The new stock level
InventoryException
protected java.lang.String getAvailabilityStatusMsg(int pCode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |