Class MinDaysForPromotionEligibilityRuleValidator

  • All Implemented Interfaces:

    public class MinDaysForPromotionEligibilityRuleValidator
    extends AbstractGiftListRulesValidator
    The MinDaysForPromotionEligibilityRuleValidator class validates whether the user is eligible for the completion program promotion. The user is eligible to get the promotion if the current date is no earlier than a configured number of days after the event date."
    • Field Detail


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

      • MinDaysForPromotionEligibilityRuleValidator

        public MinDaysForPromotionEligibilityRuleValidator()
    • Method Detail

      • validateOnUpdate

        public boolean validateOnUpdate(java.lang.Object noun,
                                        java.lang.Object nounPart,
                                        java.lang.Integer rule)
                                 throws GiftListRuleValidationException
        Validates whether the user is eligible for the completion program promotion
        Specified by:
        validateOnUpdate in interface GiftListRulesValidator
        validateOnUpdate in class AbstractGiftListRulesValidator
        noun - The GiftList noun that needs to be validated.
        nounPart - The GiftList noun part to use to validate the part data against a rule, rather than using the whole GiftList noun.
        rule - The rule name.
        A boolean value to indicate whether the noun or the noun part satisfies the business rule.