public class FetchInventoryAvailabilityCmdImpl extends AbstractFetchNounCmdImpl implements FetchInventoryAvailabilityCmd
Constructor and Description |
---|
FetchInventoryAvailabilityCmdImpl()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected BaseItemAccessBean | getBaseItem(java.lang.Long anCatalogEntryId)
Get the baseitem access bean of an catalog entry.
|
java.util.Map | getBaseItems() |
java.util.Map | getCatalogEntries() |
protected CatalogEntryAccessBean | getCatalogEntry(java.lang.Long anCatalogEntryId)
Get the catalog entry access bean from the catalog entry Id.
|
protected java.lang.Long[] | getCatalogEntryIds()
Get all the catalog entry Ids for the command.
|
protected java.util.List | getCatentryIdsList()
Get all the catalog entry Ids for the command.
|
protected CommandContext | getCommandContext()
Get the current command context.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method returns the default instance of the Commerce Foundation Factory.
|
protected java.lang.String | getComponentId()
Returns the component identifier that is associated with the command.
|
java.lang.String | getComposeCommandInterface() |
protected java.sql.Timestamp | getCurrentTime()
Get the current timestamp.
|
protected java.lang.String | getFulfillmentCenterIdList()
Get all the fulfillment center Ids lised in a string, seperated by comma, which is used to get the ATP inventories.
|
protected java.lang.Integer[] | getFulfillmentCenterIds()
Get all the fulfillment center Ids of the online store and physical store.
|
protected InventoryFactory | getInventoryFactory()
Getter method which returns the InventoryFactory.
|
protected java.lang.Short | getInventorySystem()
Get the inventory system flag of the store.
|
java.util.List | getNouns()
This method returns the list of nouns retrieved by the fetch implementation.
|
protected StoreAccessBean | getOnlineStore(java.lang.Integer anOnlineStoreId)
Get the online store access bean.
|
java.util.Map | getOnlineStoreFulfillmentCenterIds() |
protected java.lang.Integer[] | getOnlineStoreFulfillmentCenterIds(java.lang.Integer anOnlineStoreId)
Get all the fulfillment center Ids for an online store.
|
protected java.lang.String[] | getOnlineStoreIdentifiers()
Get the online store name identifiers.
|
protected java.lang.Integer[] | getOnlineStoreIds()
Get the online store Ids.
|
java.util.Map | getOnlineStores()
Gets the map which contains the mapping from online store id to online store access bean.
|
protected java.lang.String[] | getPartNumbers()
Get the part numbers of the catalog entries.
|
protected PhysicalStoreType | getPhysicalStore(java.lang.String astrPhysicalStoreId)
Get the PhysicalStoreType.
|
java.util.Map | getPhysicalStoreFulfillmentCenterIds() |
protected java.lang.Integer[] | getPhysicalStoreFulfillmentCenterIds(java.lang.String astrPhysicalStoreId)
Get the fulfillment center Ids for a physical store.
|
protected java.lang.String[] | getPhysicalStoreIdentifiers()
Get the physical store external identifiers.
|
protected java.lang.String[] | getPhysicalStoreIds()
Get the physical store Ids.
|
java.util.Map | getPhysicalStores() |
protected StoreFactory | getStoreFactory()
Getter method which returns the StoreFactory.
|
protected java.lang.Integer | getStoreId()
Get the store Id where the request happens.
|
protected java.lang.String[] | getXPathParameterValues(java.util.Map amapXPathParameters, java.lang.String astrXPathParameterName)
Get all the parameter values of the request XPath.
|
void | initComposeCommand(ComposeInventoryAvailabilityCmd command)
This method is used to initialaize the ComposeInventoryAvailabilityCmd command.
|
void | performExecute()
This method performs the business flow of the class.
|
protected void | resolveCatalogEntries()
Resolve all the catalog entries from the request.
|
protected void | resolveFulfillmentCenterIds()
Resolve all the fulfillment center Ids for online store and physical store.
|
protected void | resolveOnlineStoreFulfillmentCenterIds(java.lang.Integer anOnlineStoreId)
Resolve all the fulfillment center Ids for an online store.
|
protected void | resolveOnlineStores()
Resolve all the online stores from the request.
|
protected void | resolvePhysicalStoreFulfillmentCenterIds(java.lang.String astrPhysicalStoreId)
Resolve all the fulfillment center Ids for a physical store.
|
protected void | resolvePhysicalStores()
Resolve all the physical stores from the request.
|
protected void | resolveStoreInventorySystem()
Resolve the inventory system of an online store.
|
protected void | resolveXPathParameters()
Resolve all the XPath parameters from the request XPath.
|
protected void | setBaseItem(java.lang.Long anCatalogEntryId, BaseItemAccessBean aabBaseItem)
Set the baseitem access bean for a catalog entry, for cache purposes.
|
protected void | setBaseItemInfo(java.lang.Long nCatalogEntryId, CatalogEntryAccessBean abCatalogEntry)
This method checks if ATP is used, If ATP is used then set the baseitem; If ATP is not used, do nothing.
|
protected void | setCatalogEntry(java.lang.Long anCatalogEntryId, CatalogEntryAccessBean aabCatalogEntry)
Set the catalog entry access bean to be associated with the catalog entry Id, for cache purposess.
|
protected void | setCatalogEntryIds(java.lang.Long[] anCatalogEntryIds)
Set the catalog entry Ids.
|
protected void | setFulfillmentCenterIdList(java.lang.String astrFulfillmentCenterIdList)
Set the fulfillment center Ids listed in a tring.
|
protected void | setFulfillmentCenterIds(java.lang.Integer[] anFulfillmentCenterIds)
Set all the fulfillment center Ids.
|
protected void | setInventorySystem(java.lang.Short inventorySystem)
Set the inventory system flag of the store.
|
void | setNouns(java.util.List alistNouns)
(non-Javadoc)
|
protected void | setOnlineStore(java.lang.Integer anOnlineStoreId, StoreAccessBean aabOnlineStore)
Sets the online store access bean, for cache purposes.
|
protected void | setOnlineStoreFulfillmentCenterIds(java.lang.Integer anOnlineStoreId, java.lang.Integer[] anFulfillmentCenterIds)
Set the fulfillment center Ids for an online store.
|
protected void | setOnlineStoreIdentifiers(java.lang.String[] astrOnlineStoreIdentifiers)
Set the online store name identifiers.
|
protected void | setOnlineStoreIds(java.lang.Integer[] anOnlineStoreIds)
Set the online store Ids.
|
protected void | setPartNumbers(java.lang.String[] astrPartNumbers)
Set the catalog entry part numbers.
|
protected void | setPhysicalStore(java.lang.String astrPhysicalStoreId, PhysicalStoreType asdoPhysicalStore)
Set the PhysicalStoreType.
|
protected void | setPhysicalStoreFulfillmentCenterIds(java.lang.String astrPhysicalStoreId, java.lang.Integer[] anFulfillmentCenterIds)
Set the fulfillment center Ids for a physical store, for cache purposes.
|
protected void | setPhysicalStoreIdentifiers(java.lang.String[] astrPhysicalStoreIdentifiers)
Set the physical store external identifiers.
|
protected void | setPhysicalStoreIds(java.lang.String[] astrPhysicalStoreIds)
Set the physical store Ids.
|
public FetchInventoryAvailabilityCmdImpl()
protected java.lang.Long[] getCatalogEntryIds()
protected java.util.List getCatentryIdsList()
protected void setCatalogEntryIds(java.lang.Long[] anCatalogEntryIds)
protected java.lang.Integer[] getOnlineStoreIds()
protected void setOnlineStoreIds(java.lang.Integer[] anOnlineStoreIds)
protected java.lang.String[] getPhysicalStoreIds()
protected void setPhysicalStoreIds(java.lang.String[] astrPhysicalStoreIds)
protected java.lang.String[] getPartNumbers()
protected void setPartNumbers(java.lang.String[] astrPartNumbers)
protected java.lang.String[] getOnlineStoreIdentifiers()
protected void setOnlineStoreIdentifiers(java.lang.String[] astrOnlineStoreIdentifiers)
protected java.lang.String[] getPhysicalStoreIdentifiers()
protected void setPhysicalStoreIdentifiers(java.lang.String[] astrPhysicalStoreIdentifiers)
protected CatalogEntryAccessBean getCatalogEntry(java.lang.Long anCatalogEntryId)
protected void setCatalogEntry(java.lang.Long anCatalogEntryId, CatalogEntryAccessBean aabCatalogEntry)
protected BaseItemAccessBean getBaseItem(java.lang.Long anCatalogEntryId)
protected void setBaseItem(java.lang.Long anCatalogEntryId, BaseItemAccessBean aabBaseItem)
protected StoreAccessBean getOnlineStore(java.lang.Integer anOnlineStoreId)
protected void setOnlineStore(java.lang.Integer anOnlineStoreId, StoreAccessBean aabOnlineStore)
protected PhysicalStoreType getPhysicalStore(java.lang.String astrPhysicalStoreId)
protected void setPhysicalStore(java.lang.String astrPhysicalStoreId, PhysicalStoreType asdoPhysicalStore)
protected java.lang.Integer[] getOnlineStoreFulfillmentCenterIds(java.lang.Integer anOnlineStoreId)
protected void setOnlineStoreFulfillmentCenterIds(java.lang.Integer anOnlineStoreId, java.lang.Integer[] anFulfillmentCenterIds)
protected java.lang.Integer[] getPhysicalStoreFulfillmentCenterIds(java.lang.String astrPhysicalStoreId)
protected void setPhysicalStoreFulfillmentCenterIds(java.lang.String astrPhysicalStoreId, java.lang.Integer[] anFulfillmentCenterIds)
protected java.lang.Integer[] getFulfillmentCenterIds()
protected void setFulfillmentCenterIds(java.lang.Integer[] anFulfillmentCenterIds)
protected java.lang.String getFulfillmentCenterIdList()
protected void setFulfillmentCenterIdList(java.lang.String astrFulfillmentCenterIdList)
protected java.lang.String[] getXPathParameterValues(java.util.Map amapXPathParameters, java.lang.String astrXPathParameterName) throws InventoryApplicationException
protected void resolveXPathParameters() throws InventoryApplicationException
protected java.lang.Integer getStoreId() throws InventoryApplicationException
protected java.sql.Timestamp getCurrentTime() throws InventoryApplicationException
protected CommandContext getCommandContext() throws InventoryApplicationException
protected void resolveStoreInventorySystem() throws InventoryApplicationException
protected void setInventorySystem(java.lang.Short inventorySystem)
protected java.lang.Short getInventorySystem()
protected void resolveCatalogEntries() throws InventoryApplicationException
protected void setBaseItemInfo(java.lang.Long nCatalogEntryId, CatalogEntryAccessBean abCatalogEntry) throws InventoryApplicationException
protected void resolveOnlineStores() throws InventoryApplicationException
protected void resolvePhysicalStores() throws InventoryApplicationException
protected void resolveOnlineStoreFulfillmentCenterIds(java.lang.Integer anOnlineStoreId) throws InventoryApplicationException
protected void resolvePhysicalStoreFulfillmentCenterIds(java.lang.String astrPhysicalStoreId) throws InventoryApplicationException
protected void resolveFulfillmentCenterIds() throws InventoryApplicationException
public void performExecute() throws java.lang.Exception
Based on the xpath and access profile, this method resolves the catalog entry, online store and physical store, and the fulfillment centers of the stores.
After the useable objects resoved, it get the an implementation command for the entry of cmdreg:
com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+DOMInventorySystem
com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+ATPInventorySystem
com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+NonATPInventorySystem
It initalized the command and execute the command. Then get the InventoryAvailabilityType list from this command.
public void initComposeCommand(ComposeInventoryAvailabilityCmd command)
public java.lang.String getComposeCommandInterface()
public java.util.List getNouns()
public void setNouns(java.util.List alistNouns)
protected java.lang.String getComponentId()
protected InventoryFactory getInventoryFactory()
protected StoreFactory getStoreFactory()
protected CommerceFoundationFactory getCommerceFoundationFactory()
public java.util.Map getCatalogEntries()
public java.util.Map getBaseItems()
public java.util.Map getPhysicalStores()
public java.util.Map getOnlineStoreFulfillmentCenterIds()
public java.util.Map getPhysicalStoreFulfillmentCenterIds()
public java.util.Map getOnlineStores()