com.ptc.windchill.esi.ecn
Class ESIChangeOrderFactory

java.lang.Object
  extended bycom.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


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
ESIChangeOrderFactory()
           
 
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
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

ESIChangeOrderFactory

public ESIChangeOrderFactory()
Method Detail

create

public WTChangeOrder2 create(WTChangeRequest2 changeRequest)
                      throws 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:
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 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:
ESIException