com.ibm.commerce.usermanagement.commands
Interface AuditUserRegistrationCmd
- All Superinterfaces:
- AuditAddressCmd, AuditBaseCmd, ECCommand, TaskCommand
- All Known Implementing Classes:
- AuditUserRegistrationCmdImpl
- public interface AuditUserRegistrationCmd
- extends AuditAddressCmd
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.
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.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
NAME
public static final java.lang.String NAME
setChallengeAnswer
public void setChallengeAnswer(java.lang.String astrChallengeAnswer)
- Sets Chanlenge Answer for confirmation of the user's identify.
- Parameters:
astrChallengeAnswer
- Chanlenge question
setChallengeQuestion
public void setChallengeQuestion(java.lang.String astrChallengeQuestion)
- Sets Chanlenge question for confirmation of the user's identify.
- Parameters:
astrChallengeQuestion
- Chanlenge question