public class CSRCustomerInfoCreateCmdImpl extends ToolsControllerCommandImpl implements CSRCustomerInfoUpdateCmd
Creates customer registration information by calling UserRegistrationAdminAddCmd.
URL calling syntax:
<?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:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
copyright notice
|
defaultCommandClassName
NAME
Constructor and Description |
---|
CSRCustomerInfoCreateCmdImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
TypedProperty |
executeUserRegistrationAdminAdd()
Calls UserRegistrationAdminAddCmd to create all the users information.
|
java.lang.String |
getAddress1()
Returns the first line of the customer's address.
|
java.lang.String |
getAddress2()
Returns the second line of the customer's address.
|
java.lang.String |
getAddress3()
Returns the third line of the customer's address.
|
java.lang.String |
getAddressId()
Returns the address id of the customer's address.
|
java.lang.String |
getAge()
Returns the age of the customer.
|
java.lang.String |
getAnnualIncome()
Returns the annual income of the customer.
|
java.lang.String |
getBestTimeToCall()
Returns the best time to call the customer.
|
java.lang.String |
getChallengeAnswer()
Returns the answer to the customer's challenge question.
|
java.lang.String |
getChallengeQuestion()
Returns the customer's challenge question.
|
java.lang.String |
getChildrenNum()
Returns the number of children of the customer.
|
java.lang.String |
getCity()
Returns the customer's city.
|
java.lang.String |
getCountry()
Returns the customer's country or region.
|
java.lang.String |
getCustomerId()
Returns the customer's id.
|
java.lang.String |
getDateOfBirth()
Returns the customer's date of birth.
|
java.lang.String |
getEmail1()
Returns the customer's e-mail address 1.
|
java.lang.String |
getEmail2()
Returns the customer's e-mail address 2.
|
java.lang.String |
getEmployer()
Returns the name of the customer's employer.
|
java.lang.String |
getFax1()
Returns the customer's fax number 1.
|
java.lang.String |
getFax2()
Returns the customer's fax number 2.
|
java.lang.String |
getFirstName()
Returns the customer's first name.
|
java.lang.String |
getGender()
Returns the customer's gender.
|
java.lang.String |
getHobby()
Returns the customer's hobby.
|
java.lang.String |
getLastName()
Returns the customer's last name.
|
java.lang.String |
getLogonId()
Returns the customer's logon id.
|
java.lang.String |
getLogonPassword()
Returns user logon password.
|
java.lang.String |
getLogonPasswordConfirmation()
Returns user logon password confirmation.
|
java.lang.String |
getMaritalStatus()
Returns the customer's marital status.
|
java.lang.String |
getMiddleName()
Returns the customer's middle name.
|
java.lang.String |
getMobilePhone1()
Returns the customer's mobile phone 1.
|
java.lang.String |
getMobilePhone1Country()
Returns the customer's mobile phone 1 country.
|
java.util.Hashtable |
getNLS()
Returns the properties containing all translatable messages for this command.
|
java.lang.String |
getOrderedBefore()
Returns whether or not the customer has ordered before.
|
java.lang.String |
getPackageInsert()
Returns whether or not to include promotional material with shipments
|
java.lang.String |
getPeopleNumInHouse()
Returns the number of household members.
|
java.lang.String |
getPhone1()
Returns the customer's primary phone number.
|
java.lang.String |
getPhone1Listed()
Returns whether customer's primary phone number is listed.
|
java.lang.String |
getPhone1Type()
Returns what type of phone is customer's primary phone number.
|
java.lang.String |
getPhone2()
Returns the customer's alternative phone number.
|
java.lang.String |
getPhone2Listed()
Returns whether customer's alternative phone number is listed.
|
java.lang.String |
getPhone2Type()
Returns what type of phone is customer's alternative phone number.
|
java.lang.String |
getPreferredCommunication()
Returns the customer's preferred method of communication.
|
java.lang.String |
getPreferredCurrency()
Returns the customer's preferred currency.
|
java.lang.String |
getPreferredLanguage()
Returns the customer's preferred language.
|
java.lang.String |
getPreviouslyOrdered()
Returns whether or not the customer has ordered before.
|
java.lang.String |
getState()
Returns the customer's state or province
|
java.lang.String |
getTitle()
Returns the customer's title.
|
java.lang.String |
getUserAccountStatus()
Returns whether the customer's account status (enabled or disabled).
|
java.lang.String |
getXMLFile()
Returns the XML file.
|
java.lang.String |
getZip()
Return the customer's zip/postal code.
|
void |
performExecute()
Performs the execution for creating a customer's information.
|
void |
setNLS(java.util.Hashtable newNLS)
Sets the NLS hashtable.
|
void |
validateParameters()
Gets XMLObject from the GUI Notebook and gets ready to parse it.
|
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public CSRCustomerInfoCreateCmdImpl()
public TypedProperty executeUserRegistrationAdminAdd() throws java.lang.Exception
ECApplicationException
- If the UserRegistrationAdminAddCmd command cannot be found.java.lang.Exception
public java.lang.String getAddress1()
public java.lang.String getAddress2()
public java.lang.String getAddress3()
public java.lang.String getAddressId()
public java.lang.String getAge()
public java.lang.String getAnnualIncome()
public java.lang.String getBestTimeToCall()
public java.lang.String getChallengeAnswer()
public java.lang.String getChallengeQuestion()
public java.lang.String getChildrenNum()
public java.lang.String getCity()
public java.lang.String getCountry()
public java.lang.String getCustomerId()
public java.lang.String getEmail1()
public java.lang.String getEmail2()
public java.lang.String getEmployer()
public java.lang.String getFax1()
public java.lang.String getFax2()
public java.lang.String getMobilePhone1()
public java.lang.String getMobilePhone1Country()
public java.lang.String getFirstName()
public java.lang.String getGender()
public java.lang.String getHobby()
public java.lang.String getDateOfBirth()
public java.lang.String getLastName()
public java.lang.String getLogonId()
public java.lang.String getMaritalStatus()
public java.lang.String getMiddleName()
public java.util.Hashtable getNLS()
public java.lang.String getOrderedBefore()
public java.lang.String getPackageInsert()
public java.lang.String getLogonPassword()
public java.lang.String getLogonPasswordConfirmation()
public java.lang.String getPeopleNumInHouse()
public java.lang.String getPhone1()
public java.lang.String getPhone1Listed()
public java.lang.String getPhone1Type()
public java.lang.String getPhone2()
public java.lang.String getPhone2Listed()
public java.lang.String getPhone2Type()
public java.lang.String getPreferredCommunication()
public java.lang.String getPreferredCurrency()
public java.lang.String getPreferredLanguage()
public java.lang.String getPreviouslyOrdered()
public java.lang.String getState()
public java.lang.String getTitle()
public java.lang.String getUserAccountStatus()
public java.lang.String getXMLFile()
public java.lang.String getZip()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If user can't be created.public void setNLS(java.util.Hashtable newNLS)
newNLS
- NLS enabled translated messages.public void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If the XML does not contain the required parameters