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
Performs validation for the edit action. The edit action will launch edit wizard to edit attachments of current holder.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisAnalysisActivityEnabled(Persistable contextObj) Performs a check to see if the edit action should be enabled for Analysis Activity objects.protected booleanisChangeActivityEnabled(Persistable contextObj) Performs a check to see if the edit action should be enabled for Change Activities.protected booleanisChangeAnalysisEnabled(Persistable contextObj) Performs a check to see if the edit action should be enabled for Change Proposal or Change Investigation objects.performFullPreValidation(UIValidationKey validationKey, UIValidationCriteria validationCriteria, Locale locale) Performs the check to see if the Edit action should be shown or not.Methods inherited from class com.ptc.core.ui.validation.DefaultUIComponentValidator
getSubValidator, getSubValidator, performLimitedPreValidation, preValidateAction, preValidateAttribute, preValidateMultiTargetAction, validateFormSubmission, validateSelectedAction, validateSelectedMultiSelectActionMethods inherited from class com.ptc.core.ui.validation.DefaultValidationFilter
populateResultSet
-
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 implementContentHolderorApplicationDataobjects, and with permitted accesss of both modifying holder and modifying content.
Supported API: true- Specified by:
performFullPreValidationin interfaceUIComponentValidator- Overrides:
performFullPreValidationin classDefaultUIComponentValidator- Parameters:
validationKey-validationCriteria-locale-- Returns:
- Throws:
WTException- See Also:
-
isChangeAnalysisEnabled
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 allChangeAnalysisIfcobjects. 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
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 allChangeActivity2objects. 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
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 allAnalysisActivityIfcobjects. 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.
-