wt.ixb.tuner
Class ExportActionHelper
java.lang.Object
wt.ixb.tuner.ExportActionHelper
- public class ExportActionHelper
- extends Object
Method Summary |
static void |
applyAction(IxbDocument fileXML,
String action,
boolean override)
|
static Folder |
getCheckoutFolder(Exporter exporter,
Object obj)
|
private static String |
getExportAction(Exporter exporter,
Object object,
IxbDocument fileXML)
|
(package private) static String |
getExportActionForObject(Object object,
Templates template,
IxbDocument fileXml)
Gets export action from export policy Source exportSource. |
private static String |
getExportActionFromSettings(IxbDocument fileXml,
Templates template)
Gets export action from export policy Source exportSource. |
static void |
performPostExportAction(ClassExporterImporter handler,
Exporter exporter,
Object object,
IxbDocument fileXML)
|
static void |
performPreExportAction(ClassExporterImporter handler,
Exporter exporter,
Object object)
|
(package private) static void |
PP(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHECK_OUT_CMD
public static final String CHECK_OUT_CMD
- See Also:
- Constant Field Values
LOCK_CMD
public static final String LOCK_CMD
- See Also:
- Constant Field Values
NO_ACTION_CMD
public static final String NO_ACTION_CMD
- See Also:
- Constant Field Values
SYSTEM_ACTION_CMD
public static final String SYSTEM_ACTION_CMD
- See Also:
- Constant Field Values
EXPORT_CHECKOUT_CMD
public static final String EXPORT_CHECKOUT_CMD
- See Also:
- Constant Field Values
DEFAULT_EXPORT_WS_NAME
public static String DEFAULT_EXPORT_WS_NAME
defaultTemplate
private static Templates defaultTemplate
ExportActionHelper
public ExportActionHelper()
getExportActionFromSettings
private static String getExportActionFromSettings(IxbDocument fileXml,
Templates template)
throws WTException
- Gets export action from export policy Source exportSource. Export policy is represented as XSL file
and XSLT is used to calculate the action for the given object.
- Parameters:
fileXml
- IxbDocument representing the object which should be exportedtemplate
- Templates either from client settings or system default Templates
- Returns:
- name of appropriate action, e.g. Checkout, Lock
- Throws:
WTException
getExportActionForObject
static String getExportActionForObject(Object object,
Templates template,
IxbDocument fileXml)
throws WTException
- Gets export action from export policy Source exportSource. Export policy is represented as XSL file
and XSLT is used to calculate the action for the given object. We might accept that the policy rule is
presented in the *.xml format.
- Parameters:
object
- The object to be exportedfileXml
- IxbDocument representing the object which should be exported.
This can be null. If it is null, a "pseudo-xml" IxbDocument is constructed based on the object and export action requirements
- Returns:
- name of appropriate action, e.g. Checkout, Lock
- Throws:
WTException
getExportAction
private static String getExportAction(Exporter exporter,
Object object,
IxbDocument fileXML)
throws WTException
- Throws:
WTException
applyAction
public static void applyAction(IxbDocument fileXML,
String action,
boolean override)
throws WTException
- Throws:
WTException
performPreExportAction
public static void performPreExportAction(ClassExporterImporter handler,
Exporter exporter,
Object object)
throws WTException
- Throws:
WTException
performPostExportAction
public static void performPostExportAction(ClassExporterImporter handler,
Exporter exporter,
Object object,
IxbDocument fileXML)
throws WTException
- Throws:
WTException
getCheckoutFolder
public static Folder getCheckoutFolder(Exporter exporter,
Object obj)
throws WTException
- Throws:
WTException
PP
static void PP(String s)