The AuditUserRegistration task command checks the parameters that are passed into the UserRegistrationAdd and UserRegistrationUpdate commands according what is specified in the UserRegistration property file (base name 'UserRegistration.properties'). The command will get store directory from CommandContex and uses store directory to find property files. If property file is not found, the command will not check any parameters 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... Because the 'Required' attribute for lastName equals 'yes', the command will check the lastName parameter. If the lastName is missing or its length equals 0, the AuditAddressCmd will throw a excepiton. Because the 'Required' attribute for firstName equals 'no', the command will not check the firstName parameter.
If all parameters check are passed, the getAuditResult() method will return true; otherwise return false.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
static java.lang.String |
defaultCommandClassName The default implementation of this command. |
static java.lang.String |
NAME The name of this command. |
Method Summary | |
---|---|
void |
setChallengeAnswer(java.lang.String astrChallengeAnswer) Sets Chanlenge Answer for confirmation of the user's identify. |
void |
setChallengeQuestion(java.lang.String astrChallengeQuestion) Sets Chanlenge question for confirmation of the user's identify. |
Methods inherited from interface com.ibm.commerce.usermanagement.commands. AuditAddressCmd |
setAddress1,
setCity,
setCountry,
setLastName,
setRequestProperties,
setState,
setZipCode |
Methods inherited from interface com.ibm.commerce.usermanagement.commands. AuditBaseCmd |
getRequestProperties,
setErrorViewName,
setPropertyFileName |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public void setChallengeAnswer(java.lang.String astrChallengeAnswer)
astrChallengeAnswer
- Chanlenge question.public void setChallengeQuestion(java.lang.String astrChallengeQuestion)
astrChallengeQuestion
- Chanlenge
question.