Class ChangePartUsageFilterDelegate
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.ChangePartUsageFilterDelegate
- 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 filters out
invalid objects selected prior to performing the operation. Valid objects
associated to the user specified part will have their attributes updated.
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 current registered with the action name
.
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 TypeMethodDescriptionprotected voidfilterQuantity(MassChangeFilterState mcFilterState, boolean isRefDesSpecified) Filter out mass change target objects that have an ineligible quantity.Retrieve the hint text for the Change 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. Would result in a duplicate line or find number. Filtered objects will be marked as excluded.protected voidpreProcessOperation(MassChangeFilterState mcFilterState) Change association attributes between target objects and the specified part.validateFormSubmission(UIValidationCriteria validationCriteria) Implementation used for Edit 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, getSearchChildPart, 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
Change association attributes 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
-
preEvaluate
Filter out mass change target parts that:- Do not actually use the child part or have different line or find number values.
- 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
-
filterQuantity
protected void filterQuantity(MassChangeFilterState mcFilterState, boolean isRefDesSpecified) throws WTException Filter out mass change target objects that have an ineligible quantity. Filtered objects will be marked as excluded. Objects already excluded will not be evaluated.
Supported API: true- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
getHintText
Retrieve the hint text for the Change Part Usage functionality.
Supported API: true- Specified by:
getHintTextin interfaceMassChangeFilterDelegate- Overrides:
getHintTextin classAbstractDefaultFilterDelegate- Returns:
- the hint text for the change part usage.
-
validateFormSubmission
public UIValidationResult validateFormSubmission(UIValidationCriteria validationCriteria) throws WTException Implementation used for Edit 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
-