public interface StoreInventoryManagerInterface
extends atg.commerce.inventory.LocationInventoryManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
AVAILABILITY_STATUS_BACKORDERABLE, AVAILABILITY_STATUS_DERIVED, AVAILABILITY_STATUS_DISCONTINUED, AVAILABILITY_STATUS_IN_STOCK, AVAILABILITY_STATUS_OUT_OF_STOCK, AVAILABILITY_STATUS_PREORDERABLE, INVENTORY_STATUS_FAIL, INVENTORY_STATUS_INSUFFICIENT_SUPPLY, INVENTORY_STATUS_ITEM_NOT_FOUND, INVENTORY_STATUS_SUCCEED| Modifier and Type | Method and Description |
|---|---|
void |
createBackInStockNotifyItem(atg.repository.MutableRepository pRepository,
java.lang.String pCatalogRefId,
java.lang.String pEmail,
java.lang.String pProductId,
java.lang.String pLocale,
java.lang.String pSiteId)
Creates the required item in the repository.
|
int |
getAvailabilityStatusBackorderableValue()
The integer value for the availabilityStatus of BACKORDERABLE
|
int |
getAvailabilityStatusDerivedValue()
The integer value for the availabilityStatus of DERIVED
|
int |
getAvailabilityStatusDiscontinuedValue()
The integer value for the availabilityStatus of DISCONTINUED
|
int |
getAvailabilityStatusInStockValue()
The integer value for the availabilityStatus of IN_STOCK
|
int |
getAvailabilityStatusOutOfStockValue()
The integer value for the availabilityStatus of OUT_OF_STOCK
|
int |
getAvailabilityStatusPreorderableValue()
The integer value for the availabilityStatus of PREORDERABLE
|
java.util.Date |
getBackorderAvailabilityDate(java.lang.String pSkuId)
Get the availabilityDate from the inventory data for a SKU item.
|
StoreCatalogProperties |
getCatalogProperties() |
atg.repository.Repository |
getCatalogRefRepository()
Returns property CatalogRefRepository
|
java.util.Date |
getPreorderAvailabilityDate(atg.repository.RepositoryItem pProduct)
Get the availabilityDate for a product.
|
boolean |
isBackInStockItemExists(atg.repository.MutableRepository pRepository,
java.lang.String pCatalogRefId,
java.lang.String pEmail,
java.lang.String pProductId)
Check to see if backInStoreNotifyItem already exists for this combination
of CatalogRefId and email.
|
boolean |
isBackInStockItemExists(atg.repository.MutableRepository pRepository,
java.lang.String pCatalogRefId,
java.lang.String pEmail,
java.lang.String pProductId,
java.lang.String pLocationId) |
boolean |
isItemInStock(java.lang.String pSkuId)
Returns true if SKU is in stock.
|
boolean |
isItemInStock(java.lang.String pSkuId,
java.lang.String pLocationId) |
boolean |
logInventoryException(atg.commerce.inventory.InventoryException pException)
The method logs InventoryException.
|
int |
queryAvailabilityStatus(atg.repository.RepositoryItem pProduct,
java.lang.String pSkuId)
Derive the availabilityStatus based on the properties of the product and the item.
|
int |
queryAvailabilityStatus(atg.repository.RepositoryItem pProduct,
java.lang.String pSkuId,
java.lang.String pLocationId) |
acquireInventoryLocks, backorder, backorder, decreaseBackorderLevel, decreaseBackorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreaseStockLevel, decreaseStockLevel, increaseBackorderLevel, increaseBackorderLevel, increasePreorderLevel, increasePreorderLevel, increaseStockLevel, increaseStockLevel, inventoryWasUpdated, preorder, preorder, purchase, purchase, purchaseOffBackorder, purchaseOffBackorder, purchaseOffPreorder, purchaseOffPreorder, queryAvailabilityDate, queryAvailabilityStatus, queryAvailableToPromise, queryBackorderLevel, queryBackorderLevelWithFraction, queryBackorderThreshold, queryInventoryInformation, queryInventoryInformation, queryInventoryInformation, queryInventoryInformation, queryPreorderLevel, queryPreorderLevelWithFraction, queryPreorderThreshold, queryStockLevel, queryStockLevelWithFraction, queryStockThreshold, releaseInventoryLocks, setAvailabilityDate, setAvailabilityStatus, setBackorderLevel, setBackorderLevel, setBackorderThreshold, setPreorderLevel, setPreorderLevel, setPreorderThreshold, setStockLevel, setStockLevel, setStockThresholdacquireInventoryLocks, backorder, backorder, decreaseBackorderLevel, decreaseBackorderLevel, decreasePreorderLevel, decreasePreorderLevel, decreaseStockLevel, decreaseStockLevel, getInventoryName, increaseBackorderLevel, increaseBackorderLevel, increasePreorderLevel, increasePreorderLevel, increaseStockLevel, increaseStockLevel, inventoryWasUpdated, preorder, preorder, purchase, purchase, purchaseOffBackorder, purchaseOffBackorder, purchaseOffPreorder, purchaseOffPreorder, queryAvailabilityDate, queryAvailabilityStatus, queryBackorderLevel, queryBackorderLevelWithFraction, queryBackorderThreshold, queryPreorderLevel, queryPreorderLevelWithFraction, queryPreorderThreshold, queryStockLevel, queryStockLevelWithFraction, queryStockThreshold, releaseInventoryLocks, setAvailabilityDate, setAvailabilityStatus, setBackorderLevel, setBackorderLevel, setBackorderThreshold, setPreorderLevel, setPreorderLevel, setPreorderThreshold, setStockLevel, setStockLevel, setStockThresholdstatic final java.lang.String CLASS_VERSION
boolean logInventoryException(atg.commerce.inventory.InventoryException pException)
logMissingInventoryExceptionsAsError property is configured
to true.pException - The InventoryException to log.boolean isItemInStock(java.lang.String pSkuId)
throws atg.commerce.inventory.InventoryException
pSkuId - SKU ID.atg.commerce.inventory.InventoryException - if there was an error while attempting to return the inventory information.boolean isItemInStock(java.lang.String pSkuId,
java.lang.String pLocationId)
throws atg.commerce.inventory.InventoryException
atg.commerce.inventory.InventoryExceptionint queryAvailabilityStatus(atg.repository.RepositoryItem pProduct,
java.lang.String pSkuId)
throws atg.commerce.inventory.InventoryException
pProduct - The product we are deriving the status for.pSkuId - The SKU we are deriving the status for.atg.commerce.inventory.InventoryException - if there was an error while attempting to return the inventory information.int queryAvailabilityStatus(atg.repository.RepositoryItem pProduct,
java.lang.String pSkuId,
java.lang.String pLocationId)
throws atg.commerce.inventory.InventoryException
atg.commerce.inventory.InventoryExceptionboolean isBackInStockItemExists(atg.repository.MutableRepository pRepository,
java.lang.String pCatalogRefId,
java.lang.String pEmail,
java.lang.String pProductId)
throws atg.repository.RepositoryException
pRepository - - Repository where to check if item exists.pCatalogRefId - - repository id.pEmail - - string that represents email.pProductId - - product id.atg.repository.RepositoryException - if there was an error while creating repository item.boolean isBackInStockItemExists(atg.repository.MutableRepository pRepository,
java.lang.String pCatalogRefId,
java.lang.String pEmail,
java.lang.String pProductId,
java.lang.String pLocationId)
throws atg.repository.RepositoryException
atg.repository.RepositoryExceptionvoid createBackInStockNotifyItem(atg.repository.MutableRepository pRepository,
java.lang.String pCatalogRefId,
java.lang.String pEmail,
java.lang.String pProductId,
java.lang.String pLocale,
java.lang.String pSiteId)
throws atg.repository.RepositoryException
pRepository - - Repository where to create item.pCatalogRefId - - repository id.pEmail - - string that represents email.pProductId - - product id.pLocale - - local.pSiteId - - site id.atg.repository.RepositoryException - if there was an error while creating repository item.java.util.Date getBackorderAvailabilityDate(java.lang.String pSkuId)
throws atg.commerce.inventory.InventoryException
pSkuId - - The SKU we are getting the availability date for.atg.commerce.inventory.InventoryException - if there was an error while attempting to return the inventory information.java.util.Date getPreorderAvailabilityDate(atg.repository.RepositoryItem pProduct)
pProduct - - The product we are getting the availability date for.StoreCatalogProperties getCatalogProperties()
atg.repository.Repository getCatalogRefRepository()
int getAvailabilityStatusDerivedValue()
int getAvailabilityStatusInStockValue()
int getAvailabilityStatusBackorderableValue()
int getAvailabilityStatusPreorderableValue()
int getAvailabilityStatusOutOfStockValue()
int getAvailabilityStatusDiscontinuedValue()