public class ShowInventoryBalance extends InventoryBalance
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class name field.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ShowInventoryBalance() |
Modifier and Type | Method and Description |
---|---|
protected void | buildDataArea()
This method builds the Data Area subsection of the reply BOD.
|
protected org.w3c.dom.Element | createInventoryBalanceElement(InventoryBalanceSearchResultBean abnInventoryItemSearchResult)
Deprecated.
|
protected org.w3c.dom.Element | createInventoryBalanceElement(com.ibm.commerce.telesales.messaging.beans.InventorySearchResultBean inventorySearchResultBean)
This method builds the InventoryBalance element.
|
protected org.w3c.dom.Element | createItemElement(com.ibm.commerce.inventory.beans.InventoryFFCSearchResultDataBean abnInventoryFFCSearchResultDataBean, AttributeValueDataBean[] abnAttributeValue, org.w3c.dom.Element aParentElement) |
protected org.w3c.dom.Element | createItemElement(com.ibm.commerce.telesales.messaging.beans.InventorySearchResultBean abnSearchResultDataBean, AttributeValueDataBean[] abnAttributeValue, org.w3c.dom.Element aParentElement)
This method builds the Item element.
|
protected org.w3c.dom.Element | createSiteElement(com.ibm.commerce.inventory.beans.InventoryFFCSearchResultDataBean abnInventoryFFCSearchResultDataBean, org.w3c.dom.Element aParentElement)
Deprecated.
|
protected org.w3c.dom.Element | createSiteElement(com.ibm.commerce.telesales.messaging.beans.InventorySearchResultBean inventorySearchResultBean, org.w3c.dom.Element aParentElement)
This method builds the SiteId element (Fulfillment Center information).
|
protected java.util.ArrayList | executeGetInventoryBalance(SearchCriteria aSearchCriteria)
This method gets the list of Inventory Balances that meets the given search criteria.
|
ITelesalesResponseCacheableCommand | getCacheableCommand()
This method returns an initialized cacheable command.
|
protected java.lang.String | getRootElementName()
This method gets the root element name of the response document.
|
void | init(CommandContext aCmdCtxt, TypedProperty aRequestProperties, TypedProperty aResponseProperties, org.w3c.dom.Document aRequestBOD, org.w3c.dom.Document aResponseBOD)
This method initializes the necessary parameters before starting to build the response Business Object Document.
|
protected void | initializeInventoryBalanceSearch(com.ibm.commerce.inventory.beans.InventorySearchResultListDataBean abnIventorySearch, SearchCriteria aSearchCriteria)
This method initializes the search bean with the given search criteria.
|
protected TypedProperty | populateSearchResult(TypedProperty hshFFCenterInventory, com.ibm.commerce.inventory.beans.InventoryFFCSearchResultDataBean abnSearchResult, boolean bnIsForExpectedInventory)
This method populates the search result for the given category entry Id (item).
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public void init(CommandContext aCmdCtxt, TypedProperty aRequestProperties, TypedProperty aResponseProperties, org.w3c.dom.Document aRequestBOD, org.w3c.dom.Document aResponseBOD)
This method first calls the init method from the parent class.
It will then call the initializeSearchTypeMapping to initialize the mappings between the search type obtained from the SelectExpression element in the request Business Object Document to the actual value set to the search bean.
protected void buildDataArea() throws ECException
This method will do the following:
<wc:DataArea> <oa:Show confirm="Always"/> <wc:InventoryBalance> <-- createInventoryBalanceElement() --> </wc:InventoryBalance> </wc:DataArea>
protected org.w3c.dom.Element createSiteElement(com.ibm.commerce.telesales.messaging.beans.InventorySearchResultBean inventorySearchResultBean, org.w3c.dom.Element aParentElement) throws ECException
<oa:Site> <oa:Name lang="en">Site Name</oa:Name> <oa:Id>Site Id</oa:Id> </oa:Site>
protected org.w3c.dom.Element createSiteElement(com.ibm.commerce.inventory.beans.InventoryFFCSearchResultDataBean abnInventoryFFCSearchResultDataBean, org.w3c.dom.Element aParentElement) throws ECException
<oa:Site> <oa:Name lang="en">Site Name</oa:Name> <oa:Id>Site Id</oa:Id> </oa:Site>
protected org.w3c.dom.Element createItemElement(com.ibm.commerce.inventory.beans.InventoryFFCSearchResultDataBean abnInventoryFFCSearchResultDataBean, AttributeValueDataBean[] abnAttributeValue, org.w3c.dom.Element aParentElement) throws ECException
<oa:Item> <oa:ItemId> <oa:Id>Item Id</oa:Id> </oa:ItemId> <oa:Property> <oa:NameValue name="Property Name">Property Value</oa:NameValue> </oa:Property> . . </oa:Item>
protected org.w3c.dom.Element createItemElement(com.ibm.commerce.telesales.messaging.beans.InventorySearchResultBean abnSearchResultDataBean, AttributeValueDataBean[] abnAttributeValue, org.w3c.dom.Element aParentElement) throws ECException
<oa:Item> <oa:ItemId> <oa:Id>Item Id</oa:Id> </oa:ItemId> <oa:Property> <oa:NameValue name="Property Name">Property Value</oa:NameValue> </oa:Property> . . </oa:Item>
protected org.w3c.dom.Element createInventoryBalanceElement(InventoryBalanceSearchResultBean abnInventoryItemSearchResult) throws ECException
<wc:InventoryBalance> <!-- createItemElement() --> <oa:Description lang="language code">Inventory Balance Description</oa:Description> <!-- createSiteElement() --> <oa:AvailableQuantity uom="each">quantiry</oa:AvailableQuantity> <wc:ExpectedQuantity uom="each">quantiry</wc:ExpectedQuantity> <UserData> <!-- createUserDataElement(SearchResultBean, Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </wc:InventoryBalance>
protected org.w3c.dom.Element createInventoryBalanceElement(com.ibm.commerce.telesales.messaging.beans.InventorySearchResultBean inventorySearchResultBean) throws ECException, java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
<wc:InventoryBalance> <!-- createItemElement() --> <oa:Description lang="language code">Inventory Balance Description</oa:Description> <!-- createSiteElement() --> <oa:AvailableQuantity uom="each">quantiry</oa:AvailableQuantity> <wc:ExpectedQuantity uom="each">quantiry</wc:ExpectedQuantity> <UserData> <!-- createUserDataElement(SearchResultBean, Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </wc:InventoryBalance>
protected void initializeInventoryBalanceSearch(com.ibm.commerce.inventory.beans.InventorySearchResultListDataBean abnIventorySearch, SearchCriteria aSearchCriteria)
protected TypedProperty populateSearchResult(TypedProperty hshFFCenterInventory, com.ibm.commerce.inventory.beans.InventoryFFCSearchResultDataBean abnSearchResult, boolean bnIsForExpectedInventory) throws ECException
protected java.util.ArrayList executeGetInventoryBalance(SearchCriteria aSearchCriteria) throws ECException
protected java.lang.String getRootElementName()
public ITelesalesResponseCacheableCommand getCacheableCommand() throws ECException