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