| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ReportExport |
|
| 1.0;1 |
| 1 | package org.kuali.student.common.ui.client.reporting; | |
| 2 | ||
| 3 | import java.util.ArrayList; | |
| 4 | import java.util.List; | |
| 5 | ||
| 6 | import org.kuali.student.common.ui.client.mvc.DataModel; | |
| 7 | import org.kuali.student.common.ui.client.util.ExportElement; | |
| 8 | ||
| 9 | /** | |
| 10 | * An interface to access the Kuali Student ReportExporter | |
| 11 | * | |
| 12 | * @author Kuali Student Team | |
| 13 | */ | |
| 14 | public interface ReportExport { | |
| 15 | ||
| 16 | /** | |
| 17 | * Name of report if overwritten on sub class. | |
| 18 | */ | |
| 19 | public String exportTemplateName = null; | |
| 20 | ||
| 21 | /** | |
| 22 | * | |
| 23 | * This method implement the "Generic Export" of a windows content to Jasper based on the format the user selected. | |
| 24 | * This method can be overwritten on a subclass to do specific export to the specific view | |
| 25 | * | |
| 26 | */ | |
| 27 | public void doReportExport(List<ExportElement> exportElements, String format, String reportTitle); | |
| 28 | ||
| 29 | /** | |
| 30 | * | |
| 31 | * This method needs to be implemented on every controller that want's to export the data | |
| 32 | * | |
| 33 | * @return | |
| 34 | */ | |
| 35 | public DataModel getExportDataModel(); | |
| 36 | ||
| 37 | /** | |
| 38 | * | |
| 39 | * This overridden method only needs to be implemented if the Generic Export reports has to be | |
| 40 | * overwritten for a particular COntroller. | |
| 41 | * | |
| 42 | */ | |
| 43 | public String getExportTemplateName(); | |
| 44 | ||
| 45 | /** | |
| 46 | * | |
| 47 | * This method returns array of ExportElements which represent the elements on the view that must be exported | |
| 48 | * | |
| 49 | * @return | |
| 50 | */ | |
| 51 | public List<ExportElement> getExportElementsFromView(); | |
| 52 | ||
| 53 | } |