com.ibm.commerce.component.giftregistry.commands

Interface ValidateGiftRegistryValuesCmd

  • All Superinterfaces:
    BusinessObjectDocumentCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    ValidateGiftRegistryValuesCmdImpl


    public interface ValidateGiftRegistryValuesCmd
    extends BusinessObjectDocumentCmd
    Validates the gift registry value object based on the business rules.
    The class will validate each of the gift registries in the incoming UpdateGiftRegistryBOD and then validate the gift items. Validation is based on the defined business rules stored in the GRREGRULES table.

    Called from Operation: UpdateGiftRegistryCmd
    In Parameter: UpdateGiftRegistryBOD
    Result: Returns ECApplicationException if an error occurs.

    If an error occurs when validating a gift registry value object, the GiftRegistryVO along with a GiftRegistryMessage will be added to the error hashtable. If an error occurs when validating a gift item, the GiftRegistryItemVO along with a GiftRegistryMessage will be added to a hashtable. The hashtable will be returned to as part of the ECApplicationException.

    On error, a ECApplicationException is thrown with possible messages:
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_QUANTITY_INVALID
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_FAILED_DURING_VALIDATION
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_RULE_VIOLATED
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class
        See Also:
        Constant Field Values