public class LocalizedInventoryInfo extends InventoryInfo
getAvailabilityStatusMsg will load the status from a
localized resource file. To use this version of InventoryInfo you
should configure the InventoryDroplet. There will be a performance
hit when using this class since the check for locale and the
resource lookup must happen on each call to
getAvailabilityStatusMsg
Created: Wed Jan 16 10:27:24 2002| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
LocalizedInventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager)
Construct a new InventoryInfo with the given inventory id
|
LocalizedInventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new InventoryInfo with the given inventory id
|
LocalizedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager)
Construct a new InventoryInfo with the given inventory id
|
LocalizedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new InventoryInfo with the given inventory id
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAvailabilityStatusMsg()
The string associated with the availabilityStatus for the
inventory item with id
inventoryId. |
protected java.util.ResourceBundle |
getResourceBundle()
Get the resource bundle for the current locale
|
getAvailabilityDate, getAvailabilityStatus, getAvailabilityStatusMessage, getAvailableToPromise, getBackorderLevel, getBackorderLevelDerivedAsFloatingPoint, getBackorderLevelWithFraction, getBackorderThreshold, getInventoryId, getInventoryManager, getLocationId, getLog, getPreorderLevel, getPreorderLevelDerivedAsFloatingPoint, getPreorderLevelWithFraction, getPreorderThreshold, getStockLevel, getStockLevelDerivedAsFloatingPoint, getStockLevelWithFraction, getStockThreshold, isLogMissingInventoryExceptionsAsError, setInventoryId, setInventoryManager, setLocationId, setLog, setLogMissingInventoryExceptionsAsErrorpublic LocalizedInventoryInfo(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 LocalizedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager)
pInventoryId - The sku whose inventory we are querying.pLocationId - the location of the inventory.pInventoryManager - The inventory manager used to retrieve the inventory information.public LocalizedInventoryInfo(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.public LocalizedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
pInventoryId - The sku whose inventory we are querying.pLocationId - the location of the inventory.pInventoryManager - The inventory manager used to retrieve the inventory information.pLog - All errors are logged here.public java.lang.String getAvailabilityStatusMsg()
inventoryId. The string is retrieved
from the resource file atg.commerce.inventory.Resources.properties and is
localized. The keys into this resource bundle are:
getAvailabilityStatusMsg in class InventoryInfoprotected java.util.ResourceBundle getResourceBundle()