Class ReleaseTargetValidator
java.lang.Object
com.ptc.core.businessRules.validation.ReleaseTargetValidator
- All Implemented Interfaces:
RuleValidation
This class validates the release target business rule.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]getSupportedClasses(RuleValidationKey validationKey) Will return an array of classes that the Release Target rule supports.performValidation(RuleValidationKey validationKey, RuleValidationObject validationObject, RuleValidationCriteria criteria) Will validate the business object against the Release Target rule and adds the result to the validation result set.voidprepareForValidation(RuleValidationKey validationKey, RuleValidationCriteria criteria) Determines if there are any ChangeRecord2 links that have invalid transitions before performValidation is called on each object.
-
Method Details
-
performValidation
public RuleValidationResult performValidation(RuleValidationKey validationKey, RuleValidationObject validationObject, RuleValidationCriteria criteria) throws WTException Will validate the business object against the Release Target rule and adds the result to the validation result set.
Supported API: true- Specified by:
performValidationin interfaceRuleValidation- Parameters:
validationKey-validationObject-criteria-- Returns:
- validation result
- Throws:
WTException
-
prepareForValidation
public void prepareForValidation(RuleValidationKey validationKey, RuleValidationCriteria criteria) throws WTException Determines if there are any ChangeRecord2 links that have invalid transitions before performValidation is called on each object.
Supported API: true- Specified by:
prepareForValidationin interfaceRuleValidation- Parameters:
validationKey-criteria-- Throws:
WTException
-
getSupportedClasses
Will return an array of classes that the Release Target rule supports. The Target Release rule supports only ChangeRecord2 class.
Supported API: true- Specified by:
getSupportedClassesin interfaceRuleValidation- Parameters:
validationKey-- Returns:
- the array of classes
-