public class ShowElectronicCatalog extends ElectronicCatalog implements IShowElectronicCatalog
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 |
---|
ShowElectronicCatalog() |
Modifier and Type | Method and Description |
---|---|
protected void | buildDataArea()
This method builds the Data Area subsection of the reply BOD.
|
protected AdvancedCatEntrySearchListDataBean | createAdvancedCatEntrySearchListDataBean()
This method creates an AdvancedCatEntrySearchListDataBean to be used to do the catalog entries search.
|
protected org.w3c.dom.Element | createBuyableElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the wc:Buyable element.
|
protected CatalogEntryDataBean | createCatalogEntryDataBean()
This method creates a CatalogEntryDataBean to be used when the catalog entry ID is known.
|
protected org.w3c.dom.Element | createCatalogItemLineElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:CatalogItemLine element.
|
protected org.w3c.dom.Element | createDescriptionElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:Description element.
|
protected org.w3c.dom.Element | createDocumentIdElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:DocumentId element.
|
protected org.w3c.dom.Element | createDocumentReferencesElement(java.lang.String[] unitPrice, org.w3c.dom.Element aParentElement)
This method builds the oa:DocumentReferences element.
|
protected org.w3c.dom.Element | createECHeaderElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:ECHeader element.
|
protected org.w3c.dom.Element | createElectronicCatalogElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, boolean headerOnly)
This method builds the oa:ElectronicCatalog element.
|
org.w3c.dom.Element | createElectronicCatalogElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds The oa:ElectronicCatalog element.
|
ElectronicCatalogSearchResultBean | createElectronicCatalogTree(com.ibm.commerce.order.utils.NestedKitNode aNode, java.util.HashMap nestedKitNodesMap, ElectronicCatalogSearchResultBean searchResultBean, boolean needMerchandisingAssociations)
This method traverses a nested kit and for each item (leaf node) creates an ElectronicCatalogSearchResultBean and add all the leaf nodes to an array list called electronicCatalogList.
|
protected org.w3c.dom.Element | createFeatureElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:Feature element.
|
protected org.w3c.dom.Element | createIdElement(java.lang.String strCatalogEntryCode, org.w3c.dom.Element aParentElement)
This method builds the Id element.
|
protected org.w3c.dom.Element | createImagesElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the wc:Images element.
|
protected org.w3c.dom.Element | createImageUrlElement(java.lang.String strCatalogImagePath, java.lang.String strCatalogImagePathType, org.w3c.dom.Element aParentElement)
This method builds the wc:ImageUrl element.
|
protected org.w3c.dom.Element | createItemClassificationElement(CatalogGroupDataBean abnCatalogGroup, org.w3c.dom.Element aParentElement)
This method builds the oa:ItemClassification element.
|
protected org.w3c.dom.Element | createItemIdElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:ItemId element.
|
protected org.w3c.dom.Element | createItemPriceElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:ItemPrice element.
|
protected org.w3c.dom.Element | createItemTypeElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the wc:ItemType element.
|
protected org.w3c.dom.Element | createMerchandisingElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the wc:Merchandising element.
|
protected org.w3c.dom.Element | createNameElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:Name element.
|
protected org.w3c.dom.Element | createPartiesElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:Parties element.
|
protected org.w3c.dom.Element | createPartyIdElement(java.lang.String strPartyId, org.w3c.dom.Element aParentElement)
This method builds the oa:PartyId element.
|
protected org.w3c.dom.Element | createQuantityElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the wc:Quantity element.
|
protected org.w3c.dom.Element | createShortDescriptionElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the wc:ShortDescription element.
|
protected org.w3c.dom.Element | createUnitPriceElement(java.lang.String[] unitPrice, org.w3c.dom.Element aParentElement)
This method builds the oa:UnitPrice element.
|
protected org.w3c.dom.Element | createUPCElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:UPC element.
|
protected org.w3c.dom.Element | createUserDataElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement)
This method creates the user data element for the electronic catalog element.
|
protected org.w3c.dom.Element | createUserdataInItemClassificationElement(CatalogGroupDataBean abnCatalogGroup, org.w3c.dom.Element itemClassificationElement)
This is an empty method to create the UserData element for ItemClassification.
|
protected org.w3c.dom.Element | createUserdataInItemPriceElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, java.lang.String[] arrUnitPrice, org.w3c.dom.Element itemPriceElement)
This is an empty method to create the UserData element for ItemPrice.
|
java.util.ArrayList | executeGetElectronicCatalog(SearchCriteria aSearchCriteria)
This method gets the list of catalog entries that meets the given search criteria.
|
ITelesalesResponseCacheableCommand | getCacheableCommand()
This method returns an initialized cacheable command.
|
boolean | getIsCatalogEntryWithoutPriceFiltered()
This method gets the boolean value of isCatalogEntryWithoutPriceFiltered If this method returns true then it filters out catalog entries without price from the search result.
|
java.lang.String | getMaxResultSetSize()
This method returns the maximum result set size.
|
java.lang.String | getMerchandisingAssociationFilter()
This method gets the merchandising association type to be used in getting the merchandising association for catalog entries for the ElectronicCatalog BOD.
|
protected boolean | getNonPublishedCatalogEntryFiltered()
This method gets the boolean value of isNonPubishedCatalogEntryFiltered If this method returns true then it filters out catalog entries which are not published for product.
|
int | getResultsFiltered()
This method returns the number of results that have been filtered out.
|
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 | initializeCatalogEntriesSearch(AdvancedCatEntrySearchListDataBean abnCatalogEntriesSearch, SearchCriteria aSearchCriteria)
This method initializes the search bean with the specified search criteria.
|
protected void | initializeSearchTypeMapping()
This method initializes the mapping between the search type values and the search types.
|
boolean | isEmptyStringPrice(ElectronicCatalogSearchResultBean anElectronicCatalogBean)
This method checks if the amount for the unit price for the ElectronicCatalogSearchResultBean is an empty string or not.
|
boolean | isHeaderOnly()
This method returns true if only header information is required.
|
boolean | isMerchantAssociationNeeded()
This method returns true if the merchant associations are needed.
|
protected boolean | isNestedAssociationRequired()
This method determines whether the nested level of Merchandising Associations details are required.
|
protected void | populateConfiguratorURL(CatalogEntryDataBean abnCatalogEntry, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the search result bean with the configuration URL for the specified catalog entry.
|
ElectronicCatalogSearchResultBean | populateDetailsForOrderItem(CatalogEntryDataBean catentdb, java.lang.String orderitemid, ElectronicCatalogSearchResultBean abnSearchResult, boolean isMerchandisingAssociationRequired)
This method populates a ElectronicCatalogSearchResultBean from a DynamicKit.
|
protected java.lang.String[][] | populateItemUnitPrice(ItemDataBean abnItem)
This method populates the item unit price.
|
protected java.lang.String[][] | populatePackageUnitPrice(PackageDataBean abnPackage)
This method populates the package unit price.
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(BundleDataBean abnBundle, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the ElectronicCatalogSearchResultBean
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(CatalogEntryDataBean abnCatalogEntry, boolean isHeaderOnlyRequired, boolean isMerchandisingAssociationRequired, boolean isGetDetails, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the search result for the given electronic catalog.
|
ElectronicCatalogSearchResultBean | populateSearchResult(CatalogEntryDataBean abnCatalogEntry, CommandContext commandContext, boolean processParent, boolean isMerchandisingAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates a ElectronicCatalogSearchResultBean from a CatalogEntryDataBean.
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(CompositeItemDataBean dbCompositeItem, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the ElectronicCatalogSearchResultBean
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(CompositePackageDataBean dbCompositePackage, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the ElectronicCatalogSearchResultBean.
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(CompositeProductDataBean dbCompositeProduct, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the search result for the product which composed the bundle.
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(ItemDataBean abnItem, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the ElectronicCatalogSearchResultBean
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(PackageDataBean abnPackage, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the ElectronicCatalogSearchResultBean
|
protected ElectronicCatalogSearchResultBean | populateSearchResult(ProductDataBean abnProduct, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult)
This method populates the search result for the given electronic catalog.
|
ElectronicCatalogSearchResultBean | populateSearchResult(java.lang.String itemspcid, boolean isMerchandisingAssociationRequired, ElectronicCatalogSearchResultBean ecSearchResultBean)
This method populates the search result for the given electronic catalog.
|
void | setCatalogEntryWithoutPriceFiltered(boolean b)
This method sets the isCatalogEntryWithoutPriceFiWithoutPriceFiltered to true or false.
|
void | setHeaderOnly(boolean headerOnly)
This method sets the header only flag.
|
void | setMaxResultSetSize(java.lang.String maxResultSetSize)
This method sets the maximum result set size.
|
void | setMerchandisingAssociationFilter(java.lang.String string)
This method sets the merchandising association type to be used in getting the merchandising association for catalog entries for the ElectronicCatalog BOD.
|
void | setMerchantAssociationNeeded(boolean merchantAssociationsNeeded)
This method sets the merchant associations needed flag.
|
void | setResultsFiltered(int resultsFiltered)
This method sets the number of results that were filtered out.
|
java.lang.String | transformMAssocTypeToElectronicCatalogType(java.lang.String aMAssocType)
This method transforms a merchandising association type as defined by the catalog system to the corresponding type used by Electronic Catalog BOD.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
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 then calls 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
protected org.w3c.dom.Element createUnitPriceElement(java.lang.String[] unitPrice, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:UnitPrice element that indicates how the element is constructed:
<oa:UnitPrice> <oa:Amount currency="USD">24.99</oa:Amount> </oa:UnitPrice>
protected org.w3c.dom.Element createDocumentReferencesElement(java.lang.String[] unitPrice, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:DocumentReferences element that indicates how the element is constructed:
<oa:DocumentReferences> <oa:ContractDocumentReference> <oa:DocumentIds> <oa:DocumentId> <oa:Id>10501</oa:Id> </oa:DocumentId> </oa:DocumentIds> <oa:Description>This is a store default contract.</oa:Description> </oa:ContractDocumentReference> </oa:DocumentReferences>
protected org.w3c.dom.Element createPartyIdElement(java.lang.String strPartyId, org.w3c.dom.Element aParentElement)
The following is a sample oa:PartyId element that indicates how the element is constructed:
<oa:PartyId>A manufacturer name</oa:PartyId>
protected org.w3c.dom.Element createUPCElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
url is also set as an attribute of the oa:UPC element.
The following is a sample oa:UPC element that indicates how the element is constructed:
<oa:UPC url="A configurator URL" />
protected org.w3c.dom.Element createNameElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:Name element that indicates how the element is constructed:
<oa:Name>Olive Oil Gift Set</oa:Name>
protected org.w3c.dom.Element createIdElement(java.lang.String strCatalogEntryCode, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:Id element that indicates how the element is constructed:
<oa:Id>KICO-01</oa:Id>
protected org.w3c.dom.Element createBuyableElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:Buyable element that indicates how the element is constructed:
<wc:Buyable>1</wc:Buyable>
protected org.w3c.dom.Element createMerchandisingElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:Merchandising element that indicates how the element is constructed:
<wc:Merchandising>false</wc:Merchandising>
protected org.w3c.dom.Element createItemPriceElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:ItemPrice element that indicates how the element is constructed:
<oa:ItemPrice> <oa:UnitPrice> <oa:Amount currency="EUR">137.24</oa:Amount> </oa:UnitPrice> <oa:DocumentReferences> <oa:ContractDocumentReference> <oa:DocumentIds> <oa:DocumentId> <oa:Id>10501</oa:Id> </oa:DocumentId> </oa:DocumentIds> <oa:Description>This is a store default contract.</oa:Description> </oa:ContractDocumentReference> </oa:DocumentReferences> <UserData> <!-- createUserdataInItemPriceElement(ElectronicCatalogSearchResultBean, String[], Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </oa:ItemPrice>
protected org.w3c.dom.Element createUserdataInItemPriceElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, java.lang.String[] arrUnitPrice, org.w3c.dom.Element itemPriceElement) throws ECException
... Element userDataElement = createWCDocumentElement(itemPriceElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createItemClassificationElement(CatalogGroupDataBean abnCatalogGroup, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:ItemClassification element that indicates how the element is constructed:
<oa:ItemClassification> <oa:ItemClassification>10075</oa:ItemClassification> <oa:Description>Coffee Makers</oa:Description> <UserData> <!-- createUserdataInItemClassificationElement(CatalogGroupDataBean, Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </oa:ItemClassification>
protected org.w3c.dom.Element createUserdataInItemClassificationElement(CatalogGroupDataBean abnCatalogGroup, org.w3c.dom.Element itemClassificationElement) throws ECException
... Element userDataElement = createWCDocumentElement(itemClassificationElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createFeatureElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:Feature element that indicates how the element is constructed:
<oa:Feature> <oa:NameValue name="HasExtendedWarranty" type="nondefining">Yes</oa:NameValue> <oa:NameValue name="Color" type="defining">White</oa:NameValue> </oa:Feature>
protected org.w3c.dom.Element createPartiesElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
To create the oa:Parties element, this method calls the following methods:
The following is a sample oa:Parties element that indicates how the element is constructed:
<oa:Parties> <oa:PartyId> The manufacturer name </oa:PartyId> </oa:Parties>
protected org.w3c.dom.Element createShortDescriptionElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:ShortDescription element that indicates how the element is constructed:
<wc:ShortDescription>Four decorative bottles of olive oil.</wc:ShortDescription>
protected org.w3c.dom.Element createDescriptionElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:Description element that indicates how the element is constructed:
<oa:Description>Four decorative bottles of olive oil to use with pasta, bread, or salad.</oa:Description>
protected org.w3c.dom.Element createQuantityElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:Quantity element that indicates how the element is constructed:
<wc:Quantity>2</wc:Quantity>
protected org.w3c.dom.Element createItemTypeElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:ItemType element that indicates how the element is constructed:
<wc:ItemType>ProductBean</wc:ItemType>
protected org.w3c.dom.Element createItemIdElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:ItemId element that indicates how the element is constructed:
<oa:ItemId> <oa:Id>KICO-01</oa:Id> <oa:Name>Olive Oil Gift Set</oa:Name> <oa:UPC url="" /> </oa:ItemId>
protected org.w3c.dom.Element createImagesElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:Images element that indicates how the element is constructed:
<wc:Images> <wc:ImageUrl type="full">wcsstore/ConsumerDirect/images/catalog/TATEP_01.jpg</wc:ImageUrl> <wc:ImageUrl type="thumbnail">wcsstore/ConsumerDirect/images/catalog/TATEP_01_sm.jpg</wc:ImageUrl> </wc:Images>
protected org.w3c.dom.Element createImageUrlElement(java.lang.String strCatalogImagePath, java.lang.String strCatalogImagePathType, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample wc:ImageUrl element that indicates how the element is constructed:
<wc:ImageUrl type="full">wcsstore/ConsumerDirect/images/catalog/TATEP_01.jpg</wc:ImageUrl> <wc:ImageUrl type="thumbnail">wcsstore/ConsumerDirect/images/catalog/TATEP_01_sm.jpg</wc:ImageUrl>
protected org.w3c.dom.Element createCatalogItemLineElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:CatalogItemLine element that indicates how the element is constructed:
<oa:CatalogItemLine> <oa:ItemId> <oa:Id>KICOF-0101</oa:Id> <oa:Name>Brewmaster Deluxe Coffeemaker</oa:Name> <oa:UPC url="" /> </oa:ItemId> <wc:ItemType>ItemBean</wc:ItemType> <oa:Description>Brew the perfect cup of coffee at home. Stainless steel tank brings water to the perfect temperature to get all the flavor from the coffee. Brews a full, steaming pot in three minutes. Three-year limited warranty. </oa:Description> <wc:ShortDescription>Brew the perfect cup of coffee at home.</wc:ShortDescription> <oa:Parties> <oa:PartyId>ManufacturerName</oa:PartyId> </oa:Parties> <oa:Feature> <oa:NameValue name="HasExtendedWarranty" type="nondefining">Yes</oa:NameValue> <oa:NameValue name="Color" type="defining">White</oa:NameValue> </oa:Feature> <oa:ItemPrice> <oa:UnitPrice> <oa:Amount currency="EUR">137.24</oa:Amount> </oa:UnitPrice> <oa:DocumentReferences> <oa:ContractDocumentReference> <oa:DocumentIds> <oa:DocumentId> <oa:Id>10501</oa:Id> </oa:DocumentId> </oa:DocumentIds> <oa:Description>This is a store default contract.</oa:Description> </oa:ContractDocumentReference> </oa:DocumentReferences> </oa:ItemPrice> <wc:Merchandising>false</wc:Merchandising> <wc:Buyable>1</wc:Buyable> </oa:CatalogItemLine>
protected org.w3c.dom.Element createDocumentIdElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:DocumentId element that indicates how the element is constructed:
<oa:DocumentId> <oa:Id>10245</oa:Id> </oa:DocumentId>
protected org.w3c.dom.Element createECHeaderElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
The following is a sample oa:ECHeader element that indicates how the element is constructed:
<oa:ECHeader> <oa:DocumentId> <oa:Id>10245</oa:Id> </oa:DocumentId> </oa:ECHeader>
protected org.w3c.dom.Element createElectronicCatalogElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, boolean headerOnly) throws ECException
The following is a sample oa:ElectronicCatalog that indicates how the element is structured:
<oa:ElectronicCatalog type="Product"> <oa:ECHeader> ... </oa:ECHeader> <oa:CatalogItemLine> ... </oa:CatalogItemLine> <oa:ElectronicCatalog type="Item"> <oa:ECHeader> ... </oa:ECHeader> <oa:CatalogItemLine> ... </oa:CatalogItemLine> </oa:ElectronicCatalog> ( Repeated as the number of SKUs under the product. ) <oa:ElectronicCatalog type="X-Sells"> <oa:ECHeader> ... </oa:ECHeader> <oa:CatalogItemLine> ... </oa:CatalogItemLine> </oa:ElectronicCatalog> ( Repeated as the number of merchandising associations that the product has. ) </oa:ElectronicCatalog>
public org.w3c.dom.Element createElectronicCatalogElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECException
The following is a sample oa:ElectronicCatalog that indicates how the element is structured:
<oa:ElectronicCatalog type="Product"> <oa:ECHeader> ... </oa:ECHeader> <oa:CatalogItemLine> ... </oa:CatalogItemLine> <oa:ElectronicCatalog type="Item"> <oa:ECHeader> ... </oa:ECHeader> <oa:CatalogItemLine> ... </oa:CatalogItemLine> </oa:ElectronicCatalog> ( Repeated as the number of SKUs under the product. ) <oa:ElectronicCatalog type="X-Sells"> <oa:ECHeader> ... </oa:ECHeader> <oa:CatalogItemLine> ... </oa:CatalogItemLine> </oa:ElectronicCatalog> ( Repeated as the number of merchandising associations that the product has. ) </oa:ElectronicCatalog>
protected org.w3c.dom.Element createUserDataElement(ElectronicCatalogSearchResultBean abnElectronicCatalogSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected void initializeCatalogEntriesSearch(AdvancedCatEntrySearchListDataBean abnCatalogEntriesSearch, SearchCriteria aSearchCriteria)
protected ElectronicCatalogSearchResultBean populateSearchResult(ProductDataBean abnProduct, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected ElectronicCatalogSearchResultBean populateSearchResult(ItemDataBean abnItem, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected ElectronicCatalogSearchResultBean populateSearchResult(BundleDataBean abnBundle, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected ElectronicCatalogSearchResultBean populateSearchResult(PackageDataBean abnPackage, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected java.lang.String[][] populatePackageUnitPrice(PackageDataBean abnPackage) throws ECException
public ElectronicCatalogSearchResultBean populateSearchResult(java.lang.String itemspcid, boolean isMerchandisingAssociationRequired, ElectronicCatalogSearchResultBean ecSearchResultBean) throws ECException
protected ElectronicCatalogSearchResultBean populateSearchResult(CatalogEntryDataBean abnCatalogEntry, boolean isHeaderOnlyRequired, boolean isMerchandisingAssociationRequired, boolean isGetDetails, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected void populateConfiguratorURL(CatalogEntryDataBean abnCatalogEntry, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
public ElectronicCatalogSearchResultBean populateSearchResult(CatalogEntryDataBean abnCatalogEntry, CommandContext commandContext, boolean processParent, boolean isMerchandisingAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected java.lang.String[][] populateItemUnitPrice(ItemDataBean abnItem) throws ECException
protected AdvancedCatEntrySearchListDataBean createAdvancedCatEntrySearchListDataBean()
protected CatalogEntryDataBean createCatalogEntryDataBean()
public java.util.ArrayList executeGetElectronicCatalog(SearchCriteria aSearchCriteria) throws ECException
public java.lang.String transformMAssocTypeToElectronicCatalogType(java.lang.String aMAssocType)
protected boolean isNestedAssociationRequired()
protected java.lang.String getRootElementName()
public java.lang.String getMerchandisingAssociationFilter()
public void setMerchandisingAssociationFilter(java.lang.String string)
public ElectronicCatalogSearchResultBean populateDetailsForOrderItem(CatalogEntryDataBean catentdb, java.lang.String orderitemid, ElectronicCatalogSearchResultBean abnSearchResult, boolean isMerchandisingAssociationRequired) throws ECException
public ElectronicCatalogSearchResultBean createElectronicCatalogTree(com.ibm.commerce.order.utils.NestedKitNode aNode, java.util.HashMap nestedKitNodesMap, ElectronicCatalogSearchResultBean searchResultBean, boolean needMerchandisingAssociations) throws ECException
public boolean getIsCatalogEntryWithoutPriceFiltered()
public void setCatalogEntryWithoutPriceFiltered(boolean b)
protected boolean getNonPublishedCatalogEntryFiltered()
public boolean isEmptyStringPrice(ElectronicCatalogSearchResultBean anElectronicCatalogBean)
public boolean isHeaderOnly()
public java.lang.String getMaxResultSetSize()
public int getResultsFiltered()
public boolean isMerchantAssociationNeeded()
public void setHeaderOnly(boolean headerOnly)
public void setMaxResultSetSize(java.lang.String maxResultSetSize)
public void setResultsFiltered(int resultsFiltered)
public void setMerchantAssociationNeeded(boolean merchantAssociationsNeeded)
public ITelesalesResponseCacheableCommand getCacheableCommand() throws ECException
protected void initializeSearchTypeMapping()
protected ElectronicCatalogSearchResultBean populateSearchResult(CompositeItemDataBean dbCompositeItem, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected ElectronicCatalogSearchResultBean populateSearchResult(CompositeProductDataBean dbCompositeProduct, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException
protected ElectronicCatalogSearchResultBean populateSearchResult(CompositePackageDataBean dbCompositePackage, java.lang.String strElectronicCatalogType, boolean isMAssociationRequired, ElectronicCatalogSearchResultBean abnSearchResult) throws ECException