Package org.kuali.rice.kew.export
Class DataExporter
java.lang.Object
org.kuali.rice.kew.export.DataExporter
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExportDataSetbuildExportDataSet(Class<?> dataObjectClass, List<? extends Object> dataObjects) Builds the ExportDataSet based on the BusinessObjects passed in.voidexport(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) Export the given List of Objects of the specified type to XML.getSupportedFormats(Class<?> dataObjectClass)
-
Constructor Details
-
DataExporter
public DataExporter()
-
-
Method Details
-
getSupportedFormats
- Specified by:
getSupportedFormatsin interfaceExporter- See Also:
-
buildExportDataSet
protected 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, ExportNotSupportedException Export the given List of Objects of the specified type to XML.- Specified by:
exportin interfaceExporter- Throws:
IOExceptionExportNotSupportedException- See Also:
-