Package wt.ixb.publicforapps
Class ApplicationImportHandlerForXml
java.lang.Object
wt.ixb.publicforapps.ApplicationImportHandlerTemplate
wt.ixb.publicforapps.ApplicationImportHandlerForXml
- All Implemented Interfaces:
ApplicationExpImportHandler,ApplicationImportHandler
This class provides methods for handle XML with JAXB object 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: truegetContentAsElement(String contentId, boolean validate) Returns IxbDocument representing input information for import process
Supported API: truegetContentAsInputStream(String contentId) Returns InputStream representing input information for import process
Supported API: true
get ImportResult
Supported API: truegetTable()Gets the value of the attribute: table.voidSets the value of the attribute: table.voidstoreLogMessage(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.voidvalidate(InputStream stream) validate InputStream
Supported API: trueMethods inherited from class wt.ixb.publicforapps.ApplicationImportHandlerTemplate
finalizeImportObjectNotification, getContentAsApplicationData, getFormatType, getIXApplicationContext, getUserLogLevel, importObjectNotification, isIxbWithGUI, isMultiple, isMultithreadedImportApplicable, setFormatType, setIXApplicationContext, setIxbWithGUI, setMultiple, setUserLogLevel
-
Method Details
-
getContentAsElement
Returns IxbDocument 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.validate-- Returns:
- IxbDocument
- Throws:
WTException
-
validate
validate InputStream
Supported API: true- Parameters:
stream-- Throws:
WTException
-
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
-
getImportResult
get ImportResult
Supported API: true- Overrides:
getImportResultin classApplicationImportHandlerTemplate- Returns:
- IXBExpImpStatus
-
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
-
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
-
cleanUpAfterImport
do some cleanup operations after import
Supported API: true- Overrides:
cleanUpAfterImportin classApplicationImportHandlerTemplate- Parameters:
outcome-- Throws:
WTException
-
getTable
Gets the value of the attribute: table.
Supported API: true- Returns:
- table
- Throws:
WTException
-
setTable
Sets the value of the attribute: table.
Supported API: true- Parameters:
table-- Throws:
WTException
-