Class AttachmentsEditActionValidator

java.lang.Object
com.ptc.core.ui.validation.DefaultValidationFilter
com.ptc.core.ui.validation.DefaultUIComponentValidator
com.ptc.windchill.enterprise.attachments.validators.AttachmentsEditActionValidator
All Implemented Interfaces:
UIComponentValidator, ValidationFilter

public class AttachmentsEditActionValidator extends DefaultUIComponentValidator
Performs validation for the edit action. The edit action will launch edit wizard to edit attachments of current holder.

Supported API: true

Extendable: true
  • Method Details

    • performFullPreValidation

      public UIValidationResultSet performFullPreValidation(UIValidationKey validationKey, UIValidationCriteria validationCriteria, Locale locale) throws WTException
      Performs the check to see if the Edit action should be shown or not.
      The Edit action can be used in the toolbar of a table or as a row level action within a table/tree. The Edit action is only enabled for objects that implement ContentHolder or ApplicationData objects, and with permitted accesss of both modifying holder and modifying content.

      Supported API: true
      Specified by:
      performFullPreValidation in interface UIComponentValidator
      Overrides:
      performFullPreValidation in class DefaultUIComponentValidator
      Parameters:
      validationKey -
      validationCriteria -
      locale -
      Returns:
      Throws:
      WTException
      See Also:
    • isChangeAnalysisEnabled

      protected boolean isChangeAnalysisEnabled(Persistable contextObj)
      Performs a check to see if the edit action should be enabled for Change Proposal or Change Investigation objects. The default behavior is to hide the edit action for all ChangeAnalysisIfc objects. This method can be overridden change the default behavior.

      Supported API: true
      Parameters:
      contextObj -
      Returns:
      True if the context object is not an instance of ChangeAnalysisIfc.
    • isChangeActivityEnabled

      protected boolean isChangeActivityEnabled(Persistable contextObj)
      Performs a check to see if the edit action should be enabled for Change Activities. The default behavior is to hide the edit action for all ChangeActivity2 objects. This method can be overridden to change the default behavior.

      Supported API: true
      Parameters:
      contextObj - The context object as a content holder.
      Returns:
      True if the context object is not an instance of ChangeActivity2.
    • isAnalysisActivityEnabled

      protected boolean isAnalysisActivityEnabled(Persistable contextObj)
      Performs a check to see if the edit action should be enabled for Analysis Activity objects. The default behavior is to hide the edit action for all AnalysisActivityIfc objects. This method can be overridden change the default behavior.

      Supported API: true
      Parameters:
      contextObj -
      Returns:
      True if the context object is not an instance of AnalysisActivityIfc.