com.groiss.store
Interface ImportHandler


public interface ImportHandler

ImportHandler for accessing Data during XML Import. This interface is used by the Exportable interface.


Method Summary
 java.lang.Long getLocalOid(java.lang.Long xmlId, java.lang.Class c)
          Searches for the local oid of the given xml-id.
 void log(java.lang.String text, java.lang.String tag)
          Prints a text on the import output screen.
 

Method Detail

getLocalOid

java.lang.Long getLocalOid(java.lang.Long xmlId,
                           java.lang.Class c)
Searches for the local oid of the given xml-id. "xml-id" is the oid of an object in the export XML file. This method returns the real oid of this object on the local import server. If no mapping can be found for this oid, the method return null.

Parameters:
xmlId - Oid of the object in the XML file.
c - Class of the object. This parameter is optional! If the Class is unknown, simply pass null. If you know the Class this method may work faster.
Returns:
Oid of the object on local server.

log

void log(java.lang.String text,
         java.lang.String tag)
Prints a text on the import output screen.

Parameters:
text - The text to print
tag - Tag must be "div" (for printing an own line in an HTML div block) or the HTML code for a color (to print colored text).


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.