Class ChangeMgmtConstraintsClientHelper

java.lang.Object
com.ptc.windchill.enterprise.change2.constraints.ChangeMgmtConstraintsClientHelper

public class ChangeMgmtConstraintsClientHelper extends Object
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
  • Field Details

  • 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

      public static TypeIdentifier getChangeItemTypeIdentifier(NmCommandBean bean) throws WTException
      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