Class ReportingResourcesSupplier
- java.lang.Object
-
- org.wso2.carbon.core.AbstractAdmin
-
- org.wso2.carbon.reporting.core.services.ReportingResourcesSupplier
-
public class ReportingResourcesSupplier extends org.wso2.carbon.core.AbstractAdmin
service class used to get report xml from registry
-
-
Constructor Summary
Constructors Constructor Description ReportingResourcesSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteReportTemplate(String templateName)
List<String>
getAllReports()
String
getJRXMLFileContent(String componentName, String reportTemplate)
ReportParameters[]
getReportParam(String reportName)
String
getReportResources(String componentName, String reportTemplate)
boolean
updateReport(String fileName, String fileContent)
-
Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
-
-
-
Method Detail
-
getReportResources
public String getReportResources(String componentName, String reportTemplate) throws org.wso2.carbon.reporting.api.ReportingException
- Parameters:
componentName
- name of the report request componentreportTemplate
- 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
-
getReportParam
public ReportParameters[] getReportParam(String reportName) throws org.wso2.carbon.reporting.api.ReportingException, XMLStreamException
- Throws:
org.wso2.carbon.reporting.api.ReportingException
XMLStreamException
-
-