|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.inventory.InventoryInfo
public class InventoryInfo
This class can be used to retrieve inventory information for a given sku on demand. As each property is accessed a call is made to the inventory manager. If there is an error returning any of the inventory information, null is returned. Created: Fri Jun 16 14:57:30 2000
InventoryDroplet
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
InventoryInfo()
|
|
InventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager)
Construct a new InventoryInfo with the given inventory id |
|
InventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new InventoryInfo with the given inventory id |
Method Summary | |
---|---|
java.util.Date |
getAvailabilityDate()
The availabilityDate for the inventory item with id inventoryId |
java.lang.Integer |
getAvailabilityStatus()
The availabilityStatus for the inventory item with id inventoryId |
protected java.lang.String |
getAvailabilityStatusMessage(int pCode)
Return a String message that should correspond to the supplied code. |
java.lang.String |
getAvailabilityStatusMsg()
The string associated with the availabilityStatus for the inventory item with id inventoryId
1000 constant InventoryManager.AVAILABILITY_STATUS_IN_STOCK -> INSTOCK
1001 constant InventoryManager.AVAILABILITY_STATUS_OUT_OF_STOCK -> OUTOFSTOCK
1002 constant InventoryManager.AVAILABILITY_STATUS_PREORDERABLE -> PREORDERABLE
1003 constant InventoryManager.AVAILABILITY_STATUS_BACKORDERABLE -> BACKORDERABLE
1005 constant InventoryManager.AVAILABILITY_STATUS_DISCONTINUED -> DISCONTINUED
|
java.lang.Long |
getBackorderLevel()
The backorderLevel for the inventory item with id inventoryId |
java.lang.Long |
getBackorderThreshold()
The backorderThreshold for the inventory item with id inventoryId |
java.lang.String |
getInventoryId()
The id of the inventory item having each of these properties. |
InventoryManager |
getInventoryManager()
The inventory manager used to retrieve each of these properties |
ApplicationLogging |
getLog()
Error messages are logged here. |
java.lang.Long |
getPreorderLevel()
The preorderLevel for the inventory item with id inventoryId |
java.lang.Long |
getPreorderThreshold()
The preorderThreshold for the inventory item with id inventoryId |
java.lang.Long |
getStockLevel()
The stockLevel for the inventory item with id inventoryId |
java.lang.Long |
getStockThreshold()
The stockThreshold for the inventory item with id inventoryId |
boolean |
isLogMissingInventoryExceptionsAsError()
Return the logMissingInventoryExceptionsAsError property. |
void |
setInventoryId(java.lang.String pInventoryId)
|
void |
setInventoryManager(InventoryManager pInventoryManager)
|
void |
setLog(ApplicationLogging pLog)
|
void |
setLogMissingInventoryExceptionsAsError(boolean pLogMissingInventoryExceptionsAsError)
Set the logMissingInventoryExceptionsAsError property. |
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 InventoryInfo()
public InventoryInfo(java.lang.String pInventoryId, InventoryManager pInventoryManager)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.public InventoryInfo(java.lang.String pInventoryId, InventoryManager pInventoryManager, ApplicationLogging pLog)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.pLog
- All errors are logged here.Method Detail |
---|
public void setLogMissingInventoryExceptionsAsError(boolean pLogMissingInventoryExceptionsAsError)
public boolean isLogMissingInventoryExceptionsAsError()
public java.lang.Long getStockLevel()
inventoryId
public java.lang.Long getBackorderLevel()
inventoryId
public java.lang.Long getPreorderLevel()
inventoryId
public java.lang.Long getStockThreshold()
inventoryId
public java.lang.Long getBackorderThreshold()
inventoryId
public java.lang.Long getPreorderThreshold()
inventoryId
public java.lang.Integer getAvailabilityStatus()
inventoryId
public java.lang.String getAvailabilityStatusMsg()
inventoryId
public java.util.Date getAvailabilityDate()
inventoryId
public void setInventoryManager(InventoryManager pInventoryManager)
public InventoryManager getInventoryManager()
public void setInventoryId(java.lang.String pInventoryId)
public java.lang.String getInventoryId()
public void setLog(ApplicationLogging pLog)
public ApplicationLogging getLog()
protected java.lang.String getAvailabilityStatusMessage(int pCode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |