Class ReferencedByLinkAssociationDelegate
java.lang.Object
com.ptc.windchill.enterprise.massChange.associations.ReferencedByLinkAssociationDelegate
- All Implemented Interfaces:
AssociationDelegate
This delegate is used for managing WTPartReferenceLink associations.
This delegate is registered with the "massChange_referencedBy" selector.
Extendable: true
Supported API: true
This delegate is registered with the "massChange_referencedBy" selector.
<Service context="default" name="com.ptc.windchill.enterprise.associations.AssociationDelegate">
<Option serviceClass="com.ptc.windchill.enterprise.massChange.associations.ReferencedByLinkAssociationDelegate"
selector="massChange_referencedBy"
requestor="null"
cardinality="duplicate"/>
</Service>
Extendable: true
Supported API: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAssociatedObjects(WTCollection targets) Given a collection of objects gets the sub-collection of WTParts that returns a map of the WTParts and the WTDocumentMasters referenced by them.getExistingAssociations(WTCollection targets, Persistable source) Returns all the associated WTPartReferenceLink between given list of WTParts and the WTDocument.newAssociationLink(Persistable roleA, Persistable roleB) Given a WTPart (role A) and a WTDocumentMaster (role B) object this method creates a new WTPartReferenceLink.
-
Method Details
-
getAssociatedObjects
Given a collection of objects gets the sub-collection of WTParts that returns a map of the WTParts and the WTDocumentMasters referenced by them. When extending this method the sub class should perform it's own operation first, where the targets are sub-types or soft types of WTPart in the sub class. The sub class should then call super with the remaining targets that have not been filtered out by the sub class operation.
Supported API: true- Specified by:
getAssociatedObjectsin interfaceAssociationDelegate- Parameters:
targets- a collection of target objects- Returns:
- a map of the WTParts and the referenced by document masters
- Throws:
WTException- See Also:
-
newAssociationLink
Given a WTPart (role A) and a WTDocumentMaster (role B) object this method creates a new WTPartReferenceLink. The sub class should perform it's own operation first when extending this method for sub-types or soft types of either WTPart or WTDocumentMaster. It should then call the super operation only if the sub class operation is not able to create a new binary link from the role A and role B objects.
Supported API: true- Specified by:
newAssociationLinkin interfaceAssociationDelegate- Parameters:
roleA- a WTPartroleB- a WTDocumentMaster- Returns:
- a new WTPartReferenceLink
- Throws:
WTException- See Also:
-
getExistingAssociations
Returns all the associated WTPartReferenceLink between given list of WTParts and the WTDocument. When extending this method the sub class should perform it's own operation first, where the targets are sub-types or soft types of WTPart in the sub class. The sub class should then call super with the remaining targets that have not been filtered out by the sub class operation.
Supported API: true- Specified by:
getExistingAssociationsin interfaceAssociationDelegate- Parameters:
targets- a collection of target objectssource- a WTDocument- Returns:
- a set of WTPartReferenceLink for the WTParts that are associated to the WTDocument.
- Throws:
WTException- See Also:
-