public class JasperUtilsServiceImpl extends java.lang.Object implements JasperUtilsService
Constructor and Description |
---|
JasperUtilsServiceImpl(ConfigService configService,
<any> entityManagerProvider,
XMLUtilsService xmlUtils) |
Modifier and Type | Method and Description |
---|---|
java.util.List<JasperParameterProposal> |
extractParameters(org.w3c.dom.Document jrxml)
Returns a
List of JasperParameterProposal s holding all
'parameter' tags of the given JRXML. |
java.util.List<JasperParameterProposal> |
extractParameters(java.lang.String jrxml)
Returns a
List of JasperParameterProposal s holding all
'parameter' tags of the given JRXML. |
java.util.List<java.lang.String> |
getJasperAllowedLanguages() |
JasperReportJRXMLFile |
getJRXMLFileById(java.lang.Long id) |
java.lang.String |
getQueryFromJRXML(org.w3c.dom.Document jrxml)
Returns the 'queryString' tag of the given JRXML
|
java.lang.String |
getQueryFromJRXML(java.lang.String jrxml)
Returns the 'queryString' tag of the given JRXML
|
JasperReport |
getReportWithJRXMLFile(JasperReportJRXMLFile file)
Finds the report that hosts the given jrxml file
|
JasperReport |
getReportWithJRXMLMaster(JasperReportJRXMLFile file) |
JasperReport |
getReportWithJRXMLSubfile(JasperReportJRXMLFile file) |
boolean |
isJasperEnabled() |
JasperReportJRXMLFile |
merge(JasperReportJRXMLFile jrxmlFile) |
void |
persist(JasperReportJRXMLFile jrxmlFile) |
JasperReport |
removeJRXMLFile(JasperReportJRXMLFile file)
Removes JRXML file and adapts corresponding report.
|
public JasperUtilsServiceImpl(ConfigService configService, <any> entityManagerProvider, XMLUtilsService xmlUtils)
public java.util.List<JasperParameterProposal> extractParameters(java.lang.String jrxml)
JasperUtilsService
List
of JasperParameterProposal
s holding all
'parameter' tags of the given JRXML.extractParameters
in interface JasperUtilsService
jrxml
- The JRXML as a String
List
of JasperParameterProposal
spublic java.util.List<JasperParameterProposal> extractParameters(org.w3c.dom.Document jrxml)
JasperUtilsService
List
of JasperParameterProposal
s holding all
'parameter' tags of the given JRXML.extractParameters
in interface JasperUtilsService
jrxml
- The JRXML as a Document
List
of JasperParameterProposal
spublic java.lang.String getQueryFromJRXML(java.lang.String jrxml)
JasperUtilsService
getQueryFromJRXML
in interface JasperUtilsService
jrxml
- The JRXML as a String
public java.lang.String getQueryFromJRXML(org.w3c.dom.Document jrxml)
JasperUtilsService
getQueryFromJRXML
in interface JasperUtilsService
jrxml
- The JRXML as a Document
public JasperReport getReportWithJRXMLFile(JasperReportJRXMLFile file)
JasperUtilsService
getReportWithJRXMLFile
in interface JasperUtilsService
@QueryByAttribute(where=<error>) public JasperReport getReportWithJRXMLMaster(JasperReportJRXMLFile file)
@SimpleQuery(from=JasperReport.class, join=@Join(joinAttribute=<error>,where=@Predicate(value="file"))) public JasperReport getReportWithJRXMLSubfile(JasperReportJRXMLFile file)
public JasperReport removeJRXMLFile(JasperReportJRXMLFile file)
JasperUtilsService
removeJRXMLFile
in interface JasperUtilsService
public void persist(JasperReportJRXMLFile jrxmlFile)
persist
in interface JasperUtilsService
public JasperReportJRXMLFile merge(JasperReportJRXMLFile jrxmlFile)
merge
in interface JasperUtilsService
@QueryById public JasperReportJRXMLFile getJRXMLFileById(java.lang.Long id)
getJRXMLFileById
in interface JasperUtilsService
public boolean isJasperEnabled()
isJasperEnabled
in interface JasperUtilsService
public java.util.List<java.lang.String> getJasperAllowedLanguages()
getJasperAllowedLanguages
in interface JasperUtilsService