Class RemovePartUsageFilterDelegate
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.RemovePartUsageFilterDelegate
- 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 removes the part usage links for the valid
selected objects based on 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
removePartUsage.
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 Remove Part Usage functionality.protected voidpreEvaluate(MassChangeFilterState mcFilterState) Filter out mass change target parts that do not actually use the child part or have different line or find number values.protected voidpreProcessOperation(MassChangeFilterState mcFilterState) Remove associations between target objects and the specified part.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, getSearchFindNumber, getSearchLineNumber, getUsageLinks, getUsageLinks, isBuildTargets, isSupportedSourceType, queryCadDocs, queryForBranchInfo, setUsageLinksChanged, usageLinksChanged, validateFormSubmission, 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
-
preEvaluate
Filter out mass change target parts that do not actually use the child part or have different line or find number values. Filtered objects will be marked as excluded. Objects already excluded will not be evaluated.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
-
preProcessOperation
Remove 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
-
getHintText
Retrieve the hint text for the Remove Part Usage functionality.
Supported API: true- Specified by:
getHintTextin interfaceMassChangeFilterDelegate- Overrides:
getHintTextin classAbstractDefaultFilterDelegate- Returns:
- String - the hint text for the remove part usage.
-