Class ChangeItemQueryCommands

java.lang.Object
com.ptc.windchill.enterprise.change2.commands.ChangeItemQueryCommands
All Implemented Interfaces:
RemoteAccess

public class ChangeItemQueryCommands extends Object implements RemoteAccess
Query class used to obtain the default contents of the change tables, such as affected end items, affected objects, resulting items, used by the information pages and the wizards.

Supported API: true

Extendable: false
  • Method Details

    • getAffectedData

      public static List<Changeable2> getAffectedData(NmCommandBean cb)
      Get the list of items to show in the affected data table.

      Supported API: true
      Parameters:
      cb - The command bean for the current context
      Returns:
      The list of changeables to display in the table.
    • getResultingItems

      public static List<Changeable2> getResultingItems(NmCommandBean cb)
      Get the list of items to show in the resulting items table. The action oid of the command bean should be a ChangeActivityIfc and mode should not be create

      Supported API: true
      Parameters:
      cb - The command bean for the current client
      Returns:
      The list of changeables to display in the table.
    • getAffectedEndItems

      @Deprecated public static List<WTPartMaster> getAffectedEndItems(NmCommandBean cb)
      Deprecated.
      Get the list of items to show in the affected end items table. Only works in the case that the action oid of cb is a ChangeIssueIfc or a ChangeRequestIfc

      Supported API: true
      Parameters:
      cb - The command bean for the current client
      Returns:
      The list of WTPartMasters to display in the table.
    • getImplementationPlan

      @Deprecated public static List getImplementationPlan(NmCommandBean cb)
      Deprecated.
      Get the list of change tasks (WTChangeActivity2) to display on the implementation plan table for the current change order (ChangeOrderIfc). If the context of the action oid is for an existing change order, the list of change task oids will be retrieved from the change service. Otherwise, if this is for a new change order, a new default change task oid will be created and returned. An empty list will be returned, if the context is not for a change order.

      Supported API: true
      Parameters:
      cb - The command bean that contains the action oid.
      Returns:
      The list of change tasks associated with the change order.
    • processLinks

      public static Map<WTReference,BinaryLink> processLinks(QueryResult qr) throws WTException
      Given a query result of binary links generates a map of binary links and the changeable role object references.

      Supported API: true
      Parameters:
      qr - Query result of Change binary links.
      Returns:
      The Map of binary link class attributes.
      Throws:
      WTException