com.ibm.commerce.usermanagement.commands

Class AuditUserRegistrationCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AuditAddressCmd, AuditBaseCmd, AuditUserRegistrationCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AuditUserRegistrationCmdImpl
    extends AuditAddressCmdImpl
    implements AuditUserRegistrationCmd
    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.

    See Also:
    Serialized Form