com.ibm.commerce.tools.optools.user.commands

Class CSRCustomerEnableAccountCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand, CSRCustomerEnableAccountCmd, 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 CSRCustomerEnableAccountCmdImpl
    extends ToolsControllerCommandImpl
    implements CSRCustomerEnableAccountCmd

    Enables a customer's account by calling UserRegistrationAdminUpdateCmd.

    URL calling syntax:

    • Https://host_name/path/CSRCustomerEnableAccountCmd?XML=xml_string&URL=return_url

    Parameters:

    XML
    An input xml_string that contains the all required data for enabling a customer's account.
    For example:
           <?xml version="1.0" encoding "UTF-8">
           <profileInfo>
           <logonId>Smith</logonId>   
           </profileInfo>
           <customerId>7777</customerId>
           <locale>en_US</locale>
           <account>ABC</account>
           <cmdStatus>1</cmdStatus>
           </xml>
     
    URL
    The URL to be called when the command completes successfully.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        copyright notice
        See Also:
        Constant Field Values
    • Constructor Detail

      • CSRCustomerEnableAccountCmdImpl

        public CSRCustomerEnableAccountCmdImpl()
        Default Constructor
    • Method Detail

      • executeUserRegistrationAdminUpdate

        public void executeUserRegistrationAdminUpdate()
                                                throws java.lang.Exception
        Calls UserRegistrationAdminUpdateCmd to enable the user's account
        Throws:
        ECApplicationException - If the UserRegistrationAdminUpdateCmd command cannot be found.
        java.lang.Exception
      • getAccount

        public java.lang.String getAccount()
        Returns the customer's account.
        Returns:
        The customer account.
      • getCmdStatus

        public java.lang.String getCmdStatus()
        Returns the customer's account status.
        Returns:
        The customer's account status.
      • getCustomerId

        public java.lang.String getCustomerId()
        Returns the customer's id.
        Returns:
        the customer's database ID.
      • getLocale

        public java.lang.String getLocale()
        Returns the customer's locale.
        Returns:
        The customer's locale value.
      • getLogonId

        public java.lang.String getLogonId()
        Returns the customer's logon id.
        Returns:
        The customer's logon ID.
      • getNLS

        public java.util.Hashtable getNLS()
        Returns the properties containing all translatable messages for this command.
        Returns:
        Name value pairs of translatable messages.
      • getViewInputProperties

        public TypedProperty getViewInputProperties()
        This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method. The tools need to override this method because otherwise the properties passed into the controller command would be then passed onto the view command. This is unnecessary for the tools and actually will break us when using the ReDirectView command. It is because the URL to re-direct to cannot be more than 500 chars. The XML parameter alone passed into the controller command is longer than this. Therefore without overriding this method we couldn't re-direct to the view command.
        Specified by:
        getViewInputProperties in interface ControllerCommand
        Overrides:
        getViewInputProperties in class ToolsControllerCommandImpl
        Returns:
        com.ibm.commerce.datatype.TypeProperty
      • getXMLFile

        public java.lang.String getXMLFile()
        Returns the XML file.
        Returns:
        The entire XML file.
      • setNLS

        public void setNLS(java.util.Hashtable newNLS)
        Sets the NLS hashtable.
        Parameters:
        newNLS - The translated name-value messages.