Class DBReportingService

    • Constructor Detail

      • DBReportingService

        public DBReportingService()
    • Method Detail

      • getReport

        public byte[] getReport​(ReportBean reportBean,
                                org.wso2.carbon.reporting.util.ReportParamMap[] reportParamMap)
                         throws org.wso2.carbon.reporting.api.ReportingException,
                                net.sf.jasperreports.engine.JRException
        Specified by:
        getReport in interface ReportingService
        Parameters:
        reportBean - (name , type , data source)
        reportParamMap - required parameter map to generate report
        Returns:
        report byte array
        Throws:
        org.wso2.carbon.reporting.api.ReportingException - if failed to generate report from data source
        net.sf.jasperreports.engine.JRException
      • getJRDataSourceReport

        public byte[] getJRDataSourceReport​(org.wso2.carbon.reporting.util.ReportDataSource dataSource,
                                            String templateName,
                                            org.wso2.carbon.reporting.util.ReportParamMap[] parameterMap,
                                            String reportType)
                                     throws org.wso2.carbon.reporting.api.ReportingException,
                                            net.sf.jasperreports.engine.JRException
        Throws:
        org.wso2.carbon.reporting.api.ReportingException
        net.sf.jasperreports.engine.JRException
      • getCarbonDataSourceNames

        public List<String> getCarbonDataSourceNames()