public interface GiftListRulesValidator
GiftList
noun and its associated
noun parts are validated against the business rules while the gift list is
created, updated or deleted. Each business rule should implement this
interface and provides the appropriate logic to validate the gift list data
against the rule defined in the GRREGRULE table for a particular event.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validateOnCreate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the gift list noun when a new gift list is being created.
|
boolean |
validateOnDelete(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the gift list noun or the noun part when a gift list is getting
deleted.
|
boolean |
validateOnUpdate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the gift list noun or the noun part when an existing gift list
is being updated.
|
static final java.lang.String COPYRIGHT
boolean validateOnCreate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
noun
- The GiftList
noun that needs to be validated.nounPart
- The GiftList
noun part to be used, to validate
the part data against a rule, rather than using the whole
noun.rule
- The rule name.GiftListRuleValidationException
boolean validateOnUpdate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
noun
- The GiftList
noun that needs to be validated.nounPart
- The GiftList
noun part to be used, to validate
the part data against a rule, rather than using the whole
noun.rule
- The rule name.GiftListRuleValidationException
boolean validateOnDelete(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
noun
- The GiftList
noun that needs to be validated.nounPart
- The GiftList
noun part to be used, to validate
the part data against a rule, rather than using the whole
noun.rule
- The rule name.GiftListRuleValidationException