Class ChangeableContraintsValidator

java.lang.Object
com.ptc.core.ui.validation.DefaultValidationFilter
com.ptc.core.ui.validation.DefaultUIComponentValidator
com.ptc.windchill.enterprise.change2.constraints.ChangeableContraintsValidator
All Implemented Interfaces:
UIComponentValidator, ValidationFilter

public class ChangeableContraintsValidator extends DefaultUIComponentValidator
Validates that the association of the changeable object for given change object is valid for the association link type. The association link type is derived from the base link class for the association. The validator can either be extended by another validator or be invoked using calling the performValidation method. The base link class for the association can be automatically derived when added objects through a collector, picker or paste. When performing a revise, creating one-off versions, or hanging change links the resulting object link class needs to be specified prior to calling this validator. To make sure that the correct base link class is used when evaluating the constraints add the ChangeMgmtConstraintsClientHelper.BASE_LINK_CLASS to the form data request parameter map. For example to validate that adding the revised objects from the affected objects table to the resulting objects you would need to add the wt.change2.ChangeRecord2 class string for the base link class:

FormDataHolder#getParameterMap().put(ChangeMgmtConstraintsClientHelper.BASE_LINK_CLASS, "wt.change2.ChangeRecord2");

Supported API: true

Extendable: true
See Also: