com.ibm.commerce.tools.optools.user.commands

Class CSRCustomerInfoUpdateCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand, CSRCustomerInfoUpdateCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CSRCustomerInfoUpdateCmdImpl
    extends ToolsControllerCommandImpl
    implements CSRCustomerInfoUpdateCmd

    Updates customer registration information by calling UserRegistrationAdminUpdateCmd.

    URL calling syntax:

    • Https://host_name/path/CSRCustomerInfoUpdateCmd?XML=xml_string
    Parameters:
    XML
    An input xml_string that contains the all required data for updating the registration information for the customer.
    For example:
           <?xml version="1.0" encoding "UTF-8">
           <userUpdated>false</userUpdated>
           <userProfileUpdated>true</userProfileUpdated>
           <addressUpdated>true</addressUpdated>
           <demographicsUpdated>false</demographicsUpdated>
           <userRegUpdated>false</userRegUpdated>
           <certStatusUpdated>false</certStatusUpdated>
           <customerId>20000</customerId>
           <profileInfo>
               <addressId>7777</addressId>
               <lastName>Smith</lastName>
               <firstName>John</firstName>
               <middleName>M.</middleName>
               <title>1</title>
           </profileInfo>
           <addressInfo>
           <address1>8200 Warden Ave.</address1>
           <address2>Building A2</address2>
           <address3>Unit 999</address3>
           <city>Markham</city>
           <state>Ontario</state>     
           <country>Canada</country>
               <zip>L3N 3R6</zip>
           </addressInfo>
           </xml>
     

    Exceptions:

    • Based on Locale/Language, some fields for the customer registration are required. Once missing, this command will throw exception to indicate which field is missing.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        copyright notice
        See Also:
        Constant Field Values
    • Constructor Detail

      • CSRCustomerInfoUpdateCmdImpl

        public CSRCustomerInfoUpdateCmdImpl()
        Default constructor.
    • Method Detail

      • executeUserRegistrationAdminUpdate

        public void executeUserRegistrationAdminUpdate()
                                                throws java.lang.Exception
        Calls UserRegistrationAdminUpdateCmd to make all the user updates
        Throws:
        ECApplicationException - If the UserRegistrationAdminUpdateCmd command cannot be found.
        java.lang.Exception
      • getAddress1

        public java.lang.String getAddress1()
        Returns the first line of the customer's address.
        Returns:
        The first line of the customer's address.
      • getAddress2

        public java.lang.String getAddress2()
        Returns the second line of the customer's address.
        Returns:
        The second line of the customer's address.
      • getAddress3

        public java.lang.String getAddress3()
        Returns the third line of the customer's address.
        Returns:
        The third line of the customer's address.
      • getAddressId

        public java.lang.String getAddressId()
        Returns the address id of the customer's address.
        Returns:
        The address id of the customer's address.
      • getAge

        public java.lang.String getAge()
        Returns the age of the customer.
        Returns:
        The age of the customer.
      • getAnnualIncome

        public java.lang.String getAnnualIncome()
        Returns the annual income of the customer.
        Returns:
        The annual income of the customer.
      • getBestTimeToCall

        public java.lang.String getBestTimeToCall()
        Returns the best time to call the customer.
        Returns:
        The best time to call the customer.
      • getChallengeAnswer

        public java.lang.String getChallengeAnswer()
        Returns the answer to the customer's challenge question.
        Returns:
        The answer to the customer's challenge question.
      • getChallengeQuestion

        public java.lang.String getChallengeQuestion()
        Returns the customer's challenge question.
        Returns:
        The customer's challenge question.
      • getChildrenNum

        public java.lang.String getChildrenNum()
        Returns the number of children of the customer.
        Returns:
        The number of children of the customer.
      • getCity

        public java.lang.String getCity()
        Returns the customer's city.
        Returns:
        The customer's city.
      • getCountry

        public java.lang.String getCountry()
        Returns the customer's country or region.
        Returns:
        The customer's country or region.
      • getCustomerId

        public java.lang.String getCustomerId()
        Returns the customer's id.
        Returns:
        The customer's id.
      • getEmail1

        public java.lang.String getEmail1()
        Returns the customer's e-mail address 1.
        Returns:
        The customer's e-mail address 1.
      • getEmail2

        public java.lang.String getEmail2()
        Returns the customer's e-mail address 2.
        Returns:
        The customer's e-mail address 2.
      • getEmployer

        public java.lang.String getEmployer()
        Returns the name of the customer's employer.
        Returns:
        The name of the customer's employer.
      • getFax1

        public java.lang.String getFax1()
        Returns the customer's fax number 1.
        Returns:
        The customer's fax number 1.
      • getFax2

        public java.lang.String getFax2()
        Returns the customer's fax number 2.
        Returns:
        The customer's fax number 2.
      • getFirstName

        public java.lang.String getFirstName()
        Returns the customer's first name.
        Returns:
        The customer's first name.
      • getGender

        public java.lang.String getGender()
        Returns the customer's gender.
        Returns:
        The customer's gender.
      • getHobby

        public java.lang.String getHobby()
        Returns the customer's hobby.
        Returns:
        The customer's hobby.
      • getLastName

        public java.lang.String getLastName()
        Returns the customer's last name.
        Returns:
        The customer's last name.
      • getLogonId

        public java.lang.String getLogonId()
        Returns the customer's logon id.
        Returns:
        The customer's logon id.
      • getMaritalStatus

        public java.lang.String getMaritalStatus()
        Returns the customer's marital status.
        Returns:
        The customer's marital status.
      • getMiddleName

        public java.lang.String getMiddleName()
        Returns the customer's middle name.
        Returns:
        The customer's middle name.
      • getNLS

        public java.util.Hashtable getNLS()
        Return the properties containing all translatable messages for this command.
        Returns:
        The properties containing all translatable messages for this command.
      • getOrderedBefore

        public java.lang.String getOrderedBefore()
        Returns whether or not the customer has ordered before.
        Returns:
        Whether or not the customer has ordered before.
      • getPackageInsert

        public java.lang.String getPackageInsert()
        Returns whether or not to include promotional material with shipments
        Returns:
        Whether or not to include promotional material with shipments
      • getPeopleNumInHouse

        public java.lang.String getPeopleNumInHouse()
        Returns the number of household members
        Returns:
        The number of household members
      • getPhone1

        public java.lang.String getPhone1()
        Returns the customer's phone number 1.
        Returns:
        The customer's phone number 1.
      • getPhone1Listed

        public java.lang.String getPhone1Listed()
        Returns whether customer's phone number 1 is listed.
        Returns:
        Whether customer's phone number 1 is listed.
      • getPhone1Type

        public java.lang.String getPhone1Type()
        Returns what type of phone is customer phone number 1.
        Returns:
        What type of phone is customer phone number 1.
      • getPhone2

        public java.lang.String getPhone2()
        Returns the customer's phone number 2.
        Returns:
        The customer's phone number 2.
      • getPhone2Listed

        public java.lang.String getPhone2Listed()
        Returns whether customer's phone number 2 is listed.
        Returns:
        Whether customer's phone number 2 is listed.
      • getPhone2Type

        public java.lang.String getPhone2Type()
        Returns what type of phone is customer phone number 1.
        Returns:
        What type of phone is customer phone number 1.
      • getPreferredCommunication

        public java.lang.String getPreferredCommunication()
        Returns the customer's preferred method of communication.
        Returns:
        The customer's preferred method of communication.
      • getPreferredCurrency

        public java.lang.String getPreferredCurrency()
        Returns the customer's preferred currency.
        Returns:
        The customer's preferred currency.
      • getPreferredLanguage

        public java.lang.String getPreferredLanguage()
        Returns the customer's preferred language.
        Returns:
        The customer's preferred language.
      • getPreviouslyOrdered

        public java.lang.String getPreviouslyOrdered()
        Returns whether or not the customer has ordered before.
        Returns:
        Whether or not the customer has ordered before.
      • getState

        public java.lang.String getState()
        Returns the customer's state or province
        Returns:
        The customer's state or province
      • getTitle

        public java.lang.String getTitle()
        Returns the customer's title. For example, Mr. or Mrs.
        Returns:
        The customer's title. For example, Mr. or Mrs.
      • getUserAccountStatus

        public java.lang.String getUserAccountStatus()
        Returns whether the customer's account status (enabled or disabled).
        Returns:
        Whether the customer's account status (enabled or disabled).
      • getXMLFile

        public java.lang.String getXMLFile()
        Return the XML file.
        Returns:
        The entire XML file in a string.
      • getZip

        public java.lang.String getZip()
        Return the customer's zip/postal code.
        Returns:
        The customer's zip/postal code.
      • isAddressUpdated

        public boolean isAddressUpdated()
        Return a boolean denoting whether or not the customer's address information has been changed.
        Returns:
        true if the address information is updated.
      • isDemographicsUpdated

        public boolean isDemographicsUpdated()
        Return a boolean denoting whether or not the customer's demographics information has been changed.
        Returns:
        true if the demographics information is updated.
      • isUserProfileUpdated

        public boolean isUserProfileUpdated()
        Return a boolean denoting whether or not the customer's profile information (the preferred method of communication) has been changed.
        Returns:
        true if profile information is updated.
      • isUserRegUpdated

        public boolean isUserRegUpdated()
        Return a boolean denoting whether or not the customer's registration information has been changed.
        Returns:
        true if registration information is updated.
      • isUserUpdated

        public boolean isUserUpdated()
        Return a boolean denoting whether or not the customer's information has been changed.
        Returns:
        true if users information is updated.
      • setAddressUpdated

        public void setAddressUpdated(boolean newAddressUpdated)
        Sets whether or not the address information of the customer has been changed.
        Parameters:
        newAddressUpdated - boolean
      • setDemographicsUpdated

        public void setDemographicsUpdated(boolean newDemographicsUpdated)
        Sets whether or not the customer's demographics information has been changed.
        Parameters:
        newDemographicsUpdated - boolean
      • setNLS

        public void setNLS(java.util.Hashtable newNLS)
        Sets the NLS hashtable.
        Parameters:
        newNLS - java.util.Hashtable
      • setUserProfileUpdated

        public void setUserProfileUpdated(boolean newUserProfileUpdated)
        Sets whether or not the profile information (the preferred method of communication) of the customer has been changed.
        Parameters:
        newUserProfileUpdated - boolean
      • setUserRegUpdated

        public void setUserRegUpdated(boolean newUserRegUpdated)
        Sets whether or not the customer's registration information has been changed.
        Parameters:
        newUserRegUpdated - boolean
      • setUserUpdated

        public void setUserUpdated(boolean newUserUpdated)
        Sets whether or not the customer's information has been changed.
        Parameters:
        newUserUpdated - boolean