com.ibm.commerce.giftcenter.rules.validation

Class AbstractGiftListRulesValidator

  • java.lang.Object
    • com.ibm.commerce.giftcenter.rules.validation.AbstractGiftListRulesValidator
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean validateOnCreate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule)
      Validates the gift list noun when a new gift list is being created.
      boolean validateOnDelete(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule)
      Validates the gift list noun or the noun part when an existing gift list is being deleted.
      boolean validateOnUpdate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule)
      Validates the gift list noun or the noun part when a gift list is getting updated.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractGiftListRulesValidator

        public AbstractGiftListRulesValidator()
    • Method Detail

      • validateOnCreate

        public boolean validateOnCreate(java.lang.Object noun,
                                        java.lang.Object nounPart,
                                        java.lang.Integer rule)
                                 throws GiftListRuleValidationException
        Validates the gift list noun when a new gift list is being created.
        Specified by:
        validateOnCreate in interface GiftListRulesValidator
        Parameters:
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part which can be used, to validate the part data against a rule, rather than using the whole noun.
        rule - The rule name.
        Returns:
        A boolean value to indicate whether the noun or the noun part satisfies the business rule.
        Throws:
        GiftListRuleValidationException
      • validateOnDelete

        public boolean validateOnDelete(java.lang.Object noun,
                                        java.lang.Object nounPart,
                                        java.lang.Integer rule)
                                 throws GiftListRuleValidationException
        Validates the gift list noun or the noun part when an existing gift list is being deleted.
        Specified by:
        validateOnDelete in interface GiftListRulesValidator
        Parameters:
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part which can be used, to validate the part data against a rule, rather than using the whole noun.
        rule - The rule name.
        Returns:
        A boolean value to indicate whether the noun or the noun part satisfies the business rule.
        Throws:
        GiftListRuleValidationException
      • validateOnUpdate

        public boolean validateOnUpdate(java.lang.Object noun,
                                        java.lang.Object nounPart,
                                        java.lang.Integer rule)
                                 throws GiftListRuleValidationException
        Validates the gift list noun or the noun part when a gift list is getting updated.
        Specified by:
        validateOnUpdate in interface GiftListRulesValidator
        Parameters:
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part which can be used, to validate the part data against a rule, rather than using the whole noun.
        rule - The rule name.
        Returns:
        A boolean value to indicate whether the noun or the noun part satisfies the business rule.
        Throws:
        GiftListRuleValidationException