org.kuali.rice.kns.bo
Interface Exporter

All Known Implementing Classes:
DataExporter

public interface Exporter

An Exporter provides the ability to export a List of BusinessObjects to a supported ExportFormat.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 void export(Class<? extends BusinessObject> businessObjectClass, List<BusinessObject> data, String exportFormat, OutputStream outputStream)
          Exports the List of BusinessObjects to the specified ExportFormat.
 List<String> getSupportedFormats(Class<? extends BusinessObject> businessObjectClass)
          Returns a List of ExportFormats supported by this Exporter for the given BusinessOject class.
 

Method Detail

export

void export(Class<? extends BusinessObject> businessObjectClass,
            List<BusinessObject> data,
            String exportFormat,
            OutputStream outputStream)
            throws IOException,
                   ExportNotSupportedException
Exports the List of BusinessObjects to the specified ExportFormat. The resulting output of the export operation should be written to the given OutputStream.

Parameters:
businessObjectClass - the type of BusinessObjects being exported
data - a List of BusinessObjects to export
exportFormat - the export format in which to export the BusinessObjects
outputStream - the OutputStream to write the exported data to
Throws:
IOException - if the process encounters an I/O issue
ExportNotSupportedException - if the given ExportFormat is not supported

getSupportedFormats

List<String> getSupportedFormats(Class<? extends BusinessObject> businessObjectClass)
Returns a List of ExportFormats supported by this Exporter for the given BusinessOject class. This method ...

Parameters:
businessObjectClass - the class of the BusinessObjects being exported
Returns:
a List of supported ExportFormats


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.