Class UserRegistrationAddWithApprovalCheckCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.usermanagement.commands.UserRegistrationCmdImpl
-
- com.ibm.commerce.usermanagement.commands.UserRegistrationAddCmdImpl
-
- com.ibm.commerce.member.facade.server.commands.UserRegistrationAddWithApprovalCheckCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, UserRegistrationAddCmd, UserRegistrationCmd, 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 UserRegistrationAddWithApprovalCheckCmdImpl extends UserRegistrationAddCmdImpl
The UserRegistrationAddWithApprovalCheckCmdImpl command creates a registration record for the user.Use this command with SSL (Secure Sockets Layer) to ensure that the customer's logon password and personal information are encrypted. To do this, type the command with the HTTPS secure protocol.
The following parameters are mandatory: URL, logonId, logonPassword and logonPasswordVerify. The remaining the parameters are all optional.
If the Authentication Mode is LDAP, the parameter lastName is also mandatory.
The class calls thecom.ibm.commerce.member.facade.server.commands.UserRegistrationAddCheckApprovalCmd
task command The different implementations of the task command decides if the user is automatically approved or if it needs e-mail activation.
If e-mail activation is required, a "pendingReason" as the property is added to the response properties with the value of "email", to indicate the user is in pending email activation state. As well, "updatedUserId" is put on the response properties with the generic user ID so that the ComponentServiceAction can update its command context to the generic user.
The new user must be registered under WebSphere Commerce Default Organization in this implementation.- See Also:
UserRegistrationAddCmdImpl
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyright notice field.-
Fields inherited from interface com.ibm.commerce.usermanagement.commands.UserRegistrationAddCmd
NAME, REQUEST_PARAM_ADDRESS1, REQUEST_PARAM_ADDRESS2, REQUEST_PARAM_ADDRESS3, REQUEST_PARAM_ADDRESSFIELD1, REQUEST_PARAM_ADDRESSFIELD2, REQUEST_PARAM_ADDRESSFIELD3, REQUEST_PARAM_ADDRESSTYPE, REQUEST_PARAM_AGE, REQUEST_PARAM_ALTERNATEID, REQUEST_PARAM_BESTCALLINGTIME, REQUEST_PARAM_BILLINGCODE, REQUEST_PARAM_BILLINGCODETYPE, REQUEST_PARAM_CHALLENGEANSWER, REQUEST_PARAM_CHALLENGEQUESTION, REQUEST_PARAM_CITY, REQUEST_PARAM_COMPANYNAME, REQUEST_PARAM_COUNTRY, REQUEST_PARAM_DATEOFBIRTH, REQUEST_PARAM_DEMOGRAPHICFIELD1, REQUEST_PARAM_DEMOGRAPHICFIELD2, REQUEST_PARAM_DEMOGRAPHICFIELD3, REQUEST_PARAM_DEMOGRAPHICFIELD4, REQUEST_PARAM_DEMOGRAPHICFIELD5, REQUEST_PARAM_DEMOGRAPHICFIELD6, REQUEST_PARAM_DEMOGRAPHICFIELD7, REQUEST_PARAM_DEPARTMENTNUMBER, REQUEST_PARAM_DESCRIPTION, REQUEST_PARAM_DISPLAYNAME, REQUEST_PARAM_EMAIL1, REQUEST_PARAM_EMAIL2, REQUEST_PARAM_EMPLOYEEID, REQUEST_PARAM_EMPLOYEETYPE, REQUEST_PARAM_FAX1, REQUEST_PARAM_FAX2, REQUEST_PARAM_FIRSTNAME, REQUEST_PARAM_GENDER, REQUEST_PARAM_HOBBIES, REQUEST_PARAM_HOUSEHOLD, REQUEST_PARAM_INCOME, REQUEST_PARAM_INCOMECURRENCY, REQUEST_PARAM_LASTNAME, REQUEST_PARAM_LOGONID, REQUEST_PARAM_LOGONPASSWORD, REQUEST_PARAM_LOGONPASSWORDVERIFY, REQUEST_PARAM_MANAGER, REQUEST_PARAM_MARITALSTATUS, REQUEST_PARAM_MIDDLENAME, REQUEST_PARAM_MOBILEPHONE1, REQUEST_PARAM_MOBILEPHONE1COUNTRY, REQUEST_PARAM_NUMBEROFCHILDREN, REQUEST_PARAM_OFFICEADDRESS, REQUEST_PARAM_ORDERBEFORE, REQUEST_PARAM_ORGANIZATIONID, REQUEST_PARAM_ORGANIZATIONNAME, REQUEST_PARAM_ORGANIZATIONUNITID, REQUEST_PARAM_ORGANIZATIONUNITNAME, REQUEST_PARAM_PACKAGESUPPRESSION, REQUEST_PARAM_PARENTMEMBER, REQUEST_PARAM_PERSONTITLE, REQUEST_PARAM_PHONE1, REQUEST_PARAM_PHONE1TYPE, REQUEST_PARAM_PHONE2, REQUEST_PARAM_PHONE2TYPE, REQUEST_PARAM_PHOTO, REQUEST_PARAM_PREFERREDCOMMUNICATION, REQUEST_PARAM_PREFERREDCURRENCY, REQUEST_PARAM_PREFERREDDELIVERY, REQUEST_PARAM_PREFERREDLANGUAGE, REQUEST_PARAM_PREFERREDMEASURE, REQUEST_PARAM_PROFILETYPE, REQUEST_PARAM_PUBLISHPHONE1, REQUEST_PARAM_PUBLISHPHONE2, REQUEST_PARAM_RECEIVESMSNOTIFICATION, REQUEST_PARAM_SECRETARY, REQUEST_PARAM_SHIPPINGGEOCODE, REQUEST_PARAM_STATE, REQUEST_PARAM_TAXGEOCODE, REQUEST_PARAM_TAXPAYERID, REQUEST_PARAM_TIMEZONE, REQUEST_PARAM_URL, REQUEST_PARAM_USERFIELD1, REQUEST_PARAM_USERFIELD2, REQUEST_PARAM_USERFIELD3, REQUEST_PARAM_USERPROFILEFIELD1, REQUEST_PARAM_USERPROFILEFIELD2, REQUEST_PARAM_ZIPCODE, RESPONSE_PARAM_USERID
-
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
-
-
Constructor Summary
Constructors Constructor and Description UserRegistrationAddWithApprovalCheckCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
performExecute()
Creates the new user.-
Methods inherited from class com.ibm.commerce.usermanagement.commands.UserRegistrationAddCmdImpl
setRequestProperties, validateParameters
-
Methods inherited from class com.ibm.commerce.usermanagement.commands.UserRegistrationCmdImpl
checkAddParameters, checkCommonParameters, checkSelfRegistrationParameters, checkUpdateParameters, formulateDN, getAddress1, getAddress2, getAddress3, getAddressType, getAuthenticateMode, getBestCallingTime, getBillingCode, getBillingCodeType, getBusinessTitle, getCity, getCountry, getCreatedTimestamp, getEmail1, getEmail2, getFax1, getFax2, getFirstName, getLastName, getMiddleName, getMobilePhone1, getMobilePhone1Country, getOfficeAddress, getOrganizationName, getOrganizationUnitName, getPackageSuppression, getPersonTitle, getPhone1, getPhone1Type, getPhone2, getPhone2Type, getPrimary, getProfileType, getPublishPhone1, getPublishPhone2, getRequestProperties, getResources, getState, getStatus, getURL, getViewInputProperties, getWorkingUserId, getZipCode, isLogonIdExist, isLogonIdExist, isLogonIdUnique, isReadyToCallExecute, reset, setAddress1, setAddress2, setAddress3, setAddressField1, setAddressField2, setAddressField3, setAddressType, setAge, setAge, setAlternateId, setAuthenticateMode, setBestCallingTime, setBillingCode, setBillingCodeType, setBillingCodeTypeType, setBusinessTitle, setChallengeAnswer, setChallengeQuestion, setChildren, setChildren, setCity, setCompanyName, setCountry, setCreatedTimestamp, setDateOfBirth, setDemographicsField1, setDemographicsField2, setDemographicsField3, setDemographicsField4, setDemographicsField5, setDemographicsField6, setDemographicsField6, setDemographicsField7, setDepartmentNumber, setDescription, setDisplayName, setDistinguishedName, setEmail1, setEmail2, setEmployeeId, setEmployeeType, setEncipheredMerchantKey, setFax1, setFax2, setFirstName, setGender, setHobbies, setHousehold, setHousehold, setIncome, setIncome, setIncomeCurrency, setLastName, setLogonId, setLogonPassword, setLogonPasswordVerify, setLogonPasswordVerifyVerify, setManager, setMaritalStatus, setMerchantKey, setMiddleName, setMobilePhone1, setMobilePhone1Country, setNickName, setOfficeAddress, setOrderBefore, setOrganizationId, setOrganizationId, setOrganizationName, setOrganizationUnitId, setOrganizationUnitId, setOrganizationUnitName, setPackageSuppression, setPackageSuppression, setPasswordExpired, setPasswordExpired, setPersonTitle, setPhone1, setPhone1Type, setPhone2, setPhone2Type, setPhoto, setPreferredCommunication, setPreferredCurrency, setPreferredDelivery, setPreferredLanguage, setPreferredLanguage, setPreferredMeasure, setPrimary, setPrimary, setProfileType, setPublishPhone1, setPublishPhone1, setPublishPhone2, setPublishPhone2, setReceiveSMSNotification, setSecretary, setShippingGeoCode, setState, setStatus, setTaxGeoCode, setTaxPayerId, setTimeZone, setURL, setUserField1, setUserField2, setUserField3, setUserProfileField1, setUserProfileField2, setUserStatus, setUserStatus, setWorkingUserId, setZipCode
-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.usermanagement.commands.UserRegistrationCmd
getAddress1, getAddress2, getAddress3, getAddressType, getAuthenticateMode, getBestCallingTime, getBillingCode, getBillingCodeType, getBusinessTitle, getCity, getCountry, getCreatedTimestamp, getEmail1, getEmail2, getFax1, getFax2, getFirstName, getLastName, getMiddleName, getMobilePhone1, getMobilePhone1Country, getOfficeAddress, getOrganizationName, getOrganizationUnitName, getPackageSuppression, getPersonTitle, getPhone1, getPhone1Type, getPhone2, getPhone2Type, getPrimary, getProfileType, getPublishPhone1, getPublishPhone2, getState, getStatus, getWorkingUserId, getZipCode, reset, setAddress1, setAddress2, setAddress3, setAddressField1, setAddressField2, setAddressField3, setAddressType, setAge, setAge, setAlternateId, setAuthenticateMode, setBestCallingTime, setBillingCode, setBillingCodeType, setBusinessTitle, setChallengeAnswer, setChallengeQuestion, setChildren, setChildren, setCity, setCompanyName, setCountry, setCreatedTimestamp, setDateOfBirth, setDemographicsField1, setDemographicsField2, setDemographicsField3, setDemographicsField4, setDemographicsField5, setDemographicsField6, setDemographicsField6, setDemographicsField7, setDepartmentNumber, setDescription, setDisplayName, setDistinguishedName, setEmail1, setEmail2, setEmployeeId, setEmployeeType, setEncipheredMerchantKey, setFax1, setFax2, setFirstName, setGender, setHobbies, setHousehold, setHousehold, setIncome, setIncome, setIncomeCurrency, setLastName, setLogonId, setLogonPassword, setLogonPasswordVerify, setManager, setMaritalStatus, setMerchantKey, setMiddleName, setMobilePhone1, setMobilePhone1Country, setOfficeAddress, setOrderBefore, setOrganizationId, setOrganizationId, setOrganizationName, setOrganizationUnitId, setOrganizationUnitId, setOrganizationUnitName, setPackageSuppression, setPackageSuppression, setPasswordExpired, setPasswordExpired, setPersonTitle, setPhone1, setPhone1Type, setPhone2, setPhone2Type, setPhoto, setPreferredCommunication, setPreferredCurrency, setPreferredDelivery, setPreferredLanguage, setPreferredLanguage, setPreferredMeasure, setPrimary, setPrimary, setProfileType, setPublishPhone1, setPublishPhone1, setPublishPhone2, setPublishPhone2, setReceiveSMSNotification, setSecretary, setShippingGeoCode, setState, setStatus, setTaxGeoCode, setTaxPayerId, setTimeZone, setURL, setUserField1, setUserField2, setUserField3, setUserProfileField1, setUserProfileField2, setUserStatus, setUserStatus, setWorkingUserId, setZipCode
-
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserRegistrationAddWithApprovalCheckCmdImpl
public UserRegistrationAddWithApprovalCheckCmdImpl()
-
-
Method Detail
-
performExecute
public void performExecute() throws ECException
Creates the new user. It depends on command registry of the UserRegistrationAddCheckApprovalCmd to either put the user into approved state (in auto approval case) or pending for activation state (in e-mail activation case). The parent member of the user has to be the Default Organization for this implementation.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classUserRegistrationAddCmdImpl
- Throws:
ECException
- If there is a problem creating the user.
-
-