com.ibm.commerce.usermanagement.commands

Class AuditOrgEntityCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AuditBaseCmd, AuditOrgEntityCmd, 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 AuditOrgEntityCmdImpl
    extends AuditBaseCmdImpl
    implements AuditOrgEntityCmd
    Checks parameters that are passed into the OrgEntityAdd and OrgEntityUpdate commands according what is specified in the OrgEntity.properties file. The command will get the store directory from CommandContext and use the store directory to find property files. If the property file is not found, no parameter checking will be performed.
    Following is a sample of the OrgEntity properties file:
    ...
     legalId.Label=Legal Id
     legalId.Displayed=yes
     legalId.Required=yes
    
     BusinessCategory.Label=Business Category
     BusinessCategory.Displayed=yes
     BusinessCategory.Required=no
     
    ... Following is a sample of the OrgEntity property file of new format:
    ...
     25.Name=legalId
     25.Label=Legal Id
     25.Displayed=yes
     25.Required=yes
     25.Size=40
     25.LineBreak=2
     
     30.Name=businessCategory
     30.Label=Business Category
     30.Displayed=yes
     30.Required=yes
     30.Size=40
     30.LineBreak=2
     
    ... Legal Id parameter will be checked as the 'Required' attribute for legalId equals 'yes'. If the legalId is missing or its length equals 0, the AuditAddressCmd will throw an exception.
    BusinessCategory parameter will NOT be checked since the 'Required' attribute for BusinessCategory equals 'no'.

    If all parameters checks are passed successfully, the getAuditResult() method will return true; otherwise it will return false.

    See Also:
    Serialized Form