public class AuditUserRegistrationCmdImpl extends AuditAddressCmdImpl implements AuditUserRegistrationCmd
... 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.
If all parameters check are passed successfully, the getAuditResult() method will return true; otherwise it will return false.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this command implementation.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
AuditUserRegistrationCmdImpl()
Creates an instance of the AuditUserRegistration command.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Executes the business function.
|
void |
setChallengeAnswer(java.lang.String astrChallengeAnswer)
Sets Challenge Answer for confirmation of the user's identity.
|
void |
setChallengeQuestion(java.lang.String astrChallengeQuestion)
Sets Challenge question for confirmation of the user's identity.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.
|
getAddress1, getCity, getCountry, getLastName, getState, getZipCode, setAddress1, setCity, setCountry, setFirstName, setLastName, setState, setZipCode
getAuditResult, getPathSeparator, getPropertyFileName, getRequestProperties, getStoreDirectory, setErrorViewName, setPathSeparator, setPropertyFileName, setStoreDirectory
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAddress1, setCity, setCountry, setLastName, setState, setZipCode
getRequestProperties, setErrorViewName, setPropertyFileName
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public AuditUserRegistrationCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AuditAddressCmdImpl
ECException
- If there is a problem executing the business function.public void setChallengeAnswer(java.lang.String astrChallengeAnswer)
setChallengeAnswer
in interface AuditUserRegistrationCmd
astrChallengeAnswer
- Challenge answer.public void setChallengeQuestion(java.lang.String astrChallengeQuestion)
setChallengeQuestion
in interface AuditUserRegistrationCmd
astrChallengeQuestion
- Challenge question.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface AuditAddressCmd
setRequestProperties
in interface AuditBaseCmd
setRequestProperties
in class AuditAddressCmdImpl
aRequestProperties
- the parameters passed to the command.ECApplicationException
- If there is a problem with the parameters passed to the command.