com.ibm.commerce.usermanagement.commands

Interface AuditUserRegistrationCmd

  • All Superinterfaces:
    AuditAddressCmd, AuditBaseCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    AuditUserRegistrationCmdImpl


    public interface AuditUserRegistrationCmd
    extends AuditAddressCmd
    Checks parameters that are passed into the UserRegistrationAdd and UserRegistrationUpdate commands according what is specified in the UserRegistration property file. The base file name is 'UserRegistration.properties'.
    The command will get the store directory from the CommandContext and use the store directory to find the property files. If no property file is found, no parameter checks will be performed.
    Following is a sample of the UserRegistration property file of old format:
    ...
     lastName.Label=Last Name
     lastName.Displayed=yes
     lastName.Required=yes
    
     firstName.Label=First Name
     firstName.Displayed=yes
     firstName.Required=no
     
    ... Following is a sample of the UserRegistration property file of new format:
    ...
     40.Name=lastName
     40.Label=Last Name
     40.Displayed=yes
     40.Required=yes
     40.Size=20
     
     45.Name=firstName
     45.Label=First Name
     45.Displayed=yes
     45.Required=no
     45.Size=20
     
    ... lastName parameter will be checked as the 'Required' attribute for lastName equals 'yes'. If the lastName is missing or its length equals 0, the AuditAddressCmd will throw an exception.
    firstName parameter will NOT be checked since the 'Required' attribute for firstName equals 'no'.

    If all parameters check are passed successfully, the getAuditResult() method will return true; otherwise it will return false.

    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values
    • Method Detail

      • setChallengeAnswer

        void setChallengeAnswer(java.lang.String astrChallengeAnswer)
        Sets Challenge Answer for confirmation of the user's identity.
        Parameters:
        astrChallengeAnswer - Challenge question.
      • setChallengeQuestion

        void setChallengeQuestion(java.lang.String astrChallengeQuestion)
        Sets Challenge question for confirmation of the user's identity.
        Parameters:
        astrChallengeQuestion - Challenge question.