public class KimImporterAndExporter extends Object implements XmlLoader, Exporter
TODO: Do we need to restrict XML additions or updates based on which user is performing the ingestion?
TODO: It may be best to make this class into a "service" instead.
Constructor and Description |
---|
KimImporterAndExporter() |
Modifier and Type | Method and Description |
---|---|
void |
export(Class<?> dataObjectClass,
List<? extends Object> dataObjects,
String exportFormat,
OutputStream outputStream)
Exports the List of BusinessObjects to the specified ExportFormat.
|
List<String> |
getSupportedFormats(Class<?> dataObjectClass)
Returns a List of ExportFormats supported by this Exporter for the given
DataOject class.
|
void |
loadXml(InputStream inputStream,
String principalId) |
public KimImporterAndExporter()
public void loadXml(InputStream inputStream, String principalId)
loadXml
in interface XmlLoader
XmlLoader.loadXml(java.io.InputStream, java.lang.String)
public void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException
Exporter
export
in interface Exporter
dataObjectClass
- the type of DataObjects being exportedexportFormat
- the export format in which to export the DataObjectsoutputStream
- the OutputStream to write the exported data toIOException
- if the process encounters an I/O issueExportNotSupportedException
- if the given ExportFormat is not supportedExporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)
public List<String> getSupportedFormats(Class<?> dataObjectClass)
Exporter
getSupportedFormats
in interface Exporter
dataObjectClass
- the class of the DataObjects being exportedExporter.getSupportedFormats(java.lang.Class)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.