|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.export.DataExporter
public class DataExporter
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.
Constructor Summary | |
---|---|
DataExporter()
|
Method Summary | |
---|---|
protected ExportDataSet |
buildExportDataSet(Class<?> dataObjectClass,
List<? extends Object> dataObjects)
Builds the ExportDataSet based on the BusinessObjects passed in. |
void |
export(Class<?> dataObjectClass,
List<? extends Object> dataObjects,
String exportFormat,
OutputStream outputStream)
Export the given List of Objects of the specified type to XML. |
List<String> |
getSupportedFormats(Class<?> dataObjectClass)
Returns a List of ExportFormats supported by this Exporter for the given DataOject class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataExporter()
Method Detail |
---|
public List<String> getSupportedFormats(Class<?> dataObjectClass)
Exporter
getSupportedFormats
in interface Exporter
dataObjectClass
- the class of the DataObjects being exported
Exporter.getSupportedFormats(java.lang.Class)
protected ExportDataSet buildExportDataSet(Class<?> dataObjectClass, List<? extends Object> dataObjects)
public void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException
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 to
IOException
- if the process encounters an I/O issue
ExportNotSupportedException
- if the given ExportFormat is not supportedExporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |