Class AbstractWorkableFilterDelegate
java.lang.Object
com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
- All Implemented Interfaces:
MassChangeFilterDelegate
- Direct Known Subclasses:
AbstractDocumentLinkFilterDelegate,AbstractPartUsageFilterDelegate,com.ptc.windchill.mpml.masschange.filters.AbstractResourceFilterDelegate
This class is responsible for processing the selected mass change operation. Also contains common filter logic for
excluding logic for objects that are not eligible for the mass change operation. Performs operation that are
specific to
Supported API: true
Extendable: true
Workable objects.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
RESOURCE -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfilterCheckout(MassChangeFilterState mcFilterState) Filter out mass change target objects that are checked out by someone other than the current principal or are checked out to a project.protected voidfilterView(MassChangeFilterState mcFilterState) Filter out mass change target objects that are not in the specified view.protected abstract StringGet the constant value for the target item of mass change operationprotected WTSetGet set of mass change target objects checked out by the current principal prior to the mass change operation.protected WTSetGet set of mass change target working copies.protected voidpostProcessOperation(MassChangeFilterState mcFilterState) Check in Workable mass change target objects.protected voidpreEvaluate(MassChangeFilterState mcFilterState) Filter out mass change target objects for the following conditions: Target object is checked out by someone other than the current principal. Target object is checked out to a project. Target object is not in the specified view. Filtered objects will be marked as excluded.protected voidpreProcessOperation(MassChangeFilterState mcFilterState) Check out Workable mass change target objects.Methods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
evaluate, filterAdminLock, filterAssociationType, filterForRedline, filterPermission, filterType, getAssociationLinkTypeMap, getCadPublishableTargets, getCadPublishMap, getCommandBean, getFormResult, getHintText, getInvalidChangeIntent, getModifiableObjects, getServerExcludedItems, getSourceChangeable, postEvaluate, processOperation, setCommandBean, setFormResult, validateFormSubmission
-
Method Details
-
preProcessOperation
Check out Workable mass change target objects.
Overridden methods must have first line:super.preProcessOperation(mcFilterState)
Supported API: true- Overrides:
preProcessOperationin classAbstractDefaultFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
postProcessOperation
Check in Workable mass change target objects. Objects that have been excluded during processing will have their check out undone.
Overridden methods must have last line:super.postProcessOperation(mcFilterState)
Supported API: true- Overrides:
postProcessOperationin classAbstractDefaultFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
getChangeableSourceName
Get the constant value for the target item of mass change operation- Returns:
- field name containing the changeable oid.
Supported API: true
-
preEvaluate
Filter out mass change target objects for the following conditions:- Target object is checked out by someone other than the current principal.
- Target object is checked out to a project.
- Target object is not in the specified view.
Overridden methods must have first line:
super.preEvaluate(mcFilterState)
Supported API: true- Overrides:
preEvaluatein classAbstractDefaultFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
filterCheckout
Filter out mass change target objects that are checked out by someone other than the current principal or are checked out to a project. 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
-
getCheckedOutByMe
Get set of mass change target objects checked out by the current principal prior to the mass change operation.
Supported API: true- Returns:
- Set of original copies (guaranteed non-null, may be empty, cannot be updated).
-
getTargetWorkingCopies
Get set of mass change target working copies. Will only be populated afterpreProcessOperation(MassChangeFilterState)is called.
Supported API: true- Returns:
- Set of all target working copies (guaranteed non-null, may be empty, cannot be updated).
-
filterView
Filter out mass change target objects that are not in the specified view. 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
-