com.ibm.commerce.giftcenter.rules.validation

Interface GiftListRulesValidator

    • Field Summary

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

      All Methods Instance Methods Abstract 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 a gift list is getting 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 an existing gift list is being updated.
    • Field Detail

      • COPYRIGHT

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

      • validateOnCreate

        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. Implement this method if the business rule deals with the creation of a new gift list
        Parameters:
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part to 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

        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 an existing gift list is being updated. Implement this method if the business rule deals with updating the gift list.
        Parameters:
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part to 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

        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 a gift list is getting deleted. Implement this method if the business rule deals with deleting the gift list.
        Parameters:
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part to 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