public class EventDateInPastRuleValidator extends AbstractGiftListRulesValidator
EventDateInPastRuleValidator
class validates whether the
gift list event date can be updated to a past date while editing the gift
listModifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
EventDateInPastRuleValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validateOnUpdate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the rule when the gift list object is being updated.
|
validateOnCreate, validateOnDelete
public static final java.lang.String COPYRIGHT
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 need 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