|
|||||||||||
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.ixb.publicforhandlers.ExpImpForVersionedObject
Abstract class, most of standard export/import handlers extend.
This class implements some typical model of export/import process.
Supported API: true
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
protected String |
actionName
|
private Actor |
actor
|
protected static boolean |
DEBUG
|
private boolean |
ignoreObject
|
protected boolean |
masterIsNew
|
static String |
NUMBER
This method is used to get the Master of existing object, or return null if the object doesn't exist |
private String |
obId
|
protected Vector |
targetObjs
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForVersionedObject()
|
Method Summary | |
Versioned |
createEmptyObject(IxbElement fileXML,
Importer importer,
Mastered master)
For restore operation we should use the existing master without creating a new master This method will eventually be made abstract to enforce sub class overwriting. |
abstract Versioned |
createNewObject(IxbElement fileXML,
Importer importer)
|
Object |
createObject(IxbElement fileXML,
Importer importer)
Creates new instance of Windchill object. |
void |
finalizeImport(Importer importer)
Called in the end of the whole ipport process to execute any import process finalization. |
Object |
findAmongExistingObjects(IxbElement fileXML,
Importer importer)
Finds among existing objects. |
private Object |
findAmongExistingObjectsForImport(IxbElement fileXML,
Importer importer)
Implements typical way of finding whether object from given XML file exists already in Windchill database for import application. |
String |
getActionName()
|
Folder |
getCheckoutFolder(String wsName,
WTContainerRef target)
Helper method to be used when Import/Export as Checked out object. |
Mastered |
getMaster(IxbElement fileXML,
Importer importer)
|
Mastered |
getMaster(IxbElement fileXML,
Importer importer,
WTContainerRef containerRef)
|
String |
getObjectClassName()
|
String |
getObjectMasterClassName()
|
Object |
importElement(IxbElement fileXML,
Importer importer)
Implements typical import process Supported API: true |
void |
outputLog(Object ob,
Importer importer)
Output log for imported object. |
void |
previewElement(IxbElement fileXML,
Importer importer)
Preview XML element in context given by importer parameter. |
private static void |
printout(String s)
|
void |
removeAllLinks(Object ob)
|
Object |
storeObject(Object object,
IxbElement fileXML,
Importer importer)
That is the general template how to store object. |
protected void |
storeObjectsBirthUfid(Object object,
IxbElement fileXML,
Importer importer)
Store Ufid from XML file (if any) in the mapping table. |
Object |
storeVersionedObject(Object object,
IxbElement fileXML,
Importer importer)
Stores object into database. |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, exportObject, finalizeImportObject, getRootTag, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
checkConflicts, finalizeCheckConflicts, finalizeExport, getAdditionalImportPriority, getImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String actionName
private Actor actor
protected boolean masterIsNew
protected static boolean DEBUG
protected Vector targetObjs
private boolean ignoreObject
private String obId
public static String NUMBER
Constructor Detail |
public ExpImpForVersionedObject()
Method Detail |
public String getActionName()
public Object importElement(IxbElement fileXML, Importer importer) throws WTException
importElement
in interface ElementImporter
importElement
in class ClassExporterImporterTemplate
fileXML
- importer
- The Importer
instance that represents the context of the import operation.
WTException
public void outputLog(Object ob, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
outputLog
in interface ElementImporter
outputLog
in class ClassExporterImporterTemplate
WTException
public Object storeVersionedObject(Object object, IxbElement fileXML, Importer importer) throws WTException
WTException
public void removeAllLinks(Object ob) throws WTException
WTException
public abstract Versioned createNewObject(IxbElement fileXML, Importer importer) throws WTException
WTException
public Versioned createEmptyObject(IxbElement fileXML, Importer importer, Mastered master) throws WTException
fileXML
- the xmlimporter
- importermaster
- the master object
WTException
public Object createObject(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
createObject
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public Object storeObject(Object object, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
storeObject
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
WTException
public void finalizeImport(Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
finalizeImport
in interface ElementImporter
finalizeImport
in class ClassExporterImporterTemplateGeneral
importer
- The Importer
instance that represents the context of the import operation.
WTException
private static void printout(String s)
public void previewElement(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
previewElement
in interface ElementImporter
previewElement
in class ClassExporterImporterTemplateGeneral
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public Object findAmongExistingObjects(IxbElement fileXML, Importer importer) throws WTException
Different mechanisms are used (UFID vs. OID) to locate the existing object based upon the application context (import vs. restore).
findAmongExistingObjects
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
private Object findAmongExistingObjectsForImport(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
WTException
public String getObjectClassName()
public String getObjectMasterClassName()
public Mastered getMaster(IxbElement fileXML, Importer importer) throws WTException
WTException
public Mastered getMaster(IxbElement fileXML, Importer importer, WTContainerRef containerRef) throws WTException
WTException
public Folder getCheckoutFolder(String wsName, WTContainerRef target) throws WTException
wsName
- Is ignored (to be used for EPM ch-out)target
- Is ignored (to be used for EPM ch-out)
WTException
protected void storeObjectsBirthUfid(Object object, IxbElement fileXML, Importer importer) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |