com.ptc.windchill.esi.ecn
Class ESIChangeOrderFactory

java.lang.Object
  extended by com.ptc.windchill.esi.ecn.ESIChangeOrderFactory

public class ESIChangeOrderFactory
extends Object

This class is responsible for creating and persisting a change order.

Supported API: true

Extendable: true


Method Summary
 WTChangeOrder2 create(WTChangeRequest2 changeRequest)
          Create and persist a new change order associated with the argument.
 WTChangeOrder2 create(WTChangeRequest2 changeRequest, WTContainerRef wcRef)
          Create and persist a new change order associated with the argument.
protected  String getDescription()
          Return the description to be given to the new change order.The value is localized from EsiResource.ESI_CHANGE_ORDER_DESC.
protected  String getName()
          Return the name to be given to the new change order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public WTChangeOrder2 create(WTChangeRequest2 changeRequest)
                      throws com.ptc.windchill.esi.utl.ESIException
Create and persist a new change order associated with the argument.

Supported API: true

Parameters:
changeRequest - The change request that initiated the to-be-created change order.
Returns:
WTChangeOrder2
Throws:
com.ptc.windchill.esi.utl.ESIException

getName

protected String getName()
Return the name to be given to the new change order. The value is localized from EsiResource.ESI_CHANGE_ORDER_NAME.

Supported API: true

Returns:
String

getDescription

protected String getDescription()
Return the description to be given to the new change order.The value is localized from EsiResource.ESI_CHANGE_ORDER_DESC.

Supported API: true

Returns:
String

create

public WTChangeOrder2 create(WTChangeRequest2 changeRequest,
                             WTContainerRef wcRef)
                      throws com.ptc.windchill.esi.utl.ESIException
Create and persist a new change order associated with the argument.

Supported API: true

Parameters:
changeRequest - The change request that initiated the to-be-created change order.
wcRef - The conatiner ref , to which the order would be associated with.
Returns:
WTChangeOrder2
Throws:
com.ptc.windchill.esi.utl.ESIException