|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.ixb.publicforapps.ExpImporter
wt.ixb.publicforapps.Importer
public class Importer
Importer is the container representing import handlers for the context
of the import operation.
Importer instance is not stateless and there should be only one instance
for each importer request.
To construct an instance of Importer use IxbHelper.newImport()
with the desired signatures.
There are two major categories of methods in this class to execute import:
finalizeImport really performs all work
related to the import: it checks the information
from XML files for potential conflicts and then creates Windchill
objects.
| Field Summary |
|---|
| Fields inherited from class wt.ixb.publicforapps.ExpImporter |
|---|
attributeExporterImporterManager, generalContext, ixbHandlersManager |
| Method Summary | |
|---|---|
void |
addToModifiedObjects(Object oldId,
Object newId)
add new identity of imported object in the hashtable Supported API: true |
IxbDocument |
doImport(InputStream docStream)
Provides information for import. |
IxbDocument |
doImport(IxbDocument doc)
Provides information for import. |
IxbDocument |
doImport(String docName,
String docTag)
Provides information for import. |
void |
finalizeImport()
Really performs all work, especially the real import, related to the import based on the information, provided by previous calls of doImport methods: Checks the information from XML files for potential conflicts Creates Windchill objects Supported API: true |
void |
finishImport()
Call finalizeImport method to really performs all work, especially the real import, related to the import based on the information, provided by previous calls of doImport methods. |
IxbElement |
getElementForEndOfLink(IxbElement endXML,
String endId)
A link always has two ends, each end is represented by its ufid in the link's XML file. |
WTContainerRef |
getTargetContainerRef()
Returns the container reference where the import is launched. |
void |
importElement(IxbElement doc)
ATTENTION! This method can not be used directly from application. |
void |
logMessage(String resourceBundle,
String messageKey,
Object[] textInserts)
Sends log message to export/import application Supported API: true |
void |
logMessage(String resourceBundle,
String messageKey,
Object[] textInserts,
int importanceLevel)
Sends log message to export/import application Supported API: true |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public IxbDocument doImport(InputStream docStream)
throws WTException
docStream - InputStream representing content of XML document to de imported
WTException
public IxbDocument doImport(IxbDocument doc)
throws WTException
doc - IxbDocument representing content of XML document to de imported
WTException
public IxbDocument doImport(String docName,
String docTag)
throws WTException
docName - identifier of XML document to be imported. Application import handler must be able to return the XML document based on this identifierdocTag - tag of root element in this XML document.
WTException
public void finalizeImport()
throws WTException
WTException
public void logMessage(String resourceBundle,
String messageKey,
Object[] textInserts)
throws WTException
logMessage in class ExpImporterresourceBundle - messageKey - textInserts -
WTException
public void logMessage(String resourceBundle,
String messageKey,
Object[] textInserts,
int importanceLevel)
throws WTException
logMessage in class ExpImporterresourceBundle - messageKey - textInserts - importanceLevel -
WTException
public void finishImport()
throws WTException
WTException
public void importElement(IxbElement doc)
throws WTException
WTException
public void addToModifiedObjects(Object oldId,
Object newId)
oldId - identity of the object in the XML file,such as ufid, local Id... or it can be the object itselfnewId - identity of the object that is newly created in the system,such as ufid, local Id... or it
canbe the object itself
public IxbElement getElementForEndOfLink(IxbElement endXML,
String endId)
throws WTException
endXML - the original IxbElement in the XML file that represents one end of a linkendId - the original id (ufid or localId of the end in the XML file (A.K.A. oldId in htModifiedObjects)
WTException
public WTContainerRef getTargetContainerRef()
throws WTException
WTContainerRef
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||