public class CommonUtil extends Object
Constructor and Description |
---|
CommonUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addJrxmlConfigs(org.wso2.carbon.registry.core.Registry systemRegistry) |
static void |
deleteReportTemplate(String templateName,
org.wso2.carbon.registry.core.Registry registry) |
static List<String> |
getAllReports(org.wso2.carbon.registry.core.Registry registry) |
static String |
getJRXMLFileContent(String componentName,
String reportTemplate,
org.wso2.carbon.registry.core.Registry registry) |
static String |
getReportResources(String componentName,
String reportTemplate,
org.wso2.carbon.registry.core.Registry registry) |
static boolean |
updateReport(String fileName,
String fileContent,
org.wso2.carbon.registry.core.Registry registry) |
public static void deleteReportTemplate(String templateName, org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.reporting.api.ReportingException
templateName
- name of the reportregistry
- Registryorg.wso2.carbon.reporting.api.ReportingException
- if failed to delete report templatepublic static List<String> getAllReports(org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.reporting.api.ReportingException
registry
- Registryorg.wso2.carbon.reporting.api.ReportingException
- if failed to get report name listpublic static String getReportResources(String componentName, String reportTemplate, org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.reporting.api.ReportingException, XMLStreamException
componentName
- name of the report requesting componentreportTemplate
- name of the templateregistry
- Registryorg.wso2.carbon.reporting.api.ReportingException
- if failed to get report templateXMLStreamException
public static String getJRXMLFileContent(String componentName, String reportTemplate, org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.reporting.api.ReportingException
org.wso2.carbon.reporting.api.ReportingException
public static boolean updateReport(String fileName, String fileContent, org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.reporting.api.ReportingException, net.sf.jasperreports.engine.JRException
fileName
- name of the modifying report namefileContent
- modified contentregistry
- Registryorg.wso2.carbon.reporting.api.ReportingException
net.sf.jasperreports.engine.JRException
public static void addJrxmlConfigs(org.wso2.carbon.registry.core.Registry systemRegistry) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryException
Copyright © 2024 WSO2. All rights reserved.