|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.inventory.CachedInventoryInfo
public class CachedInventoryInfo
Holds read-only inventory info about inventory objects (often SKUs)
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
CachedInventoryInfo()
|
|
CachedInventoryInfo(long pStockLevel,
long pBackorderLevel,
long pPreorderLevel,
long pStockThreshold,
long pBackorderThreshold,
long pPreorderThreshold,
int pAvailabilityStatus,
java.util.Date pAvailabilityDate)
Construct a new CachedInventoryInfo with the given static information |
|
CachedInventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager)
Construct a new CachedInventoryInfo with the given inventory id |
|
CachedInventoryInfo(java.lang.String pInventoryId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new CachedInventoryInfo with the given inventory id |
|
CachedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager)
Construct a new CachedInventoryInfo with the given inventory id |
|
CachedInventoryInfo(java.lang.String pInventoryId,
java.lang.String pLocationId,
InventoryManager pInventoryManager,
ApplicationLogging pLog)
Construct a new CachedInventoryInfo with the given inventory id |
Method Summary | |
---|---|
java.util.Date |
getAvailabilityDate()
The availabilityDate for the inventory item with id inventoryId |
int |
getAvailabilityStatus()
The availabilityStatus for the inventory item with id inventoryId |
atg.commerce.inventory.AvailableToPromise |
getAvailableToPromise()
The availability information for the inventory item with id inventoryId
This method only returns a value if the configured InventoryManager is an instance of
LocationInventoryManager, otherwise null is returned. |
long |
getBackorderLevel()
The backorderLevel for the inventory item with id inventoryId |
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 |
java.lang.String |
getLocationId()
Gets the location id for the inventory item |
ApplicationLogging |
getLog()
Error messages are logged here. |
long |
getPreorderLevel()
The preorderLevel for the inventory item with id inventoryId |
long |
getPreorderThreshold()
The preorderThreshold for the inventory item with id inventoryId |
long |
getStockLevel()
The stockLevel for the inventory item with id inventoryId |
long |
getStockThreshold()
The stockThreshold for the inventory item with id inventoryId |
void |
setInventoryId(java.lang.String pInventoryId)
|
void |
setInventoryManager(InventoryManager pInventoryManager)
|
void |
setLocationId(java.lang.String pLocationId)
|
void |
setLog(ApplicationLogging pLog)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public CachedInventoryInfo()
public CachedInventoryInfo(java.lang.String pInventoryId, InventoryManager pInventoryManager)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.
If the inventory manage is also an instance of ApplicationLogging then we use that for the logpublic CachedInventoryInfo(java.lang.String pInventoryId, java.lang.String pLocationId, InventoryManager pInventoryManager)
pInventoryId
- The sku whose inventory we are querying.pInventoryManager
- The inventory manager used to retrieve the inventory information.
If the inventory manage is also an instance of ApplicationLogging then we use that for the logpublic CachedInventoryInfo(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 CachedInventoryInfo(java.lang.String pInventoryId, java.lang.String pLocationId, 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 CachedInventoryInfo(long pStockLevel, long pBackorderLevel, long pPreorderLevel, long pStockThreshold, long pBackorderThreshold, long pPreorderThreshold, int pAvailabilityStatus, java.util.Date pAvailabilityDate)
Method Detail |
---|
public long getStockLevel() throws InventoryException
inventoryId
InventoryException
public long getBackorderLevel() throws InventoryException
inventoryId
InventoryException
public long getPreorderLevel() throws InventoryException
inventoryId
InventoryException
public long getStockThreshold() throws InventoryException
inventoryId
InventoryException
public long getBackorderThreshold() throws InventoryException
inventoryId
InventoryException
public long getPreorderThreshold() throws InventoryException
inventoryId
InventoryException
public int getAvailabilityStatus() throws InventoryException
inventoryId
InventoryException
public java.util.Date getAvailabilityDate() throws InventoryException
inventoryId
InventoryException
public atg.commerce.inventory.AvailableToPromise getAvailableToPromise() throws InventoryException
inventoryId
This method only returns a value if the configured InventoryManager is an instance of
LocationInventoryManager, otherwise null is returned.
InventoryException
public void setInventoryManager(InventoryManager pInventoryManager)
public InventoryManager getInventoryManager()
public void setInventoryId(java.lang.String pInventoryId)
public java.lang.String getInventoryId()
public void setLocationId(java.lang.String pLocationId)
public java.lang.String getLocationId()
public void setLog(ApplicationLogging pLog)
public ApplicationLogging getLog()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |