Class ReportingResourcesSupplier


  • public class ReportingResourcesSupplier
    extends org.wso2.carbon.core.AbstractAdmin
    service class used to get report xml from registry
    • Constructor Detail

      • ReportingResourcesSupplier

        public ReportingResourcesSupplier()
    • Method Detail

      • getReportResources

        public String getReportResources​(String componentName,
                                         String reportTemplate)
                                  throws org.wso2.carbon.reporting.api.ReportingException
        Parameters:
        componentName - name of the report request component
        reportTemplate - requested report template
        Returns:
        report template
        Throws:
        org.wso2.carbon.reporting.api.ReportingException - , if eaied to get report template
      • getJRXMLFileContent

        public String getJRXMLFileContent​(String componentName,
                                          String reportTemplate)
                                   throws org.wso2.carbon.reporting.api.ReportingException
        Throws:
        org.wso2.carbon.reporting.api.ReportingException
      • getAllReports

        public List<String> getAllReports()
                                   throws org.wso2.carbon.reporting.api.ReportingException
        Throws:
        org.wso2.carbon.reporting.api.ReportingException
      • deleteReportTemplate

        public void deleteReportTemplate​(String templateName)
                                  throws org.wso2.carbon.reporting.api.ReportingException
        Throws:
        org.wso2.carbon.reporting.api.ReportingException
      • updateReport

        public boolean updateReport​(String fileName,
                                    String fileContent)
                             throws org.wso2.carbon.reporting.api.ReportingException,
                                    net.sf.jasperreports.engine.JRException
        Throws:
        org.wso2.carbon.reporting.api.ReportingException
        net.sf.jasperreports.engine.JRException