com.ibm.commerce.usermanagement.commands

Interface UserRegistrationAddCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, UserRegistrationCmd
    All Known Implementing Classes:
    UserRegistrationAddCmdImpl, UserRegistrationAddPreApprovalCmdImpl, UserRegistrationAddUBFCmdImpl, UserRegistrationAddWithApprovalCheckCmdImpl


    public interface UserRegistrationAddCmd
    extends UserRegistrationCmd
    The UserRegistrationAdd command creates a registration record for the user.

    When user registration approvals are being used, UserRegisrationAddPreApprovalCmd should be used instead. Use this command with SSL (Secure Sockets Layer) to ensure that the customer's logon password and personal information are encrypted. To do so type the command with the HTTPS secure protocol.

    The parameter URL, logonId, logonPassword and logonPasswordVerify are mandatory. The rest of the parameters are all optional.
    If the Authentication Mode is LDAP, the parameter lastName is also mandatory.
    Behavior

    • Update USERS table and change the Registration Type from G (guest) to R (registered)
    • Create a record in USERREG, USERPROF, USERDEMO and ADDRESS table.
      If this user is a business user (profileType = 'B'), a record will also be created in BUSPROF table.
      If this user does not have an address book, a record will also be created in ADDRBOOK table.
    • Created an address called register address, whose nickname is the same as the logonId specified. The selfAddress field of this address will be set to '1'.
    • If the profileType parameter is not specified, set 'C' (Customer) by default.
    • If passwordExpired parameter is not specified, by default it is set to 0 (not expired).
    • If status parameter is not specified, by default it is set to 1 (enabled).
    • If the preferredLanguage is not set, get it from the command context.
    • Check the required registration information parameters.
    • Calls the AuditUserRegistrationCmd task to check the additional parameters. Customers need to add new code to AuditAddressCmd task command if they want to customizable check.
    • If preferredCurrency parameter is not null, call SetCurrencyPrefCmd tasks.
    • If the Authentication Mode is LDAP, then call the DBToDirectoryCmd To create a user on the LDAP server. Log the shopper on by creating a digitally signed cookie which is sent back to the browser for identifying the user's session. The shopper is now in an authenticated session. The cookie contains the following information:
      • The SESSION_ID
      • A flag that indicates whether or not the shopper is registered m
      • The date and time (timestamp) that the shopper registered m
      • A digital signature
    • If the logon fails, call UserRegistrationErrorView.
    • On successful completion, call the specified redirection URL.
    Exception Conditions
    • The parameter URL cannot be null and it must have a length greater than 0.
    • The parameter logonId can not be null and it must have a length greater than 0.
    • The parameter logonId cannot already exist in WCS database. If the Authentication Mode is LDAP, the logonId should not also exist on LDAP.
    • The parameter logonPassword cannot be null and it must have a length greater than 0 and less than or equal to 70.
    • The parameter logonPassword is equal to logonPasswordVerify.
    • The parameter profileType must be null or it must be equal to 'B' or 'C'.
    • The parameters userStatus and the passwordExpired must be null or it must be equal to 0 or 1.
    • The parameter preferredCurrency must be null or it must be a foreign key set to the SETCCURR table.
    • The parameter preferredLanguage must be null or it must be a foreign key set to the LANGUAGE table.
    • The parameters age, income, children, household, demographicField6, publishPhone1, publishPhone2, and packageSupression must be null or they must be an integer.
    • If the profileType parameter is 'B' then the following conditions must be true.
      If the organizationId parameter is not null, then it must be a foreign key set to rows whose type is O in the ORGENTITY table.
      If the organizationUnitId parameter is not null, then the organizationUnitId must be a foreign key reference to rows whose type is OU in the ORGENTITY table.
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String REQUEST_PARAM_URL
        REQUIRED request parameter: URL
        See Also:
        Constant Field Values
      • REQUEST_PARAM_LOGONID

        static final java.lang.String REQUEST_PARAM_LOGONID
        REQUIRED request parameter: logonId
        See Also:
        Constant Field Values
      • REQUEST_PARAM_LOGONPASSWORD

        static final java.lang.String REQUEST_PARAM_LOGONPASSWORD
        REQUIRED request parameter: logonPassword
        See Also:
        Constant Field Values
      • REQUEST_PARAM_LOGONPASSWORDVERIFY

        static final java.lang.String REQUEST_PARAM_LOGONPASSWORDVERIFY
        REQUIRED request parameter: logonPasswordVerify
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PARENTMEMBER

        static final java.lang.String REQUEST_PARAM_PARENTMEMBER
        Request parameter: parentMember
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PROFILETYPE

        static final java.lang.String REQUEST_PARAM_PROFILETYPE
        Request parameter: profileType
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DISPLAYNAME

        static final java.lang.String REQUEST_PARAM_DISPLAYNAME
        Request parameter: displayName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PREFERREDCURRENCY

        static final java.lang.String REQUEST_PARAM_PREFERREDCURRENCY
        Request parameter: preferredCurrency
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PREFERREDLANGUAGE

        static final java.lang.String REQUEST_PARAM_PREFERREDLANGUAGE
        Request parameter: preferredLanguage
        See Also:
        Constant Field Values
      • REQUEST_PARAM_USERFIELD1

        static final java.lang.String REQUEST_PARAM_USERFIELD1
        Request parameter: userField1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_USERFIELD2

        static final java.lang.String REQUEST_PARAM_USERFIELD2
        Request parameter: userField2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_USERFIELD3

        static final java.lang.String REQUEST_PARAM_USERFIELD3
        Request parameter: userField3
        See Also:
        Constant Field Values
      • REQUEST_PARAM_CHALLENGEQUESTION

        static final java.lang.String REQUEST_PARAM_CHALLENGEQUESTION
        Request parameter: challengeQuestion
        See Also:
        Constant Field Values
      • REQUEST_PARAM_CHALLENGEANSWER

        static final java.lang.String REQUEST_PARAM_CHALLENGEANSWER
        Request parameter: challengeAnswer
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DESCRIPTION

        static final java.lang.String REQUEST_PARAM_DESCRIPTION
        Request parameter: description
        See Also:
        Constant Field Values
      • REQUEST_PARAM_USERPROFILEFIELD1

        static final java.lang.String REQUEST_PARAM_USERPROFILEFIELD1
        Request parameter: userProfileField1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_USERPROFILEFIELD2

        static final java.lang.String REQUEST_PARAM_USERPROFILEFIELD2
        Request parameter: userProfileField2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PHOTO

        static final java.lang.String REQUEST_PARAM_PHOTO
        Request parameter: photo
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PREFERREDCOMMUNICATION

        static final java.lang.String REQUEST_PARAM_PREFERREDCOMMUNICATION
        Request parameter: preferredCommunication
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PREFERREDDELIVERY

        static final java.lang.String REQUEST_PARAM_PREFERREDDELIVERY
        Request parameter: preferredDelivery
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PREFERREDMEASURE

        static final java.lang.String REQUEST_PARAM_PREFERREDMEASURE
        Request parameter: preferredMeasure
        See Also:
        Constant Field Values
      • REQUEST_PARAM_RECEIVESMSNOTIFICATION

        static final java.lang.String REQUEST_PARAM_RECEIVESMSNOTIFICATION
        Request parameter: receiveSMSNotification
        See Also:
        Constant Field Values
      • REQUEST_PARAM_TAXPAYERID

        static final java.lang.String REQUEST_PARAM_TAXPAYERID
        Request parameter: taxPayerId
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ALTERNATEID

        static final java.lang.String REQUEST_PARAM_ALTERNATEID
        Request parameter: alternateId
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEPARTMENTNUMBER

        static final java.lang.String REQUEST_PARAM_DEPARTMENTNUMBER
        Request parameter: departmentNumber
        See Also:
        Constant Field Values
      • REQUEST_PARAM_EMPLOYEEID

        static final java.lang.String REQUEST_PARAM_EMPLOYEEID
        Request parameter: employeeId
        See Also:
        Constant Field Values
      • REQUEST_PARAM_EMPLOYEETYPE

        static final java.lang.String REQUEST_PARAM_EMPLOYEETYPE
        Request parameter: employeeType
        See Also:
        Constant Field Values
      • REQUEST_PARAM_MANAGER

        static final java.lang.String REQUEST_PARAM_MANAGER
        Request parameter: manager
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ORGANIZATIONID

        static final java.lang.String REQUEST_PARAM_ORGANIZATIONID
        Deprecated. 
        Request parameter: organizationId
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ORGANIZATIONUNITID

        static final java.lang.String REQUEST_PARAM_ORGANIZATIONUNITID
        Deprecated. 
        Request parameter: organizationUnitId
        See Also:
        Constant Field Values
      • REQUEST_PARAM_SECRETARY

        static final java.lang.String REQUEST_PARAM_SECRETARY
        Request parameter: secretary
        See Also:
        Constant Field Values
      • REQUEST_PARAM_AGE

        static final java.lang.String REQUEST_PARAM_AGE
        Request parameter: age
        See Also:
        Constant Field Values
      • REQUEST_PARAM_NUMBEROFCHILDREN

        static final java.lang.String REQUEST_PARAM_NUMBEROFCHILDREN
        Request parameter: children
        See Also:
        Constant Field Values
      • REQUEST_PARAM_COMPANYNAME

        static final java.lang.String REQUEST_PARAM_COMPANYNAME
        Request parameter: companyName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD1

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD1
        Request parameter: demographicField1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD2

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD2
        Request parameter: demographicField2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD3

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD3
        Request parameter: demographicField3
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD4

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD4
        Request parameter: demographicField4
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD5

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD5
        Request parameter: demographicField5
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD6

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD6
        Request parameter: demographicField6
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DEMOGRAPHICFIELD7

        static final java.lang.String REQUEST_PARAM_DEMOGRAPHICFIELD7
        Request parameter: demographicField7
        See Also:
        Constant Field Values
      • REQUEST_PARAM_GENDER

        static final java.lang.String REQUEST_PARAM_GENDER
        Request parameter: gender
        See Also:
        Constant Field Values
      • REQUEST_PARAM_HOBBIES

        static final java.lang.String REQUEST_PARAM_HOBBIES
        Request parameter: hobbies
        See Also:
        Constant Field Values
      • REQUEST_PARAM_DATEOFBIRTH

        static final java.lang.String REQUEST_PARAM_DATEOFBIRTH
        Request parameter: dateOfBirth
        See Also:
        Constant Field Values
      • REQUEST_PARAM_HOUSEHOLD

        static final java.lang.String REQUEST_PARAM_HOUSEHOLD
        Request parameter: household
        See Also:
        Constant Field Values
      • REQUEST_PARAM_INCOME

        static final java.lang.String REQUEST_PARAM_INCOME
        Request parameter: income
        See Also:
        Constant Field Values
      • REQUEST_PARAM_INCOMECURRENCY

        static final java.lang.String REQUEST_PARAM_INCOMECURRENCY
        Request parameter: incomeCurrency
        See Also:
        Constant Field Values
      • REQUEST_PARAM_MARITALSTATUS

        static final java.lang.String REQUEST_PARAM_MARITALSTATUS
        Request parameter: maritalStatus
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ORDERBEFORE

        static final java.lang.String REQUEST_PARAM_ORDERBEFORE
        Request parameter: orderBefore
        See Also:
        Constant Field Values
      • REQUEST_PARAM_TIMEZONE

        static final java.lang.String REQUEST_PARAM_TIMEZONE
        Request parameter: timeZone
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESS1

        static final java.lang.String REQUEST_PARAM_ADDRESS1
        Request parameter: address1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESS2

        static final java.lang.String REQUEST_PARAM_ADDRESS2
        Request parameter: address2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESS3

        static final java.lang.String REQUEST_PARAM_ADDRESS3
        Request parameter: address3
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESSFIELD1

        static final java.lang.String REQUEST_PARAM_ADDRESSFIELD1
        Request parameter: addressField1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESSFIELD2

        static final java.lang.String REQUEST_PARAM_ADDRESSFIELD2
        Request parameter: addressField2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESSFIELD3

        static final java.lang.String REQUEST_PARAM_ADDRESSFIELD3
        Request parameter: addressField3
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ADDRESSTYPE

        static final java.lang.String REQUEST_PARAM_ADDRESSTYPE
        Request parameter: addressType
        See Also:
        Constant Field Values
      • REQUEST_PARAM_BESTCALLINGTIME

        static final java.lang.String REQUEST_PARAM_BESTCALLINGTIME
        Request parameter: bestCallingTime
        See Also:
        Constant Field Values
      • REQUEST_PARAM_BILLINGCODE

        static final java.lang.String REQUEST_PARAM_BILLINGCODE
        Request parameter: billingCode
        See Also:
        Constant Field Values
      • REQUEST_PARAM_BILLINGCODETYPE

        static final java.lang.String REQUEST_PARAM_BILLINGCODETYPE
        Request parameter: billingCodeType
        See Also:
        Constant Field Values
      • REQUEST_PARAM_CITY

        static final java.lang.String REQUEST_PARAM_CITY
        Request parameter: city
        See Also:
        Constant Field Values
      • REQUEST_PARAM_COUNTRY

        static final java.lang.String REQUEST_PARAM_COUNTRY
        Request parameter: country
        See Also:
        Constant Field Values
      • REQUEST_PARAM_EMAIL1

        static final java.lang.String REQUEST_PARAM_EMAIL1
        Request parameter: email1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_EMAIL2

        static final java.lang.String REQUEST_PARAM_EMAIL2
        Request parameter: email2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_FAX1

        static final java.lang.String REQUEST_PARAM_FAX1
        Request parameter: fax1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_FAX2

        static final java.lang.String REQUEST_PARAM_FAX2
        Request parameter: fax2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_MOBILEPHONE1

        static final java.lang.String REQUEST_PARAM_MOBILEPHONE1
        Request parameter: mobilePhone1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_MOBILEPHONE1COUNTRY

        static final java.lang.String REQUEST_PARAM_MOBILEPHONE1COUNTRY
        Request parameter: mobilePhone1Country
        See Also:
        Constant Field Values
      • REQUEST_PARAM_FIRSTNAME

        static final java.lang.String REQUEST_PARAM_FIRSTNAME
        Request parameter: firstName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_LASTNAME

        static final java.lang.String REQUEST_PARAM_LASTNAME
        Request parameter: lastName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_MIDDLENAME

        static final java.lang.String REQUEST_PARAM_MIDDLENAME
        Request parameter: middleName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_OFFICEADDRESS

        static final java.lang.String REQUEST_PARAM_OFFICEADDRESS
        Request parameter: officeAddress
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ORGANIZATIONNAME

        static final java.lang.String REQUEST_PARAM_ORGANIZATIONNAME
        Deprecated. 
        Request parameter: organizationName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ORGANIZATIONUNITNAME

        static final java.lang.String REQUEST_PARAM_ORGANIZATIONUNITNAME
        Deprecated. 
        Request parameter: organizationUnitName
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PACKAGESUPPRESSION

        static final java.lang.String REQUEST_PARAM_PACKAGESUPPRESSION
        Request parameter: packageSuppression
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PERSONTITLE

        static final java.lang.String REQUEST_PARAM_PERSONTITLE
        Request parameter: personTitle
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PHONE1

        static final java.lang.String REQUEST_PARAM_PHONE1
        Request parameter: phone1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PHONE1TYPE

        static final java.lang.String REQUEST_PARAM_PHONE1TYPE
        Request parameter: phone1Type
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PHONE2

        static final java.lang.String REQUEST_PARAM_PHONE2
        Request parameter: phone2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PHONE2TYPE

        static final java.lang.String REQUEST_PARAM_PHONE2TYPE
        Request parameter: phone2Type
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PUBLISHPHONE1

        static final java.lang.String REQUEST_PARAM_PUBLISHPHONE1
        Request parameter: publishPhone1
        See Also:
        Constant Field Values
      • REQUEST_PARAM_PUBLISHPHONE2

        static final java.lang.String REQUEST_PARAM_PUBLISHPHONE2
        Request parameter: publishPhone2
        See Also:
        Constant Field Values
      • REQUEST_PARAM_SHIPPINGGEOCODE

        static final java.lang.String REQUEST_PARAM_SHIPPINGGEOCODE
        Request parameter: shippingGeoCode
        See Also:
        Constant Field Values
      • REQUEST_PARAM_STATE

        static final java.lang.String REQUEST_PARAM_STATE
        Request parameter: state
        See Also:
        Constant Field Values
      • REQUEST_PARAM_TAXGEOCODE

        static final java.lang.String REQUEST_PARAM_TAXGEOCODE
        Request parameter: taxGeoCode
        See Also:
        Constant Field Values
      • REQUEST_PARAM_ZIPCODE

        static final java.lang.String REQUEST_PARAM_ZIPCODE
        Request parameter: zipCode
        See Also:
        Constant Field Values
      • RESPONSE_PARAM_USERID

        static final java.lang.String RESPONSE_PARAM_USERID
        Response parameter: userId
        See Also:
        Constant Field Values