Class AddPartUsageFilterDelegate
java.lang.Object
com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AbstractPartUsageFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AddPartUsageFilterDelegate
- All Implemented Interfaces:
MassChangeFilterDelegate
This filter delegate determines whether the selected objects are eligible for
the mass change operation for the selected parts. The delegate will filter
invalid selected objects and creates new part usage links for any valid
objects selected given the user specified part.
If this delegate is extended or replaced with a customized delegate, the
action for the mass change operation should be overridden in a customized
actions.xml. The customized delegate should be registered as the command
class in the overridden mass change operation action.
This operation is currently registered with the action name
addPartUsage.
Extendable: true
Supported API: true
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractPartUsageFilterDelegate
AbstractPartUsageFilterDelegate.BranchInfo -
Field Summary
Fields inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractPartUsageFilterDelegate
LOGGERFields inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
logFields inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
RESOURCE -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the hint text for the Add Part Usage functionality.protected voidpreEvaluate(MassChangeFilterState mcFilterState) Filter out mass change target parts that: Share the same master as the new child part. Violate an association constraint with the new child part. Would result in a duplicate line or find number. Filtered objects will be marked as excluded.protected voidpreProcessOperation(MassChangeFilterState mcFilterState) Add associations between target objects and the specified part.validateFormSubmission(UIValidationCriteria validationCriteria) Implementation used for Add Part Usage operation of the Mass Change wizard.Methods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractPartUsageFilterDelegate
filterBuiltFromCad, filterCadAdminLock, filterCadCheckout, filterCadNotInChange, filterCadPermission, filterDuplicateLineFindNumber, filterForReferenceDesignator, filterPublishToCad, filterSameMaster, filterUsage, generateHintText, getAssociationLinkTypeMap, getCadPublishableTargets, getChangeableSourceName, getChildPart, getChildPartsForOperation, getUsageLinks, getUsageLinks, isBuildTargets, isSupportedSourceType, queryCadDocs, queryForBranchInfo, setUsageLinksChanged, usageLinksChanged, validateQuantityUnitMethods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
checkin, filterCheckout, filterView, getCheckedOutByMe, getFilterView, getOriginalCopyMap, getSourceChangeable, getTargetWorkingCopies, getWorkingCopyMap, isCheckedOut, isCheckedOutByMe, isCheckedOutToSandbox, isViewValid, postProcessOperation, undoCheckoutsMethods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
evaluate, filterAdminLock, filterAssociationType, filterForRedline, filterPermission, filterType, getCadPublishMap, getCommandBean, getFormResult, getModifiableObjects, getServerExcludedItems, getSourceChangeable, postEvaluate, processOperation, setCommandBean, setFormResult
-
Method Details
-
preProcessOperation
Add associations between target objects and the specified part.
Overridden methods must have first line:super.preProcessOperation(mcFilterState)
Supported API: true- Overrides:
preProcessOperationin classAbstractPartUsageFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
validateFormSubmission
public UIValidationResult validateFormSubmission(UIValidationCriteria validationCriteria) throws WTException Implementation used for Add Part Usage operation of the Mass Change wizard. This will validate the specified Quantity/Unit pair from the client and will return a UIValidationStatus.DENIED if an error occurs.
Supported API: true- Specified by:
validateFormSubmissionin interfaceMassChangeFilterDelegate- Overrides:
validateFormSubmissionin classAbstractPartUsageFilterDelegate- Parameters:
validationCriteria- - UIValidationCriteria object that holds client data- Returns:
- UIValidationResult
- Throws:
WTException
-
preEvaluate
Filter out mass change target parts that:- Share the same master as the new child part.
- Violate an association constraint with the new child part.
- Would result in a duplicate line or find number.
Overridden methods must have first line:
super.preEvaluate(mcFilterState)
Supported API: true- Overrides:
preEvaluatein classAbstractPartUsageFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
getHintText
Retrieve the hint text for the Add Part Usage functionality.
Supported API: true- Specified by:
getHintTextin interfaceMassChangeFilterDelegate- Overrides:
getHintTextin classAbstractDefaultFilterDelegate- Returns:
- String - the hint text for the add part usage.
-