Package wt.ixb.publicforapps
Class ApplicationImportHandlerForRepository
java.lang.Object
wt.ixb.publicforapps.ApplicationImportHandlerTemplate
wt.ixb.publicforapps.ApplicationImportHandlerForRepository
- All Implemented Interfaces:
ApplicationExpImportHandler,ApplicationImportHandler
This class provides methods for handle XML and content files in import jar file. It handles both ApplicationData
content and content residing in local file system.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUpAfterImport(boolean outcome) do some cleanup operations after import
Supported API: truegetContentAsInputStream(String contentId) Returns InputStream representing input information for import process
Supported API: true
get ImportResult
Supported API: truelong
get the size of jarEntryPath
Supported API: truevoidstoreLogMessage(String resourceBundle, String messageKey, Object[] textInserts) Supplies the localized log message for the application.voidstoreLogMessage(String resourceBundle, String messageKey, Object[] textInserts, int importanceLevel) Supplies the localized log message for the application.Methods inherited from class wt.ixb.publicforapps.ApplicationImportHandlerTemplate
finalizeImportObjectNotification, getContentAsApplicationData, getFormatType, getIXApplicationContext, getUserLogLevel, importObjectNotification, isIxbWithGUI, isMultiple, isMultithreadedImportApplicable, setFormatType, setIXApplicationContext, setIxbWithGUI, setMultiple, setUserLogLevel
-
Method Details
-
getContentAsInputStream
Returns InputStream representing input information for import process
Supported API: true- Specified by:
getContentAsInputStreamin interfaceApplicationImportHandler- Overrides:
getContentAsInputStreamin classApplicationImportHandlerTemplate- 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
-
storeLogMessage
public void storeLogMessage(String resourceBundle, String messageKey, Object[] textInserts) throws WTException Supplies the localized log message for the application.
Supported API: true- Overrides:
storeLogMessagein classApplicationImportHandlerTemplate- Parameters:
resourceBundle-messageKey-textInserts-- Throws:
WTException
-
storeLogMessage
public void storeLogMessage(String resourceBundle, String messageKey, Object[] textInserts, int importanceLevel) throws WTException Supplies the localized log message for the application.
Supported API: true- Specified by:
storeLogMessagein interfaceApplicationExpImportHandler- Overrides:
storeLogMessagein classApplicationImportHandlerTemplate- Parameters:
resourceBundle-messageKey-textInserts-importanceLevel-- Throws:
WTException
-
cleanUpAfterImport
do some cleanup operations after import
Supported API: true- Overrides:
cleanUpAfterImportin classApplicationImportHandlerTemplate- Parameters:
outcome-- Throws:
WTException
-
getSize
get the size of jarEntryPath
Supported API: true- Overrides:
getSizein classApplicationImportHandlerTemplate- Parameters:
jarEntryPath-- Returns:
- size
- Throws:
WTException
-
getImportResult
get ImportResult
Supported API: true- Overrides:
getImportResultin classApplicationImportHandlerTemplate- Returns:
- IXBExpImpStatus
-