Class AddDocumentLinkFilterDelegate
java.lang.Object
com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AbstractDocumentLinkFilterDelegate
com.ptc.windchill.enterprise.massChange.filters.AddDocumentLinkFilterDelegate
- All Implemented Interfaces:
MassChangeFilterDelegate
This filter delegate determines whether the selected objects are eligible for
the mass change operation for the selected document. The AssociationDelegate
registered for the selected association type ("Referenced By", "Described
By", or "Passive") which is used to filter or create the appropriate
association links for the selected objects and the selected document. The
supported document types are wt.doc.WTDocument and wt.epm.EPMDocument.
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 registered with the action name
addDocumentUsage
Extendable: true
Supported API: true
- See Also:
-
Field Summary
Fields 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 voidfilterAlreadyRelated(MassChangeFilterState mcFilterState) Filter out mass change target parts that are already related to the specified document.Retrieve the hint text for the Add Document functionality.protected voidpreEvaluate(MassChangeFilterState mcFilterState) Filter out mass change target parts that: Already related to the specified document. Violate an association constraint with the document. Filtered objects will be marked as excluded.protected voidpreProcessOperation(MassChangeFilterState mcFilterState) Create new associations between target objects and the specified document.Methods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractDocumentLinkFilterDelegate
generateHintText, getAssociationType, getChangeableSourceName, getRelatedDocument, isReferencedByLink, validateFormSubmissionMethods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
checkin, filterCheckout, filterView, getCheckedOutByMe, getFilterView, getOriginalCopyMap, getSourceChangeable, getTargetWorkingCopies, getWorkingCopyMap, isCheckedOut, isCheckedOutByMe, isCheckedOutToSandbox, isSupportedSourceType, isViewValid, postProcessOperation, undoCheckoutsMethods inherited from class com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
evaluate, filterAdminLock, filterAssociationType, filterForRedline, filterPermission, filterType, getCadPublishableTargets, getCadPublishMap, getCommandBean, getFormResult, getModifiableObjects, getServerExcludedItems, getSourceChangeable, postEvaluate, processOperation, setCommandBean, setFormResult
-
Method Details
-
preProcessOperation
Create new associations between target objects and the specified document.
Overridden methods must have first line:super.preProcessOperation(mcFilterState)
Supported API: true- Overrides:
preProcessOperationin classAbstractWorkableFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
getHintText
Retrieve the hint text for the Add Document functionality.
Supported API: true- Specified by:
getHintTextin interfaceMassChangeFilterDelegate- Overrides:
getHintTextin classAbstractDefaultFilterDelegate- Returns:
- String - the hint text for the add document usage.
-
preEvaluate
Filter out mass change target parts that:- Already related to the specified document.
- Violate an association constraint with the document.
Overridden methods must have first line:
super.preEvaluate(mcFilterState)
Supported API: true- Overrides:
preEvaluatein classAbstractWorkableFilterDelegate- Parameters:
mcFilterState- MassChangeFilterState object populated with mass change target objects.- Throws:
WTException
-
filterAlreadyRelated
Filter out mass change target parts that are already related to the specified document. 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
-