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

java.lang.Object
  extended by com.ptc.windchill.enterprise.change2.commands.RelatedChangesQueryCommands
All Implemented Interfaces:
RemoteAccess

public class RelatedChangesQueryCommands
extends Object
implements RemoteAccess

Gets table row data for the related changes table given various types of context objects.

Supported API: true

Extendable: false

See Also:
ChangeService2

Method Summary
static List<ChangeItemIfc> getAssociatedChanges(NmCommandBean cb, Class c)
          Using the client data from change wizards returns the appropriate related changes.
static QueryResult getRelatedAffectingChangeNotices(Changeable2 changeable)
          Returns affected by change notices related to the given changeable.
static QueryResult getRelatedChangeNotices(ChangeRequestIfc changeRequest)
          Returns change notices related to the given change request.
static QueryResult getRelatedChangeRequests(Changeable2 changeable)
          Returns changes requests related to the given changeable.
static QueryResult getRelatedChangeRequests(ChangeIssueIfc changeIssue)
          Returns changes requests related to the given problem report.
static QueryResult getRelatedChangeRequests(ChangeOrderIfc changeNotice)
          Returns change requests related to the given change notice.
static QueryResult getRelatedProblemReports(Changeable2 changeable)
          Returns problem reports related to the given changeable.
static QueryResult getRelatedProblemReports(ChangeRequestIfc changeRequest)
          Returns problem reports related to the given change request.
static QueryResult getRelatedResultingChangeNotices(Changeable2 changeable)
          Returns resulting from change notices related to the given changeable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRelatedProblemReports

public static QueryResult getRelatedProblemReports(Changeable2 changeable)
                                            throws WTException
Returns problem reports related to the given changeable.

Supported API: true

Parameters:
changeable -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeIssueIfc, Changeable2

getRelatedChangeRequests

public static QueryResult getRelatedChangeRequests(Changeable2 changeable)
                                            throws WTException
Returns changes requests related to the given changeable.

Supported API: true

Parameters:
changeable -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeRequestIfc, Changeable2

getRelatedAffectingChangeNotices

public static QueryResult getRelatedAffectingChangeNotices(Changeable2 changeable)
                                                    throws WTException
Returns affected by change notices related to the given changeable.

Supported API: true

Parameters:
changeable -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeOrderIfc, Changeable2

getRelatedResultingChangeNotices

public static QueryResult getRelatedResultingChangeNotices(Changeable2 changeable)
                                                    throws WTException
Returns resulting from change notices related to the given changeable.

Supported API: true

Parameters:
changeable -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeOrderIfc, Changeable2

getRelatedChangeRequests

public static QueryResult getRelatedChangeRequests(ChangeIssueIfc changeIssue)
                                            throws WTException
Returns changes requests related to the given problem report.

Supported API: true

Parameters:
changeIssue -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeRequestIfc, ChangeIssueIfc

getRelatedProblemReports

public static QueryResult getRelatedProblemReports(ChangeRequestIfc changeRequest)
                                            throws WTException
Returns problem reports related to the given change request.

Supported API: true

Parameters:
changeRequest -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeIssueIfc, ChangeRequestIfc

getRelatedChangeNotices

public static QueryResult getRelatedChangeNotices(ChangeRequestIfc changeRequest)
                                           throws WTException
Returns change notices related to the given change request.

Supported API: true

Parameters:
changeRequest -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeOrderIfc, ChangeRequestIfc

getRelatedChangeRequests

public static QueryResult getRelatedChangeRequests(ChangeOrderIfc changeNotice)
                                            throws WTException
Returns change requests related to the given change notice.

Supported API: true

Parameters:
changeNotice -
Returns:
QueryResult
Throws:
WTException
See Also:
ChangeRequestIfc, ChangeOrderIfc

getAssociatedChanges

public static List<ChangeItemIfc> getAssociatedChanges(NmCommandBean cb,
                                                       Class c)
                                                throws WTException
Using the client data from change wizards returns the appropriate related changes. The following cases are accounted for: A. Create Change Request Wizard that is launch from a Problem Report or Variance. B. Create Change Notice Wizard that is launch from a Change Request. C. Edit Change Request Wizard, getting the existing related Problem Reports or Variances. D. Edit Change Notice Wizard, getting the existing related Change Requests.

Supported API: true

Parameters:
cb - The client data.
c - The class for the change object that is getting created or modified in a wizard.
Returns:
A list of related change objects.
Throws:
WTException - when an error occurs in getting the related changes.
See Also:
ChangeRequestIfc, ChangeOrderIfc