public class ValidateGiftListRulesHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ValidateGiftListRulesHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
validateARule(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer ruleName,
java.lang.String event)
Validates a rule against the noun and noun part for a particular event.
|
java.lang.Integer |
validateOnCreate(java.lang.Object noun,
java.lang.Object nounPart)
Calls all of the create rule validators passing the gift list data.
|
boolean |
validateOnCreate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates a rule on creation of a noun part.
|
java.lang.Integer |
validateOnDelete(java.lang.Object noun,
java.lang.Object nounPart)
Calls all of the delete rule validators passing the gift list data.
|
boolean |
validateOnDelete(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates a rule on delete of a noun or noun part.
|
java.lang.Integer |
validateOnUpdate(java.lang.Object noun,
java.lang.Object nounPart)
Calls all of the update rule validators passing the gift list data.
|
boolean |
validateOnUpdate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates a rule on update of a noun or noun part.
|
public static final java.lang.String COPYRIGHT
public java.lang.Integer validateOnCreate(java.lang.Object noun, java.lang.Object nounPart) throws GiftListRuleValidationException
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.GiftListRuleValidationException
public boolean validateOnCreate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
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
public java.lang.Integer validateOnDelete(java.lang.Object noun, java.lang.Object nounPart) throws GiftListRuleValidationException
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.GiftListRuleValidationException
public boolean validateOnDelete(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
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 to be evaluated on the noun.GiftListRuleValidationException
public java.lang.Integer validateOnUpdate(java.lang.Object noun, java.lang.Object nounPart) throws GiftListRuleValidationException
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.GiftListRuleValidationException
public boolean validateOnUpdate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
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 to be evaluated on the noun.GiftListRuleValidationException
public boolean validateARule(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer ruleName, java.lang.String event) throws GiftListRuleValidationException
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.ruleName
- The rule name that need to be validated against the noun or
noun part.event
- Whether create, update or delete event for a gift list object.GiftListRuleValidationException