com.ptc.windchill.enterprise.change2.commands
Class ChangeItemQueryCommands

java.lang.Object
  extended by 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: true


Method Summary
static List<Changeable2> getAffectedData(NmCommandBean cb)
          Get the list of items to show in the affected data table.
static List<WTPartMaster> getAffectedEndItems(NmCommandBean cb)
          Get the list of items to show in the affected end items table.
static List getImplementationPlan(NmCommandBean cb)
          Get the list of change tasks (WTChangeActivity2) to display on the implementation plan table for the current change order (ChangeOrderIfc).
static List<Changeable2> getResultingItems(NmCommandBean cb)
          Get the list of items to show in the resulting items table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

public static List<WTPartMaster> getAffectedEndItems(NmCommandBean cb)
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

public static List getImplementationPlan(NmCommandBean cb)
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.