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 XmlLoaderXmlLoader.loadXml(java.io.InputStream, java.lang.String)public void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException
ExporterThe resulting output of the export operation should be written to the given OutputStream
export in interface ExporterdataObjectClass - the type of DataObjects being exporteddataObjects - a List of DataObjects to exportexportFormat - 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)
ExportergetSupportedFormats in interface ExporterdataObjectClass - the class of the DataObjects being exportedExporter.getSupportedFormats(java.lang.Class)Copyright © 2005–2014 The Kuali Foundation. All rights reserved.