com.ptc.windchill.upgrade.directives
Class LightWeightServiceDirective

java.lang.Object
  extended bycom.ptc.windchill.upgrade.directives.LightWeightServiceDirective
All Implemented Interfaces:
UpdateDirective

public class LightWeightServiceDirective
extends Object
implements UpdateDirective


Nested Class Summary
static class LightWeightServiceDirective.Server
          Lightweight service class that we call from this directive in order to wrap the call to the method server migrator with actions that should always be done a particular way, such as disabiling access control and logging entry and exit to the migrator.
 
Field Summary
static String CLASS_ATTRIBUTE_NAME
           
private  String className_
           
private  boolean disableAutomaticTransaction_
           
static String METHOD_ATTRIBUTE_NAME
           
private  String methodName_
           
private static String RESOURCE
           
static String TRANSACTION_ATTRIBUTE_NAME
           
 
Constructor Summary
LightWeightServiceDirective()
           
 
Method Summary
 void asDomOn(Element element)
           
 void execute(DirectiveServices directive_services)
           
private  String getDirectiveName()
           
 void initializeFromDom(Element element)
          Reads from DOMs formatted as described in the class documentation above.
 void setClassName(String class_name)
           
 void setDisableAutomaticTransaction(boolean disable_auto_trans)
           
 void setMethodName(String method_name)
           
 
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

CLASS_ATTRIBUTE_NAME

public static final String CLASS_ATTRIBUTE_NAME
See Also:
Constant Field Values

METHOD_ATTRIBUTE_NAME

public static final String METHOD_ATTRIBUTE_NAME
See Also:
Constant Field Values

TRANSACTION_ATTRIBUTE_NAME

public static final String TRANSACTION_ATTRIBUTE_NAME
See Also:
Constant Field Values

className_

private String className_

methodName_

private String methodName_

disableAutomaticTransaction_

private boolean disableAutomaticTransaction_
Constructor Detail

LightWeightServiceDirective

public LightWeightServiceDirective()
Method Detail

initializeFromDom

public void initializeFromDom(Element element)
                       throws DirectiveIOException
Reads from DOMs formatted as described in the class documentation above.

Specified by:
initializeFromDom in interface UpdateDirective
Throws:
DirectiveIOException - if one(or both)of the attributes is missing or if it is written as a parameterized attribute and contains a syntax error

execute

public void execute(DirectiveServices directive_services)
             throws DirectiveExecutionException
Specified by:
execute in interface UpdateDirective
Throws:
DirectiveExecutionException

setClassName

public void setClassName(String class_name)

setMethodName

public void setMethodName(String method_name)

setDisableAutomaticTransaction

public void setDisableAutomaticTransaction(boolean disable_auto_trans)

asDomOn

public void asDomOn(Element element)
Specified by:
asDomOn in interface UpdateDirective

getDirectiveName

private String getDirectiveName()