com.ptc.windchill.esi.ecn
Class ESIChangeHeaderRenderer

java.lang.Object
  extended bycom.ptc.windchill.esi.rnd.ResponseRendererImpl
      extended bycom.ptc.windchill.esi.ecn.ESIChangeHeaderRenderer
All Implemented Interfaces:
ChangeHeaderRenderer, ResponseRenderer, Serializable

public class ESIChangeHeaderRenderer
extends ResponseRendererImpl
implements ChangeHeaderRenderer, Serializable

Manages the generation of an ECN header. This is the default implementation of ChangeHeaderRenderer.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private  String auth
           
private  WTChangeOrder2 changeOrder
           
private static String CLASSNAME
           
protected static String QUERY_TASK
           
private static String RESOURCE
           
private  Collection targets
           
private  TaskHelper taskHelper
           
private  ESITransactionUtility txnUtility
           
private  String wcAdapter
           
 
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
XML_META_NAME
 
Constructor Summary
ESIChangeHeaderRenderer()
           
 
Method Summary
protected  Element adjustElement(Element element, String group, WTChangeOrder2 changeOrder, Collection targets)
          Allow subclasses to fix the contents of an element.
protected  void buildGroups()
          Map the input and save the resulting group in the VDB

Supported API: false
protected  String getAuth()
          Gets the value of the attribute: auth; The authentication to use when invoking a query task.
protected  Element getQueryObjectElement(WTChangeOrder2 changeOrder)
           
protected  Collection getTargets()
          Gets the value of the attribute: targets; A collection of ESITarget objects that are of interest to the renderer.
protected  String getWcAdapter()
          Gets the value of the attribute: wcAdapter; The name of the Windchill adapter where query tasks will execute.
private  boolean hasReleased(ESITarget target)
          check if the object has been released successfully.
protected  Element mapElement(String groupName, Element element, WTChangeOrder2 changeOrder, Collection targets)
           
 void setData(WTChangeOrder2 chgOrder, Collection targets, String auth, String wcAdapter)
          Provide the data required for the renderer to operate properly.
protected  void validate()
          Make sure targets and changeOrder attribute are OK.
 
Methods inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
adjustEffectivities, adjustObjectID, adjustTargets, buildUfidString, getAttsFromMapFile, getBuilder, getEffectivityHandler, getGroupInfo, getMap, getMapInfo, getTargetsFromAssns, invokeQueryTask, logException, mapElement, mapObject, render, setBuilder, setEffectivityHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ptc.windchill.esi.rnd.ResponseRenderer
render
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

targets

private Collection targets

auth

private String auth

wcAdapter

private String wcAdapter

changeOrder

private WTChangeOrder2 changeOrder

QUERY_TASK

protected static final String QUERY_TASK

taskHelper

private TaskHelper taskHelper

txnUtility

private ESITransactionUtility txnUtility
Constructor Detail

ESIChangeHeaderRenderer

public ESIChangeHeaderRenderer()
Method Detail

getTargets

protected Collection getTargets()
Gets the value of the attribute: targets; A collection of ESITarget objects that are of interest to the renderer.

Supported API: true

Returns:
Collection

getAuth

protected String getAuth()
Gets the value of the attribute: auth; The authentication to use when invoking a query task.

Supported API: true

Returns:
String

getWcAdapter

protected String getWcAdapter()
Gets the value of the attribute: wcAdapter; The name of the Windchill adapter where query tasks will execute.

Supported API: true

Returns:
String

setData

public void setData(WTChangeOrder2 chgOrder,
                    Collection targets,
                    String auth,
                    String wcAdapter)
             throws ESIRendererException
Provide the data required for the renderer to operate properly.

Supported API: true

Specified by:
setData in interface ChangeHeaderRenderer
Parameters:
chgOrder - The change order to be rendered.
targets - A collection of ESITarget objects that are of interest to the renderer.
auth - The authentication to use when invoking a query task.
wcAdapter - The name of the Windchill adapter where query tasks will execute.
Throws:
ESIRendererException

validate

protected void validate()
                 throws ESIRendererException
Make sure targets and changeOrder attribute are OK.

Supported API: false

Specified by:
validate in class ResponseRendererImpl
Throws:
ESIRendererException

buildGroups

protected void buildGroups()
                    throws ESIRendererException
Map the input and save the resulting group in the VDB

Supported API: false

Specified by:
buildGroups in class ResponseRendererImpl
Throws:
ESIRendererException

adjustElement

protected Element adjustElement(Element element,
                                String group,
                                WTChangeOrder2 changeOrder,
                                Collection targets)
                         throws ESIRendererException
Allow subclasses to fix the contents of an element.

Supported API: true

Parameters:
element -
group -
changeOrder -
targets - Collection of ESITarget objects.
Returns:
Element
Throws:
ESIRendererException

mapElement

protected Element mapElement(String groupName,
                             Element element,
                             WTChangeOrder2 changeOrder,
                             Collection targets)
                      throws ESIRendererException
Throws:
ESIRendererException

getQueryObjectElement

protected Element getQueryObjectElement(WTChangeOrder2 changeOrder)
                                 throws WTException
Throws:
WTException

hasReleased

private boolean hasReleased(ESITarget target)
                     throws ESIRendererException
check if the object has been released successfully.

Throws:
ESIRendererException