com.ibm.commerce.usermanagement.commands

Class AddressBaseCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of the command.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AddressBaseCmdImpl

        public AddressBaseCmdImpl()
        Creates the AddressBase command.
    • Method Detail

      • getAddress1

        public java.lang.String getAddress1()
        Returns the first line of the address.
        Specified by:
        getAddress1 in interface AddressBaseCmd
        Returns:
        The first line of the address.
      • getAddress2

        public java.lang.String getAddress2()
        Returns the second line of the address.
        Specified by:
        getAddress2 in interface AddressBaseCmd
        Returns:
        The second line of the address.
      • getAddress3

        public java.lang.String getAddress3()
        Returns the third line of the address.
        Specified by:
        getAddress3 in interface AddressBaseCmd
        Returns:
        The third line of the address.
      • getAddressId

        public java.lang.String getAddressId()
        Returns the address identifier.
        Specified by:
        getAddressId in interface AddressBaseCmd
        Returns:
        The address identifier.
      • getAddressType

        public java.lang.String getAddressType()
        Return the address type.
        Specified by:
        getAddressType in interface AddressBaseCmd
        Returns:
        The address type.
      • getAuthenticateMode

        public java.lang.String getAuthenticateMode()
        Returns the authentication mode.
        Specified by:
        getAuthenticateMode in interface AddressBaseCmd
        Returns:
        The authentication mode.
      • getBestCallingTime

        public java.lang.String getBestCallingTime()
        Returns the best time for calling.
        Specified by:
        getBestCallingTime in interface AddressBaseCmd
        Returns:
        The best time of the day to contact the individual.
      • getBillingCode

        public java.lang.String getBillingCode()
        Returns the billing code.
        Specified by:
        getBillingCode in interface AddressBaseCmd
        Returns:
        The billing code.
      • getBillingCodeType

        public java.lang.String getBillingCodeType()
        Returns the billing code type.
        Specified by:
        getBillingCodeType in interface AddressBaseCmd
        Returns:
        The billing code type.
      • getBusinessTitle

        public java.lang.String getBusinessTitle()
        Returns the business title.
        Specified by:
        getBusinessTitle in interface AddressBaseCmd
        Returns:
        The business title.
      • getCity

        public java.lang.String getCity()
        Returns the name of the city.
        Specified by:
        getCity in interface AddressBaseCmd
        Returns:
        The name of the city.
      • getCountry

        public java.lang.String getCountry()
        Returns the name of the country.
        Specified by:
        getCountry in interface AddressBaseCmd
        Returns:
        The name of the country.
      • getCreatedTimestamp

        public java.sql.Timestamp getCreatedTimestamp()
        Returns the timestamp of when the address was created.
        Specified by:
        getCreatedTimestamp in interface AddressBaseCmd
        Returns:
        When the address was created.
      • getEmail1

        public java.lang.String getEmail1()
        Return the primary email address.
        Specified by:
        getEmail1 in interface AddressBaseCmd
        Returns:
        The primary email address.
      • getEmail2

        public java.lang.String getEmail2()
        Return the secondary email address.
        Specified by:
        getEmail2 in interface AddressBaseCmd
        Returns:
        The secondary email address.
      • getFax1

        public java.lang.String getFax1()
        Return the primary fax number.
        Specified by:
        getFax1 in interface AddressBaseCmd
        Returns:
        The primary fax number.
      • getFax2

        public java.lang.String getFax2()
        Return the secondary fax number.
        Specified by:
        getFax2 in interface AddressBaseCmd
        Returns:
        The secondary fax number.
      • getMobilePhone1

        public java.lang.String getMobilePhone1()
        Return the primary mobile phone.
        Specified by:
        getMobilePhone1 in interface AddressBaseCmd
        Returns:
        The primary mobile phone.
      • getMobilePhone1Country

        public java.lang.String getMobilePhone1Country()
        Return the primary mobile phone country.
        Specified by:
        getMobilePhone1Country in interface AddressBaseCmd
        Returns:
        The primary mobile phone country.
      • getFirstName

        public java.lang.String getFirstName()
        Return the first name.
        Specified by:
        getFirstName in interface AddressBaseCmd
        Returns:
        The first name.
      • getLastName

        public java.lang.String getLastName()
        Return the last name.
        Specified by:
        getLastName in interface AddressBaseCmd
        Returns:
        The last name.
      • getMiddleName

        public java.lang.String getMiddleName()
        Return the middle name.
        Specified by:
        getMiddleName in interface AddressBaseCmd
        Returns:
        The middle name.
      • getNickName

        public java.lang.String getNickName()
        Return the nick name.
        Specified by:
        getNickName in interface AddressBaseCmd
        Returns:
        The nick name.
      • getOfficeAddress

        public java.lang.String getOfficeAddress()
        Return the office address.
        Specified by:
        getOfficeAddress in interface AddressBaseCmd
        Returns:
        The office address.
      • getOrganizationName

        public java.lang.String getOrganizationName()
        Return the name of the organization.
        Specified by:
        getOrganizationName in interface AddressBaseCmd
        Returns:
        The organization name.
      • getOrganizationUnitName

        public java.lang.String getOrganizationUnitName()
        Return the name of the organizational unit.
        Specified by:
        getOrganizationUnitName in interface AddressBaseCmd
        Returns:
        The organizational unit name.
      • getOutAddressName

        public java.lang.String getOutAddressName()
        Return the Out address name. If outAddressName=s is specified (where s is any string), then s= will be put as one of the the response properties after the command is executed, where is the ID of the address being added or updated.
        Specified by:
        getOutAddressName in interface AddressBaseCmd
        Returns:
        The out address name.
      • getPackageSuppression

        public java.lang.Integer getPackageSuppression()
        Return the package suppression.
        Specified by:
        getPackageSuppression in interface AddressBaseCmd
        Returns:
        The package suppression.
      • getPersonTitle

        public java.lang.String getPersonTitle()
        Return the person's title.
        Specified by:
        getPersonTitle in interface AddressBaseCmd
        Returns:
        The person's title.
      • getPhone1

        public java.lang.String getPhone1()
        Return the primary phone number.
        Specified by:
        getPhone1 in interface AddressBaseCmd
        Returns:
        The primary phone number.
      • getPhone1Type

        public java.lang.String getPhone1Type()
        Return the primary phone type.
        Specified by:
        getPhone1Type in interface AddressBaseCmd
        Returns:
        The primary phone type.
      • getPhone2

        public java.lang.String getPhone2()
        Return the secondary phone number.
        Specified by:
        getPhone2 in interface AddressBaseCmd
        Returns:
        The secondary phone number.
      • getPhone2Type

        public java.lang.String getPhone2Type()
        Return the secondary phone type.
        Specified by:
        getPhone2Type in interface AddressBaseCmd
        Returns:
        The secondary phone type.
      • getPrimary

        public java.lang.Integer getPrimary()
        Return the primary address identifier.
        Specified by:
        getPrimary in interface AddressBaseCmd
        Returns:
        The primary address identifier.
      • getPublishPhone1

        public java.lang.Integer getPublishPhone1()
        Returns whether the primary phone number should be published. (1 - phone1 can be published , 0 - phone1 can not be published)
        Specified by:
        getPublishPhone1 in interface AddressBaseCmd
        Returns:
        Whether to publish the primary phone number.
      • getPublishPhone2

        public java.lang.Integer getPublishPhone2()
        Returns whether the secondary phone number should be published. ( 1 - phone1 can be published , 0 - phone1 can not be published)
        Specified by:
        getPublishPhone2 in interface AddressBaseCmd
        Returns:
        Whether to publish the secondary phone number.
      • getState

        public java.lang.String getState()
        Returns the current state of the address entry.
        Specified by:
        getState in interface AddressBaseCmd
        Returns:
        The state of the address entry.
      • getStatus

        public java.lang.String getStatus()
        Returns the status of the address entry.
        Specified by:
        getStatus in interface AddressBaseCmd
        Returns:
        The status of the address entry.
      • getURL

        public java.lang.String getURL()
        Gets the URL to be called when the command successfully completes.
        Returns:
        The URL to be called when the command successfully completes
      • getZipCode

        public java.lang.String getZipCode()
        Returns the zip/postal code.
        Specified by:
        getZipCode in interface AddressBaseCmd
        Returns:
        The zip/postal code.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Indicates whether the command is ready to be executed.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        The result of calling super.isReadyToCallExecute().
      • performExecute

        public void performExecute()
                            throws ECException
        Creates or updates the address or creates the address by calling the SyncBean. After, the PostAddressUpdateCmd command or PostAddressAddCmd command is called.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if there was a problem creating or updating the address.
      • reset

        public void reset()
        Resets the current address command by setting all the values to null.
        Specified by:
        reset in interface AddressBaseCmd
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setAddress1

        public void setAddress1(java.lang.String astrAddress1)
        Sets the first line of the address.
        Specified by:
        setAddress1 in interface AddressBaseCmd
        Parameters:
        astrAddress1 - The first line of the address.
      • setAddress2

        public void setAddress2(java.lang.String astrAddress2)
        Sets the second line of the address.
        Specified by:
        setAddress2 in interface AddressBaseCmd
        Parameters:
        astrAddress2 - the second line of the address.
      • setAddress3

        public void setAddress3(java.lang.String astrAddress3)
        Sets the third line of the address.
        Specified by:
        setAddress3 in interface AddressBaseCmd
        Parameters:
        astrAddress3 - the third line of the address.
      • setAddressField1

        public void setAddressField1(java.lang.String astrAddressField1)
        Sets the first line of the address field.
        Specified by:
        setAddressField1 in interface AddressBaseCmd
        Parameters:
        astrAddressField1 - the first line of the address field.
      • setAddressField2

        public void setAddressField2(java.lang.String astrAddressField2)
        Sets the second line of the address field.
        Specified by:
        setAddressField2 in interface AddressBaseCmd
        Parameters:
        astrAddressField2 - the second line of the address field.
      • setAddressField3

        public void setAddressField3(java.lang.String astrAddressField3)
        Sets the third line of the address field.
        Specified by:
        setAddressField3 in interface AddressBaseCmd
        Parameters:
        astrAddressField3 - the third line of the address field.
      • setAddressId

        public void setAddressId(java.lang.Long anAddressId)
        Sets the address identifier.
        Specified by:
        setAddressId in interface AddressBaseCmd
        Parameters:
        anAddressId - the address identifier.
      • setAddressId

        public void setAddressId(java.lang.String astrAddressId)
        Sets the address identifier.
        Specified by:
        setAddressId in interface AddressBaseCmd
        Parameters:
        astrAddressId - the address identifier.
      • setAddressType

        public void setAddressType(java.lang.String astrAddressType)
        Sets the address type.
        Specified by:
        setAddressType in interface AddressBaseCmd
        Parameters:
        astrAddressType - the address type.
      • setAuthenticateMode

        public void setAuthenticateMode(java.lang.String astrAuthenticateMode)
        Sets the authentication mode.
        Specified by:
        setAuthenticateMode in interface AddressBaseCmd
        Parameters:
        astrAuthenticateMode - the authentication mode.
      • setBestCallingTime

        public void setBestCallingTime(java.lang.String astrBestCallingTime)
        Sets the best time to call.
        Specified by:
        setBestCallingTime in interface AddressBaseCmd
        Parameters:
        astrBestCallingTime - the best time to call.
      • setBillingCode

        public void setBillingCode(java.lang.String astrBillingCode)
        Sets the billing code.
        Specified by:
        setBillingCode in interface AddressBaseCmd
        Parameters:
        astrBillingCode - the billing code.
      • setBillingCodeType

        public void setBillingCodeType(java.lang.String astrBillingCodeType)
        Sets the billing code type to the instance variable istrBillingCodeType only, without setting it to the requestProperty
        Specified by:
        setBillingCodeType in interface AddressBaseCmd
        Parameters:
        astrBillingCodeType - the billing code type.
      • setBillingCodeTypeType

        public void setBillingCodeTypeType(java.lang.String astrBillingCodeType)
        Deprecated. in version 6.0. Use setBillingCodeType() instead.
        Sets the billing code type to the instance variable istrBillingCodeType and to the requestProperty, if astrBillingCodeType is not null.
        Parameters:
        astrBillingCodeType - the billing code type.
      • setBusinessTitle

        public void setBusinessTitle(java.lang.String astrBusinessTitle)
        Sets the business title.
        Specified by:
        setBusinessTitle in interface AddressBaseCmd
        Parameters:
        astrBusinessTitle - the business title.
      • setCity

        public void setCity(java.lang.String astrCity)
        Sets the name of the city.
        Specified by:
        setCity in interface AddressBaseCmd
        Parameters:
        astrCity - the name of the city.
      • setCountry

        public void setCountry(java.lang.String astrCountry)
        Sets the name of the country.
        Specified by:
        setCountry in interface AddressBaseCmd
        Parameters:
        astrCountry - the name of the country.
      • setCreatedTimestamp

        public void setCreatedTimestamp(java.sql.Timestamp atmCreatedTimestamp)
        Sets the timestamp of when the address entry was created.
        Specified by:
        setCreatedTimestamp in interface AddressBaseCmd
        Parameters:
        atmCreatedTimestamp - when the address entry was created.
      • setEmail1

        public void setEmail1(java.lang.String astrEmail1)
        Sets the primary email address.
        Specified by:
        setEmail1 in interface AddressBaseCmd
        Parameters:
        astrEmail1 - the primary email address.
      • setEmail2

        public void setEmail2(java.lang.String astrEmail2)
        Sets the secondary email address.
        Specified by:
        setEmail2 in interface AddressBaseCmd
        Parameters:
        astrEmail2 - the secondary email address.
      • setFax1

        public void setFax1(java.lang.String astrFax1)
        Sets the primary fax number.
        Specified by:
        setFax1 in interface AddressBaseCmd
        Parameters:
        astrFax1 - the primary fax number.
      • setFax2

        public void setFax2(java.lang.String astrFax2)
        Sets the secondary fax number.
        Specified by:
        setFax2 in interface AddressBaseCmd
        Parameters:
        astrFax2 - the secondary fax number.
      • setMobilePhone1

        public void setMobilePhone1(java.lang.String astrMobilePhone1)
        Sets the primary mobile phone.
        Specified by:
        setMobilePhone1 in interface AddressBaseCmd
        Parameters:
        astrMobilePhone1 - the primary mobile phone.
      • setMobilePhone1Country

        public void setMobilePhone1Country(java.lang.String astrMobilePhone1Country)
        Sets the primary mobile phone.
        Specified by:
        setMobilePhone1Country in interface AddressBaseCmd
        Parameters:
        astrMobilePhone1Country - the primary mobile phone country.
      • setFirstName

        public void setFirstName(java.lang.String astrFirstName)
        Sets the first name.
        Specified by:
        setFirstName in interface AddressBaseCmd
        Parameters:
        astrFirstName - the first name.
      • setLastName

        public void setLastName(java.lang.String astrLastName)
        Sets the last name.
        Specified by:
        setLastName in interface AddressBaseCmd
        Parameters:
        astrLastName - the last name.
      • setMemberId

        public void setMemberId(java.lang.Long anMemberId)
        Sets the member identifier.
        Parameters:
        anMemberId - the member identifier.
      • setMemberId

        public void setMemberId(java.lang.String astrMemberId)
        Sets the member identifier.
        Parameters:
        astrMemberId - the member identifier.
      • setMiddleName

        public void setMiddleName(java.lang.String astrMiddleName)
        Sets the middle name.
        Specified by:
        setMiddleName in interface AddressBaseCmd
        Parameters:
        astrMiddleName - the middle name.
      • setNickName

        public void setNickName(java.lang.String astrNickName)
        Sets the nick name.
        Specified by:
        setNickName in interface AddressBaseCmd
        Parameters:
        astrNickName - the nick name.
      • setOfficeAddress

        public void setOfficeAddress(java.lang.String astrOfficeAddress)
        Sets the office address.
        Specified by:
        setOfficeAddress in interface AddressBaseCmd
        Parameters:
        astrOfficeAddress - the office address.
      • setOrganizationName

        public void setOrganizationName(java.lang.String astrOrganizationName)
        Sets the name of the organization.
        Specified by:
        setOrganizationName in interface AddressBaseCmd
        Parameters:
        astrOrganizationName - the organization name.
      • setOrganizationUnitName

        public void setOrganizationUnitName(java.lang.String astrOrganizationUnitName)
        Sets the name of the organizational unit.
        Specified by:
        setOrganizationUnitName in interface AddressBaseCmd
        Parameters:
        astrOrganizationUnitName - the organizational unit name.
      • setOutAddressName

        public void setOutAddressName(java.lang.String astrOutAddressName)
        Sets the out address name. If outAddressName=s is specified (where s is any string), then s= will be put as one of the the response properties after the command is executed, where is the ID of the address being added or updated.
        Specified by:
        setOutAddressName in interface AddressBaseCmd
        Parameters:
        astrOutAddressName - the out address name.
      • setPackageSuppression

        public void setPackageSuppression(java.lang.Integer anPackageSuppression)
        Sets the package suppression.
        Specified by:
        setPackageSuppression in interface AddressBaseCmd
        Parameters:
        anPackageSuppression - the package suppression.
      • setPackageSuppression

        public void setPackageSuppression(java.lang.String astrPackageSuppression)
        Sets the package suppression.
        Specified by:
        setPackageSuppression in interface AddressBaseCmd
        Parameters:
        astrPackageSuppression - the package suppression.
      • setPersonTitle

        public void setPersonTitle(java.lang.String astrPersonTitle)
        Sets the title of the person.
        Specified by:
        setPersonTitle in interface AddressBaseCmd
        Parameters:
        astrPersonTitle - the title of the person.
      • setPhone1

        public void setPhone1(java.lang.String astrPhone1)
        Sets the primary phone number.
        Specified by:
        setPhone1 in interface AddressBaseCmd
        Parameters:
        astrPhone1 - the primary phone number.
      • setPhone1Type

        public void setPhone1Type(java.lang.String astrPhone1Type)
        Sets the primary phone type.
        Specified by:
        setPhone1Type in interface AddressBaseCmd
        Parameters:
        astrPhone1Type - the phone type.
      • setPhone2

        public void setPhone2(java.lang.String astrPhone2)
        Sets the secondary phone number.
        Specified by:
        setPhone2 in interface AddressBaseCmd
        Parameters:
        astrPhone2 - the secondary phone number.
      • setPhone2Type

        public void setPhone2Type(java.lang.String astrPhone2Type)
        Sets the secondary phone type.
        Specified by:
        setPhone2Type in interface AddressBaseCmd
        Parameters:
        astrPhone2Type - the phone type.
      • setPrimary

        public void setPrimary(java.lang.Integer anPrimary)
        Sets whether this is a primary address. For example, if a member has multiple shipping addresses, and multiple billing addresses, one of them can be marked as the primary shipping address and another one can be marked as the primary billing address.
        Specified by:
        setPrimary in interface AddressBaseCmd
        Parameters:
        anPrimary - whether this address is a primary address. 1 specifies a primary address and 0 specifies an address that is not primary.
      • setPrimary

        public void setPrimary(java.lang.String astrPrimary)
        Sets whether this is a primary address. For example, if a member has multiple shipping addresses, and multiple billing addresses, one of them can be marked as the primary shipping address and another one can be marked as the primary billing address.
        Specified by:
        setPrimary in interface AddressBaseCmd
        Parameters:
        astrPrimary - whether this address is a primary address. 1 specifies a primary address and 0 specifies an address that is not primary.
      • setPublishPhone1

        public void setPublishPhone1(java.lang.Integer anPublishPhone1)
        Sets whether the primary phone number should be published. ( 1 - phone1 can be published , 0 - phone1 can not be published)
        Specified by:
        setPublishPhone1 in interface AddressBaseCmd
        Parameters:
        anPublishPhone1 - where to publish the phone number.
      • setPublishPhone1

        public void setPublishPhone1(java.lang.String astrPublishPhone1)
        Sets whether the primary phone number should be published. ( 1 - phone1 can be published , 0 - phone1 can not be published)
        Specified by:
        setPublishPhone1 in interface AddressBaseCmd
        Parameters:
        astrPublishPhone1 - where to publish the phone number.
      • setPublishPhone2

        public void setPublishPhone2(java.lang.Integer anPublishPhone2)
        Sets whether the secondary phone number should be published. ( 1 - phone1 can be published , 0 - phone1 can not be published)
        Specified by:
        setPublishPhone2 in interface AddressBaseCmd
        Parameters:
        anPublishPhone2 - Whether to publish the phone 2 number.
      • setPublishPhone2

        public void setPublishPhone2(java.lang.String astrPublishPhone2)
        Sets whether the secondary phone number should be published. ( 1 - phone1 can be published , 0 - phone1 can not be published)
        Specified by:
        setPublishPhone2 in interface AddressBaseCmd
        Parameters:
        astrPublishPhone2 - Whether to publish the phone 2 number.
      • setSelfAddress

        public void setSelfAddress(java.lang.String astrSelfAddress)
        Sets the self address.
        Specified by:
        setSelfAddress in interface AddressBaseCmd
        Parameters:
        astrSelfAddress - the self address.
      • setShippingGeoCode

        public void setShippingGeoCode(java.lang.String astrShippingGeoCode)
        Sets the shipping geography code.
        Specified by:
        setShippingGeoCode in interface AddressBaseCmd
        Parameters:
        astrShippingGeoCode - the shipping geography code.
      • setState

        public void setState(java.lang.String astrState)
        Sets the state of the address entry.
        Specified by:
        setState in interface AddressBaseCmd
        Parameters:
        astrState - the state of the address.
      • setStatus

        public void setStatus(java.lang.String astrStatus)
        Sets the status of the address entry.
        Specified by:
        setStatus in interface AddressBaseCmd
        Parameters:
        astrStatus - the status of the address.
      • setTaxGeoCode

        public void setTaxGeoCode(java.lang.String astrTaxGeoCode)
        Sets the taxation geography code.
        Specified by:
        setTaxGeoCode in interface AddressBaseCmd
        Parameters:
        astrTaxGeoCode - the taxation geography code.
      • setURL

        public void setURL(java.lang.String astrURL)
        Sets the URL to return to after the command finishes executing.
        Specified by:
        setURL in interface AddressBaseCmd
        Parameters:
        astrURL - The URL to return to after successful completion of the command.
      • setZipCode

        public void setZipCode(java.lang.String astrZipCode)
        Sets the zip/postal code.
        Specified by:
        setZipCode in interface AddressBaseCmd
        Parameters:
        astrZipCode - the zip/postal code.