com.ibm.commerce.member.facade.server.commands

Class 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 the com.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 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 interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class UserRegistrationAddCmdImpl
        Throws:
        ECException - If there is a problem creating the user.