public class EventDateNotBeforeMinAdvanceDaysRuleValidator extends AbstractGiftListRulesValidator
EventDateNotBeforeMinAdvanceDaysRuleValidator
class
validates a gift registry event date to ensure the date is not earlier than a
configured number of days in the future.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
EventDateNotBeforeMinAdvanceDaysRuleValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validateOnCreate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the rule when the gift list object is being created.
|
validateOnDelete, validateOnUpdate
public static final java.lang.String COPYRIGHT
public EventDateNotBeforeMinAdvanceDaysRuleValidator()
public boolean validateOnCreate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
validateOnCreate
in interface GiftListRulesValidator
validateOnCreate
in class AbstractGiftListRulesValidator
noun
- The GiftList
noun that need to be validatednounPart
- 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