|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.pdmlink.ProductTemplateIXHandler
This handler updates the project seed object. Changes to organization name are not allowed, although an organization must exist.
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private static String |
_rb
|
private List |
fileNameList
|
private static int[] |
FROM_INDICES
|
private static PDMProductConstants.ProductConfigInfo |
projConfigTags
|
private static String |
SYSTEM_FOLDER
|
private static PDMProductConstants.ProductTemplateInfo |
tags
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ProductTemplateIXHandler()
|
Method Summary | |
private void |
cleanupContentDirectory(String contName,
String tmplName)
|
Object |
createObject(IxbElement topElement,
Importer imp)
Create a project template object. |
void |
exportObject(Object seed,
Exporter exporter)
Export of a project template is not supported at this time. |
Object |
finalizeImportObject(boolean isNew,
Object origpt,
IxbElement elem,
Importer imp)
Finalize import object is called when the project template already exists. |
Object |
findAmongExistingObjects(IxbElement elem,
Importer imp)
Reads the data from the |
private File |
generateOutputDir(String orgName,
String templateName)
|
private Tuner |
generateTuner(String orgName,
String templateName)
This method generates the appropriate tuner for use in transforming a foreign project config into a a local project config. |
int |
getImportPriority()
Needs to be implemented, but the meaning of the return value has never been documented. |
private IxbElement |
getLobTag(IxbElement topElement)
|
private DefaultWTContainerTemplate |
importLob(DefaultWTContainerTemplate tmpl,
IxbElement topElement,
Importer imp)
|
private DefaultWTContainerTemplate |
importTextLob(DefaultWTContainerTemplate tmpl,
IxbElement xmlLob)
|
private DefaultWTContainerTemplate |
importXMLFromLoadPath(DefaultWTContainerTemplate tmpl,
IxbElement elem)
|
private DefaultWTContainerTemplate |
importXMLFromZipEntry(DefaultWTContainerTemplate tmpl,
IxbElement zipEntry,
Importer imp)
|
private DefaultWTContainerTemplate |
populateAttributes(DefaultWTContainerTemplate tmpl,
IxbElement topElement,
Importer imp)
|
private DefaultWTContainerTemplate |
populateAttributes(IxbElement topElement,
Importer imp)
|
private void |
storeHashReference(IxbElement elem,
WTContainerTemplate pt,
Importer imp)
|
Object |
storeObject(Object obj,
IxbElement elem,
Importer imp)
That is the general template how to store object. |
private void |
writeContentToFileSystem(String orgName,
String tmplName,
IxbElement currTemplate,
ImportHandler ih)
|
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, getRootTag, importElement, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
checkConflicts, finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String SYSTEM_FOLDER
private static final String _rb
private static final PDMProductConstants.ProductTemplateInfo tags
private static final PDMProductConstants.ProductConfigInfo projConfigTags
private static final int[] FROM_INDICES
private List fileNameList
Constructor Detail |
public ProductTemplateIXHandler()
Method Detail |
public void exportObject(Object seed, Exporter exporter) throws WTException
exportObject
in interface ClassExporter
exportObject
in class ClassExporterImporterTemplate
seed
- exporter
- The Exporter
instance that represents the context of the export operation.
WTException
public Object createObject(IxbElement topElement, Importer imp) throws WTException
createObject
in class ClassExporterImporterTemplate
topElement
- : IxbElement, a node in the XML tree which correpsonds to the imp
- : Importer the application which is controlling the import process.
WTException
private DefaultWTContainerTemplate populateAttributes(IxbElement topElement, Importer imp) throws WTException
WTException
private DefaultWTContainerTemplate populateAttributes(DefaultWTContainerTemplate tmpl, IxbElement topElement, Importer imp) throws WTException
WTException
private DefaultWTContainerTemplate importLob(DefaultWTContainerTemplate tmpl, IxbElement topElement, Importer imp) throws WTException
WTException
private DefaultWTContainerTemplate importXMLFromZipEntry(DefaultWTContainerTemplate tmpl, IxbElement zipEntry, Importer imp) throws WTException
WTException
private void cleanupContentDirectory(String contName, String tmplName)
private void writeContentToFileSystem(String orgName, String tmplName, IxbElement currTemplate, ImportHandler ih) throws WTException
WTException
private DefaultWTContainerTemplate importTextLob(DefaultWTContainerTemplate tmpl, IxbElement xmlLob) throws WTException
WTException
private IxbElement getLobTag(IxbElement topElement) throws WTException
WTException
private DefaultWTContainerTemplate importXMLFromLoadPath(DefaultWTContainerTemplate tmpl, IxbElement elem) throws WTException
WTException
public int getImportPriority() throws WTException
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public Object findAmongExistingObjects(IxbElement elem, Importer imp) throws WTException
findAmongExistingObjects
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
public Object finalizeImportObject(boolean isNew, Object origpt, IxbElement elem, Importer imp) throws WTException
finalizeImportObject
in class ClassExporterImporterTemplate
WTException
private void storeHashReference(IxbElement elem, WTContainerTemplate pt, Importer imp) throws WTException
WTException
private File generateOutputDir(String orgName, String templateName) throws WTException
WTException
private Tuner generateTuner(String orgName, String templateName) throws WTException
WTException
public Object storeObject(Object obj, IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
storeObject
in class ClassExporterImporterTemplate
obj
- elem
- imp
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |