Class DescribedByLinkAssocationDelegate

java.lang.Object
com.ptc.windchill.enterprise.massChange.associations.DescribedByLinkAssocationDelegate
All Implemented Interfaces:
AssociationDelegate

public class DescribedByLinkAssocationDelegate extends Object implements AssociationDelegate
This delegate is used for managing WTPartDescribeLink associations.

This delegate is registered with the "massChange_describedBy" selector.


 <Service context="default" name="com.ptc.windchill.enterprise.associations.AssociationDelegate">
   <Option serviceClass="com.ptc.windchill.enterprise.massChange.associations.DescribedByLinkAssocationDelegate"
              selector="massChange_describedBy"
              requestor="null"
              cardinality="duplicate"/>
 </Service>
 


Extendable: true

Supported API: true
See Also:
  • Method Details

    • getAssociatedObjects

      public WTKeyedMap getAssociatedObjects(WTCollection targets) throws WTException
      Given a collection of objects returns a map of the WTParts to their described by WTDocuments (non-WTPart objects are ignored). 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:
      getAssociatedObjects in interface AssociationDelegate
      Parameters:
      targets - a collection of target objects
      Returns:
      a map of the target objects and the associated source objects
      Throws:
      WTException
      See Also:
    • newAssociationLink

      public BinaryLink newAssociationLink(Persistable roleA, Persistable roleB) throws WTException
      Given a WTPart (role A) and a WTDocument (role B) object creates a WTPartDescribeLink. The sub class should perform it's own operation first when extending this method for sub-types or soft types of either WTPart or WTDocument. 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:
      newAssociationLink in interface AssociationDelegate
      Parameters:
      roleA - a WTPart
      roleB - a WTDocument
      Returns:
      a new WTPartDescribeLink
      Throws:
      WTException
      See Also:
    • getExistingAssociations

      public WTSet getExistingAssociations(WTCollection targets, Persistable source) throws WTException
      Returns all the associated WTPartDescribeLink 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:
      getExistingAssociations in interface AssociationDelegate
      Parameters:
      targets - a collection of target objects
      source - a WTDocument
      Returns:
      a set of WTPartDescribeLink for the WTParts that are associated to the WTDocument.
      Throws:
      WTException
      See Also: