com.ibm.commerce.component.giftregistry.commands

Interface CheckGiftRegistryItemEligibilityCmd

  • 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:
    CheckGiftRegistryItemEligibilityCmdImpl


    public interface CheckGiftRegistryItemEligibilityCmd
    extends BusinessObjectDocumentCmd
    Validates the GiftRegistryVO based on business rules.

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

    The class will validate each of the gift items for the incoming UpdateGiftRegistryBOD.

    A check is done to validate that each item follows the defined business rules stored in the GRREGRULES table.

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

    Possible exception messages include:
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_ITEM_FAILED_DURING_VALIDATION
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_ITEM_NOT_FOUND
    • GiftRegistryMessage._ERR_GIFT_REGISTRY_RULE_VIOLATED.'ruleNumber'
    • 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