Package wt.ixb.publicforapps
Interface ApplicationImportHandler
- All Superinterfaces:
ApplicationExpImportHandler
- All Known Implementing Classes:
ApplicationImportHandlerForJar,ApplicationImportHandlerForRepository,ApplicationImportHandlerForXml,ApplicationImportHandlerTemplate
This interface represents application specific implementation of how
import process gets input information. There are two types of imput information
for import process:
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: false
- XML files representing objects for import
- Content files for objects, that are content holders
To improve performance of import process there are two different methods, that import service uses to get input information:
- InputStream getContentAsInputStream (String contentId) throws WTException;
- ApplicationData getContentAsApplicationData (String contentId) throws WTException;
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: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies application about objects after being persisted.getContentAsApplicationData(String contentId) Returns ApplicationData representing input information for import process.getContentAsInputStream(String contentId) Returns InputStream representing input information for import process
Supported API: truevoidimportObjectNotification(List<IxbHndHelper.ElementObjectPair> elementObjPair, boolean created) Notifies application about objects, that are created in import process.Methods inherited from interface wt.ixb.publicforapps.ApplicationExpImportHandler
storeLogMessage
-
Method Details
-
getContentAsInputStream
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
Returns ApplicationData representing input information for import process. Import application does not have really implement this method. It can simple returnnull.
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
void importObjectNotification(List<IxbHndHelper.ElementObjectPair> elementObjPair, boolean created) throws WTException Notifies application about objects, that are created in import process.
Supported API: true- Parameters:
elementObjPair-created- "true" if import process creates new object and "false" otherwise.- Throws:
WTException
-
finalizeImportObjectNotification
Notifies application about objects after being persisted.
Supported API: true- Parameters:
object-- Throws:
WTException
-