Class DataExporter

java.lang.Object
org.kuali.rice.kew.export.DataExporter
All Implemented Interfaces:
org.kuali.rice.krad.bo.Exporter

public class DataExporter extends Object implements org.kuali.rice.krad.bo.Exporter
The DataExporter allows for exporting of KEW BusinessObjects to various supported formats. The current implementation supports only XML export. This process is initiated from the KNS screens (lookups and inquiries) and this implementation leverages the existing XmlExporterService which is part of KEW and which was used to do exports before KEW was converted to use the KNS.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • DataExporter

      public DataExporter()
  • Method Details

    • getSupportedFormats

      public List<String> getSupportedFormats(Class<?> dataObjectClass)
      Specified by:
      getSupportedFormats in interface org.kuali.rice.krad.bo.Exporter
      See Also:
      • Exporter.getSupportedFormats(java.lang.Class)
    • buildExportDataSet

      protected org.kuali.rice.core.api.impex.ExportDataSet buildExportDataSet(Class<?> dataObjectClass, List<? extends Object> dataObjects)
      Builds the ExportDataSet based on the BusinessObjects passed in.
    • export

      public void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, org.kuali.rice.krad.exception.ExportNotSupportedException
      Export the given List of Objects of the specified type to XML.
      Specified by:
      export in interface org.kuali.rice.krad.bo.Exporter
      Throws:
      IOException
      org.kuali.rice.krad.exception.ExportNotSupportedException
      See Also:
      • Exporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)