com.ptc.windchill.upgrade.directives
Class LightWeightServiceDirective
java.lang.Object
com.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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_
LightWeightServiceDirective
public LightWeightServiceDirective()
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()