Class ChangeMgmtConstraintsClientHelper
java.lang.Object
com.ptc.windchill.enterprise.change2.constraints.ChangeMgmtConstraintsClientHelper
Change management client helper for validating that the new associations for
a change object and a changeable objects honoring the constraints defined for
the association. The association constraint service generates the list of
valid changeable (role b) type identifiers are valid for a given change item
type identifier and association link type identifier. This helper provides
methods to aid in generating the appropriate link type identifier for a given
base link class for the association as well as the type identifier for the
change object from the client form data.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String"baseLinkClass" is a key used to override the base link class for the association. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeIdentifierGiven the validation criteria determines the type identifier of the object being created or modify in a change wizard.static TypeIdentifierGiven the command bean determines the type identifier of the object being created or modify in a change wizard.static StringgetValidChangeableTypesStr(NmCommandBean bean, Class<?> baseLinkClass) Given the form data and the base link class for adding affected or resulting data to a change object returns the comma delimited string of valid types for the association.
-
Field Details
-
BASE_LINK_CLASS
"baseLinkClass" is a key used to override the base link class for the association.
Supported API: true- See Also:
-
-
Method Details
-
getChangeItemTypeIdentifier
public static TypeIdentifier getChangeItemTypeIdentifier(UIValidationCriteria criteria) throws WTException Given the validation criteria determines the type identifier of the object being created or modify in a change wizard.
Supported API: true- Parameters:
criteria-- Returns:
- type identifier
- Throws:
WTException
-
getChangeItemTypeIdentifier
Given the command bean determines the type identifier of the object being created or modify in a change wizard.
Supported API: true- Parameters:
bean-- Returns:
- type identifier
- Throws:
WTException
-
getValidChangeableTypesStr
public static String getValidChangeableTypesStr(NmCommandBean bean, Class<?> baseLinkClass) throws WTException Given the form data and the base link class for adding affected or resulting data to a change object returns the comma delimited string of valid types for the association. The form data is used to determine the type identifier for a new or existing change item for the association to the changeable.
Supported API: true- Parameters:
bean-baseLinkClass-- Returns:
- a comma delimited string of valid changeable types
- Throws:
WTException
-