wt.ixb.publicforapps
Interface ApplicationImportHandler

All Superinterfaces:
ApplicationExpImportHandler
All Known Implementing Classes:
ApplicationImportHandlerTemplate, ContainerTemplateHandler, NMHandler

public interface ApplicationImportHandler
extends ApplicationExpImportHandler

This interface represents application specific implementation of how import process gets input information. There are two types of imput information for import process:

Any import application must implement such a handler and supply it to import service.

To improve performance of import process there are two different methods, that import service uses to get input information:

The first method represents a general regular way how import service can get input information.
The second method represents rather specific way, that allows improve performance in some specific cases (particularely, in Replication import implementation). If application can not or does not want to use this method then this method should return null.

Supported API: true

Extendable: true


Field Summary
 
Fields inherited from interface wt.ixb.publicforapps.ApplicationExpImportHandler
IMPORTANCE_LEVEL_DEFAULT
 
Method Summary
 void finalizeImportObjectNotification(Object object)
          Notifies application about objects after being persisted.
 ApplicationData getContentAsApplicationData(String contentId)
          Returns ApplicationData representing input information for import process.
 InputStream getContentAsInputStream(String contentId)
          Returns InputStream representing input information for import process

Supported API: true
 void importObjectNotification(Object object, boolean created, IxbElement fileXML)
          Notifies application about objects, that are created in import process.
 
Methods inherited from interface wt.ixb.publicforapps.ApplicationExpImportHandler
storeLogMessage
 

Method Detail

getContentAsInputStream

public InputStream getContentAsInputStream(String contentId)
                                    throws WTException
Returns InputStream representing input information for import process

Supported API: true

Parameters:
contentId - The unique id to identify the content data, such as the file name (including the path) in a jar file.
Returns:
InputStream
Throws:
WTException

getContentAsApplicationData

public ApplicationData getContentAsApplicationData(String contentId)
                                            throws WTException
Returns ApplicationData representing input information for import process. Import application does not have really implement this method. It can simple return null.

Supported API: true

Parameters:
contentId - The unique id to identify the content data, such as the file name (including the path) in a jar file.
Returns:
ApplicationData
Throws:
WTException

importObjectNotification

public void importObjectNotification(Object object,
                                     boolean created,
                                     IxbElement fileXML)
                              throws WTException
Notifies application about objects, that are created in import process.

Supported API: true

Parameters:
object -
created - "true" if import process creates new object and "false" otherwise.
fileXML -
Throws:
WTException

finalizeImportObjectNotification

public void finalizeImportObjectNotification(Object object)
                                      throws WTException
Notifies application about objects after being persisted.

Supported API: true

Parameters:
object -
Throws:
WTException