public class MinDaysForPromotionEligibilityRuleValidator extends AbstractGiftListRulesValidator
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."Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
MinDaysForPromotionEligibilityRuleValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validateOnUpdate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates whether the user is eligible for the completion program
promotion
|
validateOnCreate, validateOnDelete
public static final java.lang.String COPYRIGHT
public MinDaysForPromotionEligibilityRuleValidator()
public boolean validateOnUpdate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
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.GiftListRuleValidationException