public class AuditAddressCmdImpl extends AuditBaseCmdImpl implements AuditAddressCmd
... 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 Address 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... Last name parameter will be checked as the 'Required' attribute for lastName equals 'yes'. If the lastName parameter were missing or its length equaled 0, the AuditAddressCmd will throw an exception.
If all parameters checks pass 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 the command implementation.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
AuditAddressCmdImpl()
Creates an instance of the AuditAddress command.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress1()
Returns the first line of the address.
|
java.lang.String |
getCity()
Returns the city name.
|
java.lang.String |
getCountry()
Returns the country name.
|
java.lang.String |
getLastName()
Returns the last name of the individual.
|
java.lang.String |
getState()
Returns the name of the state, province, or equivalent where the individual resides.
|
java.lang.String |
getZipCode()
Returns the zip code or equivalent postal code of the individual's address.
|
void |
performExecute()
Executes the business function.
|
void |
setAddress1(java.lang.String astrAddress1)
Sets the first line of the address.
|
void |
setCity(java.lang.String astrCity)
Sets the city name.
|
void |
setCountry(java.lang.String astrCountry)
Sets the country name.
|
void |
setFirstName(java.lang.String astrFirstName)
Sets the First name of the individual.
|
void |
setLastName(java.lang.String astrLastName)
Sets the last name of the individual.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets the parameters passed to the command.
|
void |
setState(java.lang.String astrState)
Sets the name of the state, province, or equivalent where the individual resides.
|
void |
setZipCode(java.lang.String astrZipCode)
Sets the zip code or equivalent postal code of the individual's address.
|
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
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 AuditAddressCmdImpl()
public java.lang.String getAddress1()
public java.lang.String getCity()
public java.lang.String getCountry()
public java.lang.String getLastName()
public java.lang.String getState()
public java.lang.String getZipCode()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AuditBaseCmdImpl
ECException
- If there was a problem executing the business function.public void setAddress1(java.lang.String astrAddress1)
setAddress1
in interface AuditAddressCmd
astrAddress1
- The first line of the address.public void setCity(java.lang.String astrCity)
setCity
in interface AuditAddressCmd
astrCity
- The city name.public void setCountry(java.lang.String astrCountry)
setCountry
in interface AuditAddressCmd
astrCountry
- The country name.public void setFirstName(java.lang.String astrFirstName)
astrFirstName
- The First name.public void setLastName(java.lang.String astrLastName)
setLastName
in interface AuditAddressCmd
astrLastName
- The last name.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface AuditAddressCmd
setRequestProperties
in interface AuditBaseCmd
setRequestProperties
in class AuditBaseCmdImpl
requestProperties
- the parameters passed to the command.ECApplicationException
- If there was a problem with missing or invalid parameters passed to the command.public void setState(java.lang.String astrState)
setState
in interface AuditAddressCmd
astrState
- The name of the state.public void setZipCode(java.lang.String astrZipCode)
setZipCode
in interface AuditAddressCmd
astrZipCode
- The zip code.