public class CreateOrganizationRequest extends OrganizationRequest
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element | addressesElement_
addressesElement_ contains the request document's Addresses element.
|
protected org.w3c.dom.Element | businessElement_
businessElement_ contains the request document's Business element.
|
protected org.w3c.dom.Element | contactElement_
contactElement_ contains the request document's Contact element.
|
protected org.w3c.dom.Element | contactsElement_
contactsElement_ contains the request document's Contacts element.
|
protected org.w3c.dom.Element | descriptionElement_
descriptionElement_ contains the request document's Description element.
|
protected org.w3c.dom.Element | organizationElement_
organizationElement_ contains the request document's Organization element.
|
protected org.w3c.dom.Element | organizationPartyElement_
organizationPartyElement_ contains the request document's OrganizationParty element.
|
protected org.w3c.dom.Element | personElement_
personElement_ contains the request document's Person element.
|
protected org.w3c.dom.Element | relatedUnitElement_
relatedUnitElement_ contains the request document's RelatedUnit element.
|
Constructor and Description |
---|
CreateOrganizationRequest()
Default constructor to reate a new request.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createAddressElement()
This method builds the Address element and adds it as a child of addressesElement_.
|
protected org.w3c.dom.Element | createAddressesElement()
This method builds the Addresses element and adds it as a child of organizationPartyElement_.
|
protected org.w3c.dom.Element | createBusinessElement()
This method builds the Business element and adds it as a child of organizationPartyElement_.
|
protected org.w3c.dom.Element | createContactElement()
This method builds the Contact element and adds it as a child of contactsElement_.
|
protected org.w3c.dom.Element | createContactsElement()
This method builds the Contacts element and adds it as a child of organizationPartyElement_.
|
protected org.w3c.dom.Element | createDataAreaElement()
This method builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createDescriptionElement()
This method builds the Description element and adds it as a child of organizationPartyElement_.
|
protected org.w3c.dom.Element | createOrganizationElement()
This method builds the Organization element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createOrganizationPartyElement()
This method builds the OrganizationParty element and adds it as a child of organizationElement_.
|
protected org.w3c.dom.Element | createPersonElement()
This method builds the Person element and adds it as a child of contactElement_.
|
protected org.w3c.dom.Element | createRelatedUnitElement()
This method builds the RelatedUnit element and adds it as a child of businessElement_.
|
protected org.w3c.dom.Element | createSenderElement()
This method builds the Sender element and adds it as a child of applicationAreaElement_.
|
protected org.w3c.dom.Document | getRequestBod()
This method constructs the request document.
|
protected Session | getResponseData()
This method returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.Organization object.
|
ServiceContext | getServiceContext()
This method constructs the service context for this service request.
|
protected java.lang.String | getXSDFileName()
This method returns the name of the schema file for the request BOD (business object document).
|
protected org.w3c.dom.Element organizationElement_
protected org.w3c.dom.Element organizationPartyElement_
protected org.w3c.dom.Element businessElement_
protected org.w3c.dom.Element descriptionElement_
protected org.w3c.dom.Element relatedUnitElement_
protected org.w3c.dom.Element addressesElement_
protected org.w3c.dom.Element contactsElement_
protected org.w3c.dom.Element contactElement_
protected org.w3c.dom.Element personElement_
public CreateOrganizationRequest()
protected Session getResponseData()
public ServiceContext getServiceContext()
protected java.lang.String getXSDFileName()
protected org.w3c.dom.Document getRequestBod()
<CreateOrganization> <!-- created by the createWCRootElement method --> . . </CreateOrganization>
protected org.w3c.dom.Element createOrganizationElement()
The following outline shows the structure of the Organization element and its construction:
<oa:Organization> <OrganizationParty> <!-- constructed by createOrganizationPartyElement() --> . . </OrganizationParty> <CommerceArea> <!-- constructed by createCommerceAreaElement() --> . . </CommerceArea> <UserData/> <!-- constructed by createUserDataElement(organization_) --> </oa:Organization>
protected org.w3c.dom.Element createOrganizationPartyElement()
The following outline shows the structure of the OrganizationParty element and its construction:
<oa:OrganizationParty> <oa:Name>SellerOrg</oa:Name> <!-- organization_.getOrganizationName() --> <oa:Business> <!-- constructed by createBusinessElement() --> . . </oa:Business> <oa:Description>Seller Organization Description</oa:Description> <!-- organization_.getDescription() --> <oa:Addresses> <!-- constructed by createAddressesElement() --> . . </oa:Addresses> <oa:Contacts> <!-- constructed by createContactsElement() --> . . </oa:Contacts> </oa:OrganizationParty>
protected org.w3c.dom.Element createBusinessElement()
The following outline shows the structure of the Business element and its construction:
<oa:Business> <oa:Function>O</oa:Function> <!-- organization_.getOrganizationFunction() --> <oa:Name lang="en-US">Business Category</oa:Name> <!-- organization_.getCategory() --> <oa:RelatedUnit> <!-- constructed by createRelatedUnitElement() --> . . </oa:RelatedUnit> </oa:Business>
protected org.w3c.dom.Element createDescriptionElement()
The following outline shows the structure of the Description element and its construction:
<oa:Description>Organization Description</oa:Description>
protected org.w3c.dom.Element createRelatedUnitElement()
The following outline shows the structure of the RelatedUnit element and its construction:
<oa:RelatedUnit> <oa:Relationship>Parent</oa:Relationship> <oa:Unit> <!-- constructed by createRelatedUnitElement() --> <oa:Id>1001</oa:Id> <!-- organization_.getOrganizationParent().getOrganizationEntityID() --> </oa:Unit> </oa:RelatedUnit>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <oa:Create confirm="Always"/> <Organization> <!-- constructed by createOrganizationElement() --> . . </Organization> </DataArea>
protected org.w3c.dom.Element createAddressesElement()
The following outline shows the structure of the Addresses element and its construction:
<oa:Addresses> <oa:Address> <!-- constructed by createAddressElement(). --> . . </oa:Address> </oa:Addresses>
protected org.w3c.dom.Element createAddressElement()
The following sample shows the structure of the Address element and its construction:
<oa:Address primary="false" type="SB"> <!-- primary is address.getPrimary(), type is address.getType() --> <oa:AddressId>4052</oa:AddressId> <!-- address.getAddressId(); if this a new address this element is excluded --> <oa:AddressLine>123 Broadway</oa:AddressLine> <!-- address.getAddressLine1() --> <oa:AddressLine>123 Broadway</oa:AddressLine> <!-- address.getAddressLine2() --> <oa:AddressLine>123 Broadway</oa:AddressLine> <!-- address.getAddressLine3() --> <oa:City>New York</oa:City> <!-- address.getTownCity() --> <wc:StateOrProvinceCode>NY</wc:StateOrProvinceCode> <!-- address.getStateProvince() --> <wc:CountryCode>US</wc:CountryCode> <!-- address.getCountry() --> <oa:Region>USA</oa:Region> <!-- address.getRegion() --> <oa:PostalCode>12345</oa:PostalCode> <!-- address.getPostalCode() --> <AddressNickName>home</AddressNickName> <!-- address.getAddressNickName() --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </oa:Address>
protected org.w3c.dom.Element createContactsElement()
The following outline shows the structure of the Contacts element and its construction:
<oa:Contacts> <Contact> <!-- constructed by createContactElement(). --> . . </Contact> </oa:Contacts>
protected org.w3c.dom.Element createContactElement()
The following sample shows the structure of the Contact element and its construction:
<Contact> <oa:Person> <!-- constructed by createPersonElement() --> . . </oa:Person> <oa:EmailAddress>joe@ibm.com</oa:EmailAddress> <!-- organization_.getEmailAddress1() --> <oa:EmailAddress>joe@ibm.com</oa:EmailAddress> <!-- organization_.getEmailAddress2() --> <oa:Fax>555-1111</oa:Fax> <!-- organization_.getFax1() --> <oa:Fax>555-2222</oa:Fax> <!-- organization_.getFax2() --> <oa:URI/> <oa:Description lang="en-US" owner="" /> <Telephone publish="0" type="PHN">555-3333</oa:Telephone> <!-- customer_.getTelephone1(), organization_.getPublishTelephone1(), organization_.getTelephoneType1() --> <Telephone publish="0" type="PHN">555-4444</oa:Telephone> <!-- customer_.getTelephone2(), organization_.getPublishTelephone2(), organization_.getTelephoneType2() --> <oa:BestCallTime/> <!-- organization_.getBestCallTime() --> </oa:Contact>
protected org.w3c.dom.Element createPersonElement()
The following sample shows the structure of the Person element and its construction:
<oa:Person> <oa:PersonCode/> <oa:PersonName> <oa:Salutation lang="en-US">Mr.</oa:Salutation> <!-- organization_.getSalutation() --> <oa:GivenName lang="en-US">Joe</oa:GivenName> <!-- organization_.getGivenName() --> <oa:PreferredGivenName lang="en-US"/> <oa:MiddleName lang="en-US">John</oa:MiddleName> <!-- organization_.getMiddleName() --> <oa:FamilyName lang="en-US">Doe</oa:FamilyName> <!-- organization_.getFamilyName() --> <oa:Suffix lang="en-US">M.D.</oa:Suffix> <!-- organization_.getSuffix() --> <oa:FormattedName lang="en-US"/> </oa:PersonName> </oa:Person>
protected org.w3c.dom.Element createSenderElement()
The following sample Sender element shows how the element is constructed:
<oa:Sender> <oa:LogicalId>TSCLIENT</oa:LogicalId> <oa:Component>Member</oa:Component> <oa:Task>CreateOrganization</oa:Task> <oa:ReferenceId>-1680589954192190044</oa:ReferenceId> <!-- value of getActionCtx --> <oa:Confirmation>2</oa:Confirmation> <oa:AuthorizationId>LOGON_TOKEN_ID_SCAFFOLDING</oa:AuthorizationId> <!-- value of ContextManager.getInstance().getSessionCtx() --> </oa:Sender>