public abstract class OrderBase extends TelesalesResponseBuilderImpl implements ITelesalesResponseBuilder
This base class builds the common Business Object Document elements for all the actions on the following nouns
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class name field.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected boolean | getShippedItemsOnly
Flag for searching only for shipped order items.
|
Constructor and Description |
---|
OrderBase()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | buildNounElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParent, java.lang.String astrNounTagName)
This method builds the common child elements for this noun.
|
protected org.w3c.dom.Element | buildNounElementBaseInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the base information for this noun.
|
protected org.w3c.dom.Element | buildNounElementDetailInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the detailed information for this noun.This provides full information for this noun.
|
protected org.w3c.dom.Element | createAcknowledgementDetailElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the AcknowledgementDetail element.
|
protected org.w3c.dom.Element | createAddressElement(AddressAccessBean abAddress, OrderBaseSearchResultBean abnOrderBaseSearchResult, java.lang.String paymentTCId, org.w3c.dom.Element aParentElement)
This method builds the Address element.
|
protected org.w3c.dom.Element | createAddressesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, java.lang.String paymentTCId, org.w3c.dom.Element aParentElement)
This method builds the Addresses element.
|
protected org.w3c.dom.Element | createAllocQuantityElement(org.w3c.dom.Element aParentElement, java.lang.String astrQuantity)
This method builds the AllocQuantity element.
|
protected org.w3c.dom.Element | createAvailablePaymentMethodsElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the AvailablePaymentMethods element.
|
protected org.w3c.dom.Element | createAvailableShippingModesElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the AvailShippingModes element for the given line entry.
|
protected org.w3c.dom.Element | createBillToPartyElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the BillToParty element.
|
protected org.w3c.dom.Element | createBusinessChannelElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement)
This method creates the BusinessChannel element.
|
protected org.w3c.dom.Element | createBusinessElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the oa:Business Element.
|
protected org.w3c.dom.Element | createChargesElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method creates the Charges element for an order item.
|
protected org.w3c.dom.Element | createChargesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the Charges element for an order.
|
protected org.w3c.dom.Element | createContractIDElement(org.w3c.dom.Element aParentElement, OrderItemDataBean bnOrderItem)
This method creates elements related to the contract ID.
|
protected org.w3c.dom.Element | createCustomerPartyElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the CustomerParty element.
|
protected org.w3c.dom.Element | createDiscountAmountElement(org.w3c.dom.Element aParentElement, java.lang.String astrAmount, java.lang.String astrCurrency)
This method creates the DiscountAmountElement element.
|
protected org.w3c.dom.Element | createElectronicCatalogElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem, OrderBaseSearchResultBean obsrb)
This method builds the ElectronicCatalog element.
|
protected org.w3c.dom.Element | createExtendedPriceElement(org.w3c.dom.Element aParentElement, java.lang.String astrPrice, java.lang.String astrCurrency)
This method builds the ExtendedPrice element.
|
protected org.w3c.dom.Element | createHeaderElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the Header element.
|
protected org.w3c.dom.Element | createHeaderElementBaseInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the Header element which contains a brief information for the header.
|
protected org.w3c.dom.Element | createIsEmptyElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement)
This method builds the isEmpty element.
|
protected org.w3c.dom.Element | createIsExpediteElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method creates the ExpediteOrderItem element.
|
protected org.w3c.dom.Element | createItemShippedElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method creates the Shipped element for an order item.
|
protected org.w3c.dom.Element | createLineDetailElement(OrderItemDataBean[] bnOrderItems, org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean abnOrderBaseSearchResult)
This method creates the order/quote item line element.
|
protected org.w3c.dom.Element | createLineElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method populates the order items from the order base search result bean.
|
protected org.w3c.dom.Element | createMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, java.lang.String astrId, java.lang.String astrCurrency, java.lang.String astrTotal, java.lang.String astrDescription)
Deprecated.
Alternatively use the method createMiscellaneousChargeElement with promotion code as additional parameter.
|
protected org.w3c.dom.Element | createMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, java.lang.String astrId, java.lang.String astrCurrency, java.lang.String astrTotal, java.lang.String astrDescription, java.lang.String astrPromotionCode)
This method creates the MiscellaneousCharge element.
|
protected org.w3c.dom.Element | createNeedToDeliveryDateElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method creates the NeedToDeliveryDate element.
|
protected org.w3c.dom.Element | createNextAvailableTieCodeElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement)
This method builds the NextAvailableTieCode element.
|
protected org.w3c.dom.Element | createOrderBlockElement(org.w3c.dom.Element aParentElement, com.ibm.commerce.ordermanagement.beans.OrderBlockDataBean abnOrderBlock)
This method creates the OrderBlock element.
|
protected org.w3c.dom.Element | createOrderBlocksElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement)
This method creates the OrderBlocks element.
|
protected org.w3c.dom.Element | createOrderCurrentChargesElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement)
This method builds the OrderCurrentCharges element.
|
protected org.w3c.dom.Element | createOrderEditableElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the UserArea element inside the oa:OrderStatus element.
|
protected org.w3c.dom.Element | createOrderHistoryExistedFlagElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the OrderHistoryExistedFlagElement Element and its sub elements.
|
protected org.w3c.dom.Element | createOrderItemElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the OrderItem element for the given order item.
|
protected org.w3c.dom.Element | createOrderItemLevelMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, OrderItemAdjustmentDataBean orderItemAdjustment, OrderItemDataBean abnOrderItem, java.lang.String astrPromotionCode)
This method creates the order item levelMiscellaneousCharge element.
|
protected org.w3c.dom.Element | createOrderItemStatusElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method creates the OrderStatus element for an order item.
|
protected org.w3c.dom.Element | createOrderLevelMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean searchResult, OrderAdjustmentDataBean orderAdjustmentdatabean, java.lang.String promotionCode)
This method creates the MiscellaneousCharge element.
|
protected void | createOrderPromotionCodesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement)
This method builds the OrderPromotionCodes element.
|
protected org.w3c.dom.Element | createOrderShippingInformationElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the OrderShippingInformation Element and its sub-elements.
|
protected org.w3c.dom.Element | createOrderStatusElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the OrderStatus element.
|
protected org.w3c.dom.Element | createOrderUnpaidBalanceElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement)
This method builds the OrderUnpaidBalance element.
|
protected org.w3c.dom.Element | createPartiesElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the Parties Element for the given order item.
|
protected org.w3c.dom.Element | createPartiesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the Parties Element.
|
protected org.w3c.dom.Element | createPartiesElementBaseInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the Parties Element.
|
protected org.w3c.dom.Element | createPaymentInstructionElement(java.util.HashMap ahashProtocolData, EDPPaymentInstruction aPiData, org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean abnOrderBaseSearchResult)
This method builds the PaymentInstruction element.
|
protected org.w3c.dom.Element | createPaymentTermsElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method creates the PaymentTerms element for an order item.
|
protected org.w3c.dom.Element | createPaymentTermsElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the PaymentTerms element for an order.
|
protected void | createQuoteExpireDateElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement)
This method builds the expireDate element.
|
protected org.w3c.dom.Element | createQuoteExpiryPeriodElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement)
This method builds the expirePeriod element.
|
protected void | createShipChargeElement(org.w3c.dom.Element aParentElement, ShipChargeTCPolicyData[] shipChargeTCPolicyData)
This method creates the shipCharge element.
|
protected void | createShipModeElement(org.w3c.dom.Element aParentElement, ShipChargesByShipMode shipChargesByShipMode)
This method creates the shipMode element.
|
protected org.w3c.dom.Element | createShippingAdjustmentElements(ShippingAdjustmentDataBean shipAdjustDataBean, org.w3c.dom.Element aParentElement)
This method creates the ShippingAdjustments element.
|
protected void | createShippingAdjustmentsElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method calls the getShippingAdjustmentDataBeans method on the ShippingAdjustmentDataBean which is constructed using the order Id obtained using the OrderDataBean passed in to obtain a list of shipping adjustments.
|
protected org.w3c.dom.Element | createShippingCarriersElement(org.w3c.dom.Element aParentElement, ShipCarrAccntDataBean bnShipCarrierAccountDataBean)
This method creates the ShippingCarriers element and its sub elements.
|
protected void | createShippingCarriersElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method calls the getShipCarrierAccntListDataBean method on the specified OrderDataBean contained in the specified OrderBaseSearchResultBean to obtain a list of shipping carrier accounts.
|
protected org.w3c.dom.Element | createShippingInstructionsElement(org.w3c.dom.Element aParentElement, ShipInstructionsDataBean bnShipInstructionDataBean)
This method creates ShippingInstructions element and its sub elements.
|
protected void | createShippingInstructionsElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method calls getShipInstructionsListDataBean method on the specified OrderDataBean contained in the given OrderBaseSearchResultBean to obtain a list of shipping instructions.
|
protected org.w3c.dom.Element | createSingleLineDetailElement(OrderItemDataBean bnOrderItem, org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean abnOrderBaseSearchResult)
This method creates the order/quote item line element.
|
protected void | createSingleShipChargeElement(org.w3c.dom.Element aParentElement, ShipChargeTCPolicyData shipChargeTCPolicyData)
This method creates the shipCharge element.
|
protected org.w3c.dom.Element | createStoreElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method creates the Store element.
|
protected org.w3c.dom.Element | createSubLineElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the SubLine Element.
|
protected org.w3c.dom.Element | createTaxElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method builds the Tax element.
|
protected org.w3c.dom.Element | createTieCodeElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the TieCode element for the given order item.
|
protected org.w3c.dom.Element | createTotalElement(org.w3c.dom.Element aParentElement, java.lang.String astrCurrency, java.lang.String astrTotal)
This method creates the Total element.
|
protected org.w3c.dom.Element | createTransportationChargeElement(org.w3c.dom.Element aParentElement, java.lang.String astrCurrency, java.lang.String astrTotal)
This method creates the TransportationCharge element.
|
protected org.w3c.dom.Element | createTransportationTermElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the TransportationTerm element for an order item.
|
protected org.w3c.dom.Element | createUnitPriceElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem)
This method builds the UnitPrice element for an order item.
|
protected void | createUsableShipChargesAndAccountByShipModeElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This method calls getUsableShipChargesAndAccountByShipModeDataBean method on the specified OrderDataBean contained in the given OrderBaseSearchResultBean to obtain a list of available shipping modes.
|
protected org.w3c.dom.Element | createUserdataInAddressElement(AddressAccessBean abAddress, OrderBaseSearchResultBean abnOrderBaseSearchResult, java.lang.String paymentTCId, org.w3c.dom.Element addressElement)
This is an empty method to create the UserData element for Address.
|
protected org.w3c.dom.Element | createUserDataInAvailableShippingModesElement(ShippingModeDataBean bnShippingModeBean, OrderItemDataBean abnOrderItem, org.w3c.dom.Element shippingModeElement)
This is an empty method to create the UserData element for AvailableShippingMode.
|
protected org.w3c.dom.Element | createUserdataInBillToPartyElement(java.util.HashMap ahashProtocolData, EDPPaymentInstruction aPiData, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement)
This is an empty method to create the UserData element for BillToParty.
|
protected org.w3c.dom.Element | createUserdataInBusinessElement(OrganizationDataBean organizationDataBean, OrderBaseSearchResultBean abnOrderSearchResult, org.w3c.dom.Element businessElement)
This is an empty method to create the UserData element for Business.
|
protected org.w3c.dom.Element | createUserdataInLineElement(OrderItemDataBean bnOrderItem, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element lineElement)
This is an empty method to create the UserData element for Line.
|
protected org.w3c.dom.Element | createUserdataInMiscellaneousChargeElement(OrderAdjustmentDataBean orderAdjustmentdatabean, OrderBaseSearchResultBean searchResult, org.w3c.dom.Element miscChargeElement)
This is an empty method to create the UserData element for MiscellaneousCharge.
|
protected org.w3c.dom.Element | createUserdataInOrderBlockElement(com.ibm.commerce.ordermanagement.beans.OrderBlockDataBean abnOrderBlock, org.w3c.dom.Element orderBlockElement)
This is an empty method to create the UserData element for OrderBlock.
|
protected org.w3c.dom.Element | createUserDataInOrderHistoryInformationElement(OrderCommentDataBean ordCommentDataBean, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element orderHistoryInformationElement)
This is an empty method to create the UserData element for OrderHistory.
|
protected org.w3c.dom.Element | createUserdataInOrderItemMiscellaneousChargeElement(OrderItemDataBean abnOrderItem, OrderItemAdjustmentDataBean orderAdjustmentdatabean, org.w3c.dom.Element miscChargeElement)
This is an empty method to create the UserData element for MiscellaneousCharge.
|
protected org.w3c.dom.Element | createUserDataInPaymentMethodsElement(PaymentTCInfo paymentTCInfo, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element paymentMethodElement)
This is an empty method to create the UserData element for PaymentMethods.
|
protected org.w3c.dom.Element | createUserdataInPromotionCodesElement(PromotionCodeData orderPromotionCodeData, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element appliedPromotionCode)
This is an empty method to create the UserData element for PromotionCode.
|
protected org.w3c.dom.Element | createUserdataInShipChargeElement(ShipChargeTCPolicyData shipChargeTCPolicyData, org.w3c.dom.Element shipChargeElement)
This is an empty method to create the UserData element for ShipCharge.
|
protected org.w3c.dom.Element | createUserdataInShipModeElement(ShipChargesByShipMode shipChargesByShipMode, org.w3c.dom.Element shipModeElement)
This is an empty method to create the UserData element for ShipMode.
|
protected org.w3c.dom.Element | createUserdataInShippingAdjustmentElement(ShippingAdjustmentDataBean shippingAdjustmentDataBean, org.w3c.dom.Element shippingAdjustmentElement)
This is an empty method to create the UserData element for ShippingAdjustment.
|
protected org.w3c.dom.Element | createUserdataInShippingCarriersElement(ShipCarrAccntDataBean bnShipCarrierAccountDataBean, org.w3c.dom.Element shippingCarriersElement)
This is an empty method to create the UserData element for ShippingCarriers.
|
protected org.w3c.dom.Element | createUserdataInShippingInstructionsElement(ShipInstructionsDataBean bnShipInstructionDataBean, org.w3c.dom.Element shippingInstructionsElement)
This is an empty method to create the UserData element for ShippingInstructions.
|
protected SearchCriteria | getCustomerSearchCriteria(OrderBaseSearchResultBean abnOrderBaseSearchResult)
This method gets the search criteria which will be used to search the owner of the specified order.
|
protected java.lang.String | getEditorLogonId(OrderBaseSearchResultBean abnOrderBaseSearchResult)
This method gets the order editor's logon ID.
|
OrderBaseSearchResultBean | getOrderBaseSearchResultBean()
This method returns the current OrderBaseSearchResultBean that carries the result.
|
protected IShowCustomer | getShowCustomerBuilder()
This method gets the response BOD builder for the action Get on the noun Customer.
|
protected IShowElectronicCatalog | getShowElectronicCatalogBuilder()
This method gets the response builder for the action Get on the noun ElectronicCatalog.
|
boolean | isPickupInStoreShippingMode(OrderDataBean bnOrderDataBean)
This method verifies the PickupInStore shipping code for an order
|
protected OrderBaseSearchResultBean | populateSearchResult(OrderDataBean abnOrderDataBean, OrderBaseSearchResultBean abnSearchResult, boolean aboolGetOrderDetails)
This method populates the search result bean OrderBaseSearchResultBean with the details of the order in the OrderDataBean bean.
|
protected void | setHeaderDetails(boolean bHeaderDetails)
This method set the value for getHeaderDetails parameter.
|
protected void | setItemsDetails(boolean bItemsDetails)
This method set the value for getItemsDetails parameter.
|
protected void | setOrderBaseSearchResultBean(OrderBaseSearchResultBean bnOrderBaseSearchResultBean)
This method sets the current OrderBaseSearchResultBean that carries the result.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
protected boolean getShippedItemsOnly
protected SearchCriteria getCustomerSearchCriteria(OrderBaseSearchResultBean abnOrderBaseSearchResult) throws ECException
protected java.lang.String getEditorLogonId(OrderBaseSearchResultBean abnOrderBaseSearchResult) throws ECException
protected OrderBaseSearchResultBean populateSearchResult(OrderDataBean abnOrderDataBean, OrderBaseSearchResultBean abnSearchResult, boolean aboolGetOrderDetails) throws ECException
This method also sets a boolean flag in OrderBaseSearchResultBean bean. If it is true, then bean will retrieve the order details and promotions (or merchandising association) related information.
protected org.w3c.dom.Element createAcknowledgementDetailElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException
This method creates the child element Code whose value contains the order editable status obtained from OrderDataBean.isEditable().
<oa:AcknowledgementDetail> <oa:Code>YES</oa:Code> </oa:AcknowledgementDetail>
protected org.w3c.dom.Element createOrderEditableElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECSystemException, ECException
This method creates the following child elements of the user area.
<oa:UserArea> <wc:isOrderEditable>YES</wc:isOrderEditable> <wc:isOrderApprovalPending>NO</wc:isOrderApprovalPending> <wc:isOrderLocked>NO</wc:isOrderLocked> <wc:checkLock>NO</wc:checkLock> </oa:UserArea>
public boolean isPickupInStoreShippingMode(OrderDataBean bnOrderDataBean) throws ECSystemException
protected org.w3c.dom.Element createOrderStatusElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method creates the child element Code. The value of this method indicates the order status.
This method calls the method createAcknowledgementDetailElement to create AcknowledgementDetail element and createOrderEditableElement to create UserArea.
<oa:OrderStatus> <oa:Code>M</oa:Code> <oa:UserArea> . <!-- Created by createOrderEditableElement method --> </oa:UserArea> <oa:AcknowledgementDetail> . <!-- Created by createAcknowledgementDetailElement method --> </oa:AcknowledgementDetail> </oa:OrderStatus>
protected org.w3c.dom.Element createAvailablePaymentMethodsElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
The following is a sample AvailablePaymentMethods element that indicates how the element is constructed:
<AvailablePaymentMethods> <PaymentMethods> <PaymentMethodId>PayLater</PaymentMethodId> <Description>Pay later</Description> </PaymentMethods> <PaymentMethods> <PaymentMethodId>VISA</PaymentMethodId> <Description>VISA Credit Card</Description> </PaymentMethods> </AvailablePaymentMethods>
protected org.w3c.dom.Element createPaymentTermsElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method calls createDiscountAmountElement to create the DiscountAmount element. The value of this element contains the discount amount for the entire order.
This method calls createAvailablePaymentMethodsElement to create the AvailablePaymentMethods element. The value of this element contains the list of available payments.
<wc:PaymentTerms> <oa:DiscountAmount currency="USD">0.00000 </oa:DiscountAmount> <wc:AvailablePaymentMethods> . <!-- Created by createAvailablePaymentMethodsElement method --> </wc:AvailablePaymentMethods> </wc:PaymentTerms>
protected org.w3c.dom.Element createContractIDElement(org.w3c.dom.Element aParentElement, OrderItemDataBean bnOrderItem) throws ECException
The following is a sample DocumentReferences element that indicates how the element is constructed:
<oa:DocumentReferences> <oa:ContractDocumentReference> <oa:DocumentIds> <oa:DocumentId> <oa:Id>12501</oa:Id> </oa:DocumentId> </oa:DocumentIds> </oa:ContractDocumentReference> </oa:DocumentReferences>
protected org.w3c.dom.Element createDiscountAmountElement(org.w3c.dom.Element aParentElement, java.lang.String astrAmount, java.lang.String astrCurrency) throws ECException
<oa:DiscountAmount currency="USD">0.00000</oa:DiscountAmount>
protected org.w3c.dom.Element createPaymentTermsElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
<wc:PaymentTerms> <oa:DiscountAmount currency="USD">0.00000</oa:DiscountAmount> </wc:PaymentTerms>
protected org.w3c.dom.Element createTotalElement(org.w3c.dom.Element aParentElement, java.lang.String astrCurrency, java.lang.String astrTotal) throws ECException
> <oa:TotalAmount currency="USD">177.99000</oa:TotalAmount>
protected org.w3c.dom.Element createMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, java.lang.String astrId, java.lang.String astrCurrency, java.lang.String astrTotal, java.lang.String astrDescription) throws ECException
This method also calls the method createTotalElement to create the Total element.
protected org.w3c.dom.Element createMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, java.lang.String astrId, java.lang.String astrCurrency, java.lang.String astrTotal, java.lang.String astrDescription, java.lang.String astrPromotionCode) throws ECException
This method also calls the method createTotalElement to create the Total element. The following sample shows the structure of the MiscellaneousCharge
<oa:MiscellaneousCharge> <!-- salesContainer.addMiscellaneousCharge --> <oa:Id>10001</oa:Id> <!-- miscCharge.setUniqueIdentifier --> <oa:Total currency="USD">10.00</oa:Total> <!-- miscCharge.setCurrency and miscCharge.setAmount --> <oa:Description>Surchange Adjustment</oa:Description> <!-- miscCharge.setDescription() --> <wc:PromotionCode> <wc:Code>A12-34</wc:Code; <!-- miscCharge.setPromotionCode() --> </wc:PromotionCode> </oa:MiscellaneousCharge>
protected org.w3c.dom.Element createOrderItemLevelMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, OrderItemAdjustmentDataBean orderItemAdjustment, OrderItemDataBean abnOrderItem, java.lang.String astrPromotionCode) throws ECException
<oa:MiscellaneousCharge> <!-- salesContainer.addMiscellaneousCharge --> <oa:Id>10001</oa:Id> <!-- miscCharge.setUniqueIdentifier --> <oa:Total currency="USD">10.00</oa:Total> <!-- miscCharge.setCurrency and miscCharge.setAmount --> <oa:Description>Surchange Adjustment</oa:Description> <!-- miscCharge.setDescription() --> <wc:PromotionCode> <wc:Code>A12-34</wc:Code; <!-- miscCharge.setPromotionCode() --> </wc:PromotionCode> <UserData> <!-- createUserdataInMiscellaneousChargeElement(Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </oa:MiscellaneousCharge>
protected org.w3c.dom.Element createOrderLevelMiscellaneousChargeElement(org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean searchResult, OrderAdjustmentDataBean orderAdjustmentdatabean, java.lang.String promotionCode) throws ECException
<oa:MiscellaneousCharge> <!-- salesContainer.addMiscellaneousCharge --> <oa:Id>10001</oa:Id> <!-- miscCharge.setUniqueIdentifier --> <oa:Total currency="USD">10.00</oa:Total> <!-- miscCharge.setCurrency and miscCharge.setAmount --> <oa:Description>Surchange Adjustment</oa:Description> <!-- miscCharge.setDescription() --> <wc:PromotionCode> <wc:Code>A12-34</wc:Code; <!-- miscCharge.setPromotionCode() --> </wc:PromotionCode> <UserData> <!-- createUserdataInMiscellaneousChargeElement(Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </oa:MiscellaneousCharge>
protected org.w3c.dom.Element createUserdataInOrderItemMiscellaneousChargeElement(OrderItemDataBean abnOrderItem, OrderItemAdjustmentDataBean orderAdjustmentdatabean, org.w3c.dom.Element miscChargeElement) throws ECException
... Element userDataElement = createWCDocumentElement(miscChargeElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createUserdataInMiscellaneousChargeElement(OrderAdjustmentDataBean orderAdjustmentdatabean, OrderBaseSearchResultBean searchResult, org.w3c.dom.Element miscChargeElement) throws ECException
... Element userDataElement = createWCDocumentElement(miscChargeElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createUserDataInPaymentMethodsElement(PaymentTCInfo paymentTCInfo, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element paymentMethodElement) throws ECException
... Element userDataElement = createWCDocumentElement(paymentMethodElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createTransportationChargeElement(org.w3c.dom.Element aParentElement, java.lang.String astrCurrency, java.lang.String astrTotal) throws ECException
This method also calls the method createTotalElement to create the Total element.
protected org.w3c.dom.Element createChargesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This methods calls createTransportationChargeElement to build the TransportationCharge Element.
This methods calls the createMiscellaneousChargeElement to build the MiscellaneousCharge element for order level surcharge adjustments and order level discount adjustments.
<oa:Charges> <oa:TransportationCharge> . <!-- Created by createTransportationChargeElement method --> </oa:TransportationCharge> <oa:MiscellaneousCharge> . <!-- Created by createMiscellaneousChargeElement method --> </oa:MiscellaneousCharge> </oa:Charges>
protected org.w3c.dom.Element createChargesElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
This methods calls the createMiscellaneousChargeElement to build the MiscellaneousCharge element for order item surcharge adjustments and order item discount adjustments.
<oa:Charges> <oa:MiscellaneousCharge> . <!-- Created by createMiscellaneousChargeElement method --> </oa:MiscellaneousCharge> </oa:Charges>
protected IShowCustomer getShowCustomerBuilder()
protected IShowElectronicCatalog getShowElectronicCatalogBuilder()
protected org.w3c.dom.Element createCustomerPartyElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
<CustomerParty> <PartyId> <Id>100</Id> </PartyId> </CustomerParty>
protected org.w3c.dom.Element createPaymentInstructionElement(java.util.HashMap ahashProtocolData, EDPPaymentInstruction aPiData, org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean abnOrderBaseSearchResult) throws ECException
The following is a sample PaymentInstruction element that shows how the element is constructed:
<PaymentInstruction> <PIId>13501</PIId> <PIAmount>638.40000</PIAmount> <PIMethod>BillMeLater</PIMethod> <PIDataEditable>true</PIDataEditable> <PIAmountEditable>true</PIAmountEditable> <PIValid>true</PIValid> <UserDataField name="langId">-1</UserDataField> <UserDataField name="@revision">8.1.0</UserDataField> <UserDataField name="ReUrl">NoReURL</UserDataField> </PaymentInstruction>
protected org.w3c.dom.Element createBillToPartyElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method calls the createPartyIdElement to create the PartyId element. This element contains the billing address id.
This method calls the createPaymentInstructionElement to create the PaymentInstruction element.
This method creates the child element 'Currency'. Additionally it invokes the createUserdataInBillToPartyElement(EDPPaymentInstruction, Element) method to create the user data under BillToParty element.
protected org.w3c.dom.Element createUserdataInBillToPartyElement(java.util.HashMap ahashProtocolData, EDPPaymentInstruction aPiData, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
... Element userDataElement = createWCDocumentElement(billToPartyElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createPartiesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This methods calls the method createCustomerPartyElement to create the CustomerParty element.
This methods calls the method createBillToPartyElement to create the BillToParty element.
protected org.w3c.dom.Element createTaxElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
The following is a sample Tax element that indicates how the element is constructed:
<oa:Tax> <oa:TaxAmount currency="USD">30.40000</oa:TaxAmount> <oa:Charges> <oa:TransportationCharge> <!-- created by the createTransportationChargeElement method --> . . </oa:TransportationCharge> </oa:Charges> </oa:Tax>
protected org.w3c.dom.Element createExtendedPriceElement(org.w3c.dom.Element aParentElement, java.lang.String astrPrice, java.lang.String astrCurrency) throws ECException
protected org.w3c.dom.Element createHeaderElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method calls the following methods to create the child elements of the Header element:
This method also creates the following child elements:
<wc:Header> <oa:DocumentIds> . <!-- Created by createDocumentIdsElement method --> </oa:DocumentIds> <oa:OrderStatus> . <!-- Created by createOrderStatusElement method --> </oa:OrderStatus> <wc:isEmpty><!-- Created by createIsEmptyElement --></wc:isEmpty> <wc:NextAvailableTieCode><!-- Created by createNextAvailableTieCodeElement --></wc:NextAvailableTieCode> <oa:ExtendedPrice currency="USD">159.99000</oa:ExtendedPrice> <oa:TotalAmount currency="USD">177.99000</oa:TotalAmount> <wc:PaymentTerms> . <!-- Created by createPaymentTermsElement method --> </wc:PaymentTerms> <oa:Charges> . <!-- Created by createChargesElement method --> </oa:Charges> <oa:Parties> . <!-- Created by createPartiesElement method --> </oa:Parties> <oa:Tax> . <!-- Created by createTaxElement method --> </oa:Tax> <oa:LastModificationDateTime>2006 05 12 19:08:44.139</oa:LastModificationDateTime> <wc:ShipAsComplete>Y</wc:ShipAsComplete> <wc:OrderPlacedDate>2006 05 12 19:08:44.139</wc:OrderPlacedDate> <wc:PONumberRequired>true</wc:PONumberRequired> <wc:PONumber>1</wc:PONumber> <wc:Store> . <!-- Created by createStoreElement method --> </wc:Store> <wc:IsPreparedInd>true</wc:IsPreparedInd> <wc:CurrentOrderEditorId /> <wc:BusinessChannel> . <!-- Created by createBusinessChannelElement method --> </wc:BusinessChannel> <wc:OrderCurrentCharges> . <!-- Created by createOrderCurrentChargesElement method --> </wc:OrderCurrentCharges> <wc:OrderUnpaidBalance currency="USD">0.00000</wc:OrderUnpaidBalance> <wc:OrderPromotionCodes> <!-- Created by createOrderPromotionCodesElement method --> <wc:OrderPromotionCodes> </wc:Header>
protected void createOrderPromotionCodesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement) throws ECException
The following is a sample OrderPromotionCodes element that indicates how the element is constructed:
<OrderPromotionCodes> <PromotionCode> <Code>102</Code> <Description>Save 20% on all Brake Pads!</Description> <UserData> <!-- createUserdataInPromotionCodesElement() --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </PromotionCode> </OrderPromotionCodes>
protected org.w3c.dom.Element createQuoteExpiryPeriodElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement) throws ECException
The following is a sample expirePeriod element that indicates how the element is constructed:
<wc:expirePeriod>172800</wc:expirePeriod>
protected org.w3c.dom.Element createIsEmptyElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement) throws ECException
The following is a sample isEmpty element that indicates how the element is constructed:
<wc:isEmpty>false</wc:isEmpty>
protected org.w3c.dom.Element createNextAvailableTieCodeElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement) throws ECException
The following is a sample NextAvailableTieCode element that indicates how the element is constructed:
<wc:NextAvailableTieCode>1</wc:NextAvailableTieCode>
protected void createQuoteExpireDateElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element headerElement) throws ECException
The following is a sample expireDate element that indicates how the element is constructed:
<wc:expireDate>172800/wc:expireDate>
protected org.w3c.dom.Element createOrderItemElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
The following is a sample OrderItem element that shows how the element is constructed:
<oa:OrderItem> <oa:ItemIds> <oa:ItemId> <oa:Id>10904</oa:Id>> </oa:ItemId> <oa:SupplierItemId> <oa:Id>HWARE_1040</oa:Id> <oa:AssigningPartyId> <oa:Id>7000000000000000601</oa:Id> </oa:AssigningPartyId> </oa:SupplierItemId> <oa:SupplierItemId> <oa:Id></oa:Id> <oa:AssigningPartyId> <oa:Id>CONFIGURATOR</oa:Id> </oa:AssigningPartyId> </oa:SupplierItemId> </oa:ItemIds> </oa:OrderItem>
protected org.w3c.dom.Element createOrderItemStatusElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
This method creates the child element CODE. If the order item is editable, the CODE will have value 'YES'. Otherwise, the value is 'NO'.
protected org.w3c.dom.Element createUnitPriceElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
The following is a sample UnitPrice element that shows how the element is constructed:
<oa:UnitPrice> <oa:Amount currency="USD">259.00</oa:Amount> <oa:PerQuantity uom="each">1</oa:PerQuantity> </oa:UnitPrice>
protected org.w3c.dom.Element createPartiesElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
The following is a sample Parties element that indicates how the element is constructed:
<oa:Parties> <oa:CustomerParty> <oa:Addresses> <Address> <AddressId>1000<AddressId> </Address> </oa:Addresses> </oa:CustomerParty> <oa:ShipToParty> <oa:Addresses> <Address> <AddressId>1000<AddressId> </Address> <Address> <AddressId>1001<AddressId> </Address> </oa:Addresses> &/lt;oa:ShipToParty> </oa:Parties>
protected org.w3c.dom.Element createTransportationTermElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
protected org.w3c.dom.Element createAllocQuantityElement(org.w3c.dom.Element aParentElement, java.lang.String astrQuantity) throws ECException
protected org.w3c.dom.Element createSubLineElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
This method calls the createExtendedPriceElement method to build the ExtendedPrice element.
This method calls the createAllocQuantityElement method to build the AllocQuantity element.
<SubLine> <oa:LineNumber>75001</oa:LineNumber> <oa:OrderItem> <oa:ItemStatus> <oa:Code>ALLC</oa:Code> </oa:ItemStatus> </oa:OrderItem> <oa:OrderQuantity uom="NMTOKEN">1</oa:OrderQuantity> <oa:ExtendedPrice currency="USD">259.00</oa:ExtendedPrice> <!-- created by the createExtendedPriceElement method --> <oa:EarliestShipDate>2004-11-12</oa:EarliestShipDate> <DistributionCenter>11201</DistributionCenter> <AllocatedQuantity uom="NMTOKEN">1</AllocatedQuantity> <!-- created by the createAllocQuantityElement method --> </SubLine>
protected org.w3c.dom.Element createTieCodeElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
protected org.w3c.dom.Element createAvailableShippingModesElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
protected org.w3c.dom.Element createElectronicCatalogElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem, OrderBaseSearchResultBean obsrb) throws ECException
If the value of OrderBaseSearchResultBean.getPromotions() is false, and if the value of OrderBaseSearchResultBean.getOrderItemDetailsId() is false, then null is returned by the method.
Otherwise this method will build the ElectronicCatalog element.
protected org.w3c.dom.Element createNeedToDeliveryDateElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
protected org.w3c.dom.Element createIsExpediteElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
protected org.w3c.dom.Element createOrderShippingInformationElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createOrderHistoryExistedFlagElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected void createUsableShipChargesAndAccountByShipModeElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected void createShipChargeElement(org.w3c.dom.Element aParentElement, ShipChargeTCPolicyData[] shipChargeTCPolicyData) throws ECException
protected void createSingleShipChargeElement(org.w3c.dom.Element aParentElement, ShipChargeTCPolicyData shipChargeTCPolicyData) throws ECException
protected org.w3c.dom.Element createUserdataInShipChargeElement(ShipChargeTCPolicyData shipChargeTCPolicyData, org.w3c.dom.Element shipChargeElement) throws ECException
... Element userDataElement = createWCDocumentElement(shipChargeElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createUserDataInAvailableShippingModesElement(ShippingModeDataBean bnShippingModeBean, OrderItemDataBean abnOrderItem, org.w3c.dom.Element shippingModeElement) throws ECException
... Element userDataElement = createWCDocumentElement(shippingModeElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createUserdataInPromotionCodesElement(PromotionCodeData orderPromotionCodeData, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element appliedPromotionCode) throws ECException
... Element userDataElement = createWCDocumentElement(shipChargeElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected void createShipModeElement(org.w3c.dom.Element aParentElement, ShipChargesByShipMode shipChargesByShipMode) throws ECException
protected org.w3c.dom.Element createUserdataInShipModeElement(ShipChargesByShipMode shipChargesByShipMode, org.w3c.dom.Element shipModeElement) throws ECException
... Element userDataElement = createWCDocumentElement(shipModeElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected void createShippingInstructionsElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createShippingInstructionsElement(org.w3c.dom.Element aParentElement, ShipInstructionsDataBean bnShipInstructionDataBean) throws ECException
protected org.w3c.dom.Element createUserdataInShippingInstructionsElement(ShipInstructionsDataBean bnShipInstructionDataBean, org.w3c.dom.Element shippingInstructionsElement) throws ECException
... Element userDataElement = createWCDocumentElement(shippingInstructionsElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected void createShippingCarriersElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createShippingCarriersElement(org.w3c.dom.Element aParentElement, ShipCarrAccntDataBean bnShipCarrierAccountDataBean) throws ECException
protected org.w3c.dom.Element createUserdataInShippingCarriersElement(ShipCarrAccntDataBean bnShipCarrierAccountDataBean, org.w3c.dom.Element shippingCarriersElement) throws ECException
... Element userDataElement = createWCDocumentElement(shippingCarriersElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected void createShippingAdjustmentsElements(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createShippingAdjustmentElements(ShippingAdjustmentDataBean shipAdjustDataBean, org.w3c.dom.Element aParentElement) throws ECSystemException
protected org.w3c.dom.Element createUserdataInShippingAdjustmentElement(ShippingAdjustmentDataBean shippingAdjustmentDataBean, org.w3c.dom.Element shippingAdjustmentElement) throws ECException
... Element userDataElement = createWCDocumentElement(shippingAdjustmentElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createLineDetailElement(OrderItemDataBean[] bnOrderItems, org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean abnOrderBaseSearchResult) throws ECException
The following child elements also get created:
<wc:Line> <oa:LineNumber>20002</oa:LineNumber> <oa:OrderStatus> . <!-- Created by createOrderItemStatusElement method --> </oa:OrderStatus> <oa:OrderItem> . <!-- Created by createOrderItemElement method --> </oa:OrderItem> <oa:OrderQuantity uom="NMTOKEN">1</oa:OrderQuantity> <oa:UnitPrice> . <!-- Created by createUnitPriceElement method --> </oa:UnitPrice> <oa:ExtendedPrice currency="USD">159.99000</oa:ExtendedPrice> <wc:ExpediteOrderItem>N</wc:ExpediteOrderItem> <oa:Parties> . <!-- Created by createPartiesElement method --> </oa:Parties> <oa:TransportationTerm> . <!-- Created by createTransportationTermElement method --> </oa:TransportationTerm> <oa:Charges /> <wc:PaymentTerms> . <!-- Created by createPaymentTermsElement method --> </wc:PaymentTerms> <oa:DocumentReferences> . <!-- Created by createContractIDElement method --> </oa:DocumentReferences> <wc:AllocatedQuantity uom="NMTOKEN">1</wc:AllocatedQuantity> <wc:TieCode /> <wc:ItemCreateDate>2006 05 12 19:05:47.094</wc:ItemCreateDate> <wc:AvailShippingModes> . <!-- Created by createAvailableShippingModesElement method --> </wc:AvailShippingModes> <oa:ElectronicCatalog> . <!-- Created by createElectronicCatalogElement method --> </oa:ElectronicCatalog> <oa:Shipped> . <!-- Created by createItemShippedElement method --> </oa:Shipped> <wc:SubLine> . <!-- Created by createSubLineElement method --> </wc:SubLine> </wc:Line> This method internally calls the following methods:
protected org.w3c.dom.Element createSingleLineDetailElement(OrderItemDataBean bnOrderItem, org.w3c.dom.Element aParentElement, OrderBaseSearchResultBean abnOrderBaseSearchResult) throws ECException
The following child elements also get created:
<wc:Line> <oa:LineNumber>20002</oa:LineNumber> <oa:OrderStatus> . <!-- Created by createOrderItemStatusElement method --> </oa:OrderStatus> <oa:OrderItem> . <!-- Created by createOrderItemElement method --> </oa:OrderItem> <oa:OrderQuantity uom="NMTOKEN">1</oa:OrderQuantity> <oa:UnitPrice> . <!-- Created by createUnitPriceElement method --> </oa:UnitPrice> <oa:ExtendedPrice currency="USD">159.99000</oa:ExtendedPrice> <wc:ExpediteOrderItem>N</wc:ExpediteOrderItem> <oa:Parties> . <!-- Created by createPartiesElement method --> </oa:Parties> <oa:TransportationTerm> . <!-- Created by createTransportationTermElement method --> </oa:TransportationTerm> <oa:Charges /> <wc:PaymentTerms> . <!-- Created by createPaymentTermsElement method --> </wc:PaymentTerms> <oa:DocumentReferences> . <!-- Created by createContractIDElement method --> </oa:DocumentReferences> <wc:AllocatedQuantity uom="NMTOKEN">1</wc:AllocatedQuantity> <wc:TieCode /> <wc:ItemCreateDate>2006 05 12 19:05:47.094</wc:ItemCreateDate> <wc:AvailShippingModes> . <!-- Created by createAvailableShippingModesElement method --> </wc:AvailShippingModes> <oa:ElectronicCatalog> . <!-- Created by createElectronicCatalogElement method --> </oa:ElectronicCatalog> <oa:Shipped> . <!-- Created by createItemShippedElement method --> </oa:Shipped> <wc:SubLine> . <!-- Created by createSubLineElement method --> </wc:SubLine> </wc:Line> This method internally calls the following methods:
protected org.w3c.dom.Element createUserdataInLineElement(OrderItemDataBean bnOrderItem, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element lineElement) throws ECException
... Element userDataElement = createWCDocumentElement(lineElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createLineElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method internally invokes the createLineDetailElement after getting order items information based on the getShippedItemsOnly status.
protected org.w3c.dom.Element createItemShippedElement(org.w3c.dom.Element aParentElement, OrderItemDataBean abnOrderItem) throws ECException
This method creates the child element CODE. If the order item is shipped, the CODE will have value 'YES'. Otherwise, the value is 'NO'.
protected org.w3c.dom.Element buildNounElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParent, java.lang.String astrNounTagName) throws ECException
If the order detailed information is needed (abnOrderBaseSearchResult.getRetrieveDetailsFlag returns true. ), this method calls the buildNounElementDetailInfo method to build the elements. Otherwise, this method calls the buildNounElementBaseInfo method to build the elements.
protected org.w3c.dom.Element buildNounElementBaseInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element buildNounElementDetailInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method calls the in this method are:
<wc:SalesOrder> <wc:Header> . <!-- Created by createHeaderElement method --> </wc:Header> <wc:Line> . <!-- Created by createLineElement method --> </wc:Line> <wc:OrderShippingInformation> . <!-- Created by createLineElement method --> </wc:OrderShippingInformation> <wc:OrderHistoryExistedFlag>true</wc:OrderHistoryExistedFlag> <wc:UserData/> </wc:SalesOrder>
protected org.w3c.dom.Element createHeaderElementBaseInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method calls the following methods to create the child elements of Header element:
This method also creates the following child elements:
protected org.w3c.dom.Element createPartiesElementBaseInfo(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
The following is a sample Parties element that indicates how the element is constructed:
<oa:Parties> <oa:CustomerParty> <oa:Contacts> <oa:Contact> <UserAccount> <Authorization> <UserId>alan</UserId> </Authorization> </UserAccount> </oa:Contact> </oa:Contacts> </oa:CustomerParty> </oa:Parties>
protected org.w3c.dom.Element createBusinessElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
The following is a sample Business element that indicates how the element is constructed:
<oa:Business> <oa:Function>O</oa:Function> <oa:Name /> <oa:RelatedUnit> <oa:Relationship>Parent</oa:Relationship> <oa:Unit> <oa:Id>-2001</oa:Id> <oa:Name>Root Organization</oa:Name> </oa:Unit> </oa:RelatedUnit> </oa:Business>
protected org.w3c.dom.Element createUserdataInBusinessElement(OrganizationDataBean organizationDataBean, OrderBaseSearchResultBean abnOrderSearchResult, org.w3c.dom.Element businessElement) throws ECException
... Element userDataElement = createWCDocumentElement(businessElement, abnCustomerSearchResult, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createOrderCurrentChargesElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createOrderUnpaidBalanceElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createBusinessChannelElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement) throws ECException
protected org.w3c.dom.Element createAddressesElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, java.lang.String paymentTCId, org.w3c.dom.Element aParentElement) throws ECException
This method will create an Address element for each address billing address available for this order. Each Address element is created with only the AddressId child element.
protected org.w3c.dom.Element createAddressElement(AddressAccessBean abAddress, OrderBaseSearchResultBean abnOrderBaseSearchResult, java.lang.String paymentTCId, org.w3c.dom.Element aParentElement) throws ECException
This method creates an Address element with the AddressId child element. Additionally it invokes the createUserdataInAddressElement(AddressAccessBean, Element) method to create the user data under Address element.
protected org.w3c.dom.Element createUserdataInAddressElement(AddressAccessBean abAddress, OrderBaseSearchResultBean abnOrderBaseSearchResult, java.lang.String paymentTCId, org.w3c.dom.Element addressElement) throws ECException
... Element userDataElement = createWCDocumentElement(addressElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createUserDataInOrderHistoryInformationElement(OrderCommentDataBean ordCommentDataBean, OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element orderHistoryInformationElement) throws ECException
... Element userDataElement = createWCDocumentElement(orderHistoryInformationElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createOrderBlocksElement(OrderBaseSearchResultBean abnSearchResult, org.w3c.dom.Element aParentElement) throws ECException
This method calls the createOrderBlockElement to create the OrderBlock element.
protected org.w3c.dom.Element createOrderBlockElement(org.w3c.dom.Element aParentElement, com.ibm.commerce.ordermanagement.beans.OrderBlockDataBean abnOrderBlock) throws ECException
The following child elements will be built:
<wc:OrderBlock> <wc:BlockId>11001</wc:BlockId> <wc:BlockReasonCodeId>5010</wc:BlockReasonCodeId> <wc:BlockReasonCodeDesc>Buyer fraud suspected</wc:BlockReasonCodeDesc> <wc:Description>xsxas</wc:Description> <wc:BlockedInd>true</wc:BlockedInd> <wc:BlockDate>2006-05-12 21:09:06.995</wc:BlockDate> <wc:ManualBlockInd>true</wc:ManualBlockInd> <UserData> <!-- createUserdataInOrderBlockElement(OrderBlockDataBean, Element) --> <UserDataField name="Name">"Value"</UserDataField> <UserData/> </wc:OrderBlock>
protected org.w3c.dom.Element createUserdataInOrderBlockElement(com.ibm.commerce.ordermanagement.beans.OrderBlockDataBean abnOrderBlock, org.w3c.dom.Element orderBlockElement) throws ECException
... Element userDataElement = createWCDocumentElement(orderBlockElement, BodConstants.TAG_WC_USER_DATA); createUserDataFieldElement(userDataElement, fieldName, fieldValue); ... return userDataElement;
protected org.w3c.dom.Element createStoreElement(OrderBaseSearchResultBean abnOrderBaseSearchResult, org.w3c.dom.Element aParentElement) throws ECException
The following child elements will be built:
<wc:Store> <wc:StoreId>10001</wc:StoreId> <wc:Description>AdvancedB2BDirect</wc:Description> <wc:Type>B2B</wc:Type> </wc:Store>
protected void setHeaderDetails(boolean bHeaderDetails)
protected void setItemsDetails(boolean bItemsDetails)
public OrderBaseSearchResultBean getOrderBaseSearchResultBean()
protected void setOrderBaseSearchResultBean(OrderBaseSearchResultBean bnOrderBaseSearchResultBean)