Class ReportTemplateClient


  • public class ReportTemplateClient
    extends Object
    • Constructor Detail

      • ReportTemplateClient

        public ReportTemplateClient​(org.apache.axis2.context.ConfigurationContext configCtx,
                                    String backendServerURL,
                                    String cookie)
                             throws Exception
        Throws:
        Exception
    • Method Detail

      • getDatasourceNames

        public String[] getDatasourceNames()
                                    throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • getTableNames

        public String[] getTableNames​(String dsName)
                               throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • getFieldNames

        public String[] getFieldNames​(String dsName,
                                      String tableName)
                               throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
      • createTableDataInformation

        public org.wso2.carbon.reporting.template.stub.ReportTemplateAdminStub.TableReportDTO createTableDataInformation​(String reportName,
                                                                                                                         String dsName,
                                                                                                                         String tableName,
                                                                                                                         String fieldsStr,
                                                                                                                         String primaryField)
      • getAvailableFontNames

        public String[] getAvailableFontNames()
      • getAlignments

        public String[] getAlignments()
      • addNewReport

        public void addNewReport​(org.wso2.carbon.reporting.template.stub.ReportTemplateAdminStub.TableReportDTO report)
                          throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException,
                                 RemoteException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        RemoteException
      • addNewReport

        public void addNewReport​(org.wso2.carbon.reporting.template.stub.ReportTemplateAdminStub.ChartReportDTO report)
                          throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException,
                                 RemoteException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        RemoteException
      • getReportTypes

        public String[] getReportTypes()
      • generateReport

        public DataHandler generateReport​(String reportName,
                                          String format)
                                   throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException,
                                          RemoteException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        RemoteException
      • isValidNumberAxis

        public String isValidNumberAxis​(String chartType,
                                        String dsname,
                                        String tablename,
                                        String[] fields)
                                 throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException,
                                        RemoteException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        RemoteException
      • addNewCompositeReport

        public void addNewCompositeReport​(String[] reports,
                                          String compositeRepName)
                                   throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException,
                                          RemoteException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        RemoteException
      • getAllTemplateFiles

        public String[] getAllTemplateFiles()
                                     throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
      • isReportTemplate

        public boolean isReportTemplate​(String reportName)
                                 throws org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException,
                                        RemoteException
        Throws:
        org.wso2.carbon.reporting.template.stub.ReportTemplateAdminReportingExceptionException
        RemoteException