Class MaxDaysForPromotionEligibilityRuleValidator

  • All Implemented Interfaces:

    public class MaxDaysForPromotionEligibilityRuleValidator
    extends AbstractGiftListRulesValidator
    The MaxDaysForPromotionEligibilityRuleValidator 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 later 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

      • MaxDaysForPromotionEligibilityRuleValidator

        public MaxDaysForPromotionEligibilityRuleValidator()
    • 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.