public abstract class MarketingPromotionsRequest extends TelesalesRequest
Constructor and Description |
---|
MarketingPromotionsRequest()
Default constructor to create a new marketing promotion request.
|
Modifier and Type | Method and Description |
---|---|
protected Session | getResponseData()
This method returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.GenericGet object.
|
ServiceContext | getServiceContext()
This method retrieves username and store.id from TelesalesProperties and return them in context
|
protected MarketingPromotion | setProductProperties(org.w3c.dom.Element catalogItemElement, MarketingPromotion marketingPromotion)
This method unmarshalls the CatalogItems element.
|
protected void | unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
This method unmarshalls the DataArea element.
|
protected java.lang.String | unmarshallDocumentId(org.w3c.dom.Element documentIdsElement)
This method unmarshalls the DocumentId element.
|
protected java.lang.String | unmarshallDocumentIds(org.w3c.dom.Element documentIdsElement)
This method unmarshalls the DocumentIds element.
|
protected java.lang.String | unmarshallItemId(org.w3c.dom.Element itemIdElement)
This method unmarshalls the ItemId element.
|
protected java.lang.String | unmarshallItemIds(org.w3c.dom.Element itemIdsElement)
This method unmarshalls the ItemIds element.
|
protected void | unmarshallPromotion(MarketingPromotion marketingPromotion, org.w3c.dom.Element promotionElement)
This method unmarshalls the Promotion element.
|
protected void | unmarshallPromotions(org.w3c.dom.Element promotionsElement)
This method unmarshalls the Promotions element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document responseBOD)
This method unmarshalls the ShowPromotions element.
|
protected void | unmarshallShowPromotionsBOD(org.w3c.dom.Element showPromotionsBODElement)
This method unmarshalls the ShowPromotions element.
|
protected void | updateModel(java.lang.Object databean)
This method stores MarketingPromotion object in TelesalesModelManager.
|
public MarketingPromotionsRequest()
protected void unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
<DataArea> <Promotions> <!-- unmarshalled by unmarshallPromotions() --> . . </Promotions> </DataArea>
protected void unmarshallPromotions(org.w3c.dom.Element promotionsElement)
<Promotions> <Promotion> <!-- unmarshalled by unmarshallPromotion() --> . . </Promotion> </Promotions>
protected void unmarshallPromotion(MarketingPromotion marketingPromotion, org.w3c.dom.Element promotionElement)
<Promotion> <DocumentIds> <!-- unmarshalled by unmarshallDocumentIds() --> . . </DocumentIds> <Description>../<Description> <Type>..</Type> <CatalogItems> <!-- unmarshalled by setProductProperties() --> . . <CatalogItems/> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </Promotion>
protected MarketingPromotion setProductProperties(org.w3c.dom.Element catalogItemElement, MarketingPromotion marketingPromotion)
<CatalogItems> <oa:ItemIds> . . </oa:ItemIds> <oa:ItemCategoryId></oa:ItemCategoryId> <oa:ItemType></oa:ItemType> <oa:Description></oa:Description> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </CatalogItems>
protected java.lang.String unmarshallItemIds(org.w3c.dom.Element itemIdsElement)
<ItemIds> <ItemId> <!-- unmarshalled by unmarshallItemId() --> . . </ItemId> </ItemIds>
protected java.lang.String unmarshallItemId(org.w3c.dom.Element itemIdElement)
<ItemId> <oa:Id>12345</oa:Id> </ItemId>
protected java.lang.String unmarshallDocumentIds(org.w3c.dom.Element documentIdsElement)
<DocumentIds> <DocumentId> <!-- unmarshalled by unmarshallDocumentId() --> . . </DocumentId> </DocumentIds>
protected java.lang.String unmarshallDocumentId(org.w3c.dom.Element documentIdsElement)
<DocumentId> <oa:Id>12345</oa:Id> </DocumentId>
protected void unmarshallResponseBod(org.w3c.dom.Document responseBOD)
<ShowPromotions> . . <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </ShowPromotions>
protected void unmarshallShowPromotionsBOD(org.w3c.dom.Element showPromotionsBODElement)
<ShowPromotions> <!-- unmarshalled by unmarshallDataArea() --> . . </ShowPromotions>
public ServiceContext getServiceContext()
protected Session getResponseData()
protected void updateModel(java.lang.Object databean)