public class ComposeDOMInventoryAvailabilityCmdImpl extends AbstractComposeInventoryAvailabilityCmdImpl
FetchInventoryAvailabilityCmdImpl
. It's
used when access profile is set as IBM_Store_Details
, and populates the InventoryAvailabilityType
BOD.
It should be registered in the cmdreg
table with interface:
com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+DOMInventorySystem.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ComposeDOMInventoryAvailabilityCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
This method performs the main business logic to compose
InventoryAvailabilityType from DOM inventory system. |
java.util.List |
getUncachedOnlineStoreIds()
This method returns the list of the online store ID that are not cached.
|
java.util.List |
getUncachedPhysicalStoreIds()
This method returns the list of the physical store ID that are not cached.
|
boolean |
isReadyToCallExecute() |
void |
reset() |
getBaseItem, getCatalogEntry, getCatalogEntryIds, getComponentId, getNouns, getOnlineStoreIdentifiers, getOnlineStoreIds, getPartNumbers, getPhysicalStoreIdentifiers, getPhysicalStoreIds, getSearchExpression, setBaseItems, setCatalogEntryAccessBeans, setCatalogEntryIds, setComponentId, setFulfillmentCenterIdList, setFulfillmentCenterIds, setNouns, setOnlineStoreFulfillmentCenterIds, setOnlineStoreIdentifiers, setOnlineStoreIds, setOnlineStores, setPartNumbers, setPhysicalStoreFulfillmentCenterIds, setPhysicalStoreIdentifiers, setPhysicalStoreIds, setPhysicalStores, setSearchExpression
public static final java.lang.String COPYRIGHT
public ComposeDOMInventoryAvailabilityCmdImpl()
public java.util.List getUncachedOnlineStoreIds()
public java.util.List getUncachedPhysicalStoreIds()
public boolean isReadyToCallExecute()
public void execute() throws com.ibm.websphere.command.CommandException
InventoryAvailabilityType
from DOM inventory system.
For each combination of catalog entry/online store of catalog entry/physical store, the configuration of them will be
first read. Based on the flags, InventoryAvailabilityType
will be built from the DOM inventory memory cache
or from the database cache.
If memory cache and database cache are all expired or not found, InventoryAvailabilityType
will be retrieved from the
DOM (Distributed Order Management) system (if the bit flags for DOM has been set).
If retrieving from DOM still failed, the InventoryAvailabilityType
list will be built from the fallback data, which should be configured
in the invcnf
database table.
The cache items in memory or data base will be updated in below conditions:
1. InventoryAvailabilityType
was built from DOM;
2. Memory cache or data base cache is expired; and
3. Bit flags of configuration for update cache have been set.
com.ibm.websphere.command.CommandException
public void reset()