Class JasperUtilsServiceImpl
java.lang.Object
net.datenwerke.rs.base.service.reportengines.jasper.util.JasperUtilsServiceImpl
- All Implemented Interfaces:
JasperUtilsService
-
Constructor Summary
ConstructorsConstructorDescriptionJasperUtilsServiceImpl(ConfigService configService, <any> entityManagerProvider, XMLUtilsService xmlUtils) -
Method Summary
Modifier and TypeMethodDescriptionextractParameters(String jrxml) Returns aListofJasperParameterProposals holding all 'parameter' tags of the given JRXML.extractParameters(Document jrxml) Returns aListofJasperParameterProposals holding all 'parameter' tags of the given JRXML.getJRXMLFileById(Long id) getQueryFromJRXML(String jrxml) Returns the 'queryString' tag of the given JRXMLgetQueryFromJRXML(Document jrxml) Returns the 'queryString' tag of the given JRXMLFinds the report that hosts the given jrxml filebooleanmerge(JasperReportJRXMLFile jrxmlFile) voidpersist(JasperReportJRXMLFile jrxmlFile) Removes JRXML file and adapts corresponding report.
-
Constructor Details
-
JasperUtilsServiceImpl
public JasperUtilsServiceImpl(ConfigService configService, <any> entityManagerProvider, XMLUtilsService xmlUtils)
-
-
Method Details
-
extractParameters
Description copied from interface:JasperUtilsServiceReturns aListofJasperParameterProposals holding all 'parameter' tags of the given JRXML.- Specified by:
extractParametersin interfaceJasperUtilsService- Parameters:
jrxml- The JRXML as aString- Returns:
- A
ListofJasperParameterProposals
-
extractParameters
Description copied from interface:JasperUtilsServiceReturns aListofJasperParameterProposals holding all 'parameter' tags of the given JRXML.- Specified by:
extractParametersin interfaceJasperUtilsService- Parameters:
jrxml- The JRXML as aDocument- Returns:
- A
ListofJasperParameterProposals
-
getQueryFromJRXML
Description copied from interface:JasperUtilsServiceReturns the 'queryString' tag of the given JRXML- Specified by:
getQueryFromJRXMLin interfaceJasperUtilsService- Parameters:
jrxml- The JRXML as aString- Returns:
- The 'queryString' tag
-
getQueryFromJRXML
Description copied from interface:JasperUtilsServiceReturns the 'queryString' tag of the given JRXML- Specified by:
getQueryFromJRXMLin interfaceJasperUtilsService- Parameters:
jrxml- The JRXML as aDocument- Returns:
- The 'queryString' tag
-
getReportWithJRXMLFile
Description copied from interface:JasperUtilsServiceFinds the report that hosts the given jrxml file- Specified by:
getReportWithJRXMLFilein interfaceJasperUtilsService- Parameters:
file-
-
getReportWithJRXMLMaster
@QueryByAttribute(where=<error>) public JasperReport getReportWithJRXMLMaster(JasperReportJRXMLFile file) -
getReportWithJRXMLSubfile
@SimpleQuery(from=JasperReport.class, join=@Join(joinAttribute=<error>,where=@Predicate("file"))) public JasperReport getReportWithJRXMLSubfile(JasperReportJRXMLFile file) -
removeJRXMLFile
Description copied from interface:JasperUtilsServiceRemoves JRXML file and adapts corresponding report.- Specified by:
removeJRXMLFilein interfaceJasperUtilsService- Parameters:
file-- Returns:
- The corresponding report
-
persist
- Specified by:
persistin interfaceJasperUtilsService
-
merge
- Specified by:
mergein interfaceJasperUtilsService
-
getJRXMLFileById
- Specified by:
getJRXMLFileByIdin interfaceJasperUtilsService
-
isJasperEnabled
public boolean isJasperEnabled()- Specified by:
isJasperEnabledin interfaceJasperUtilsService
-
getJasperAllowedLanguages
- Specified by:
getJasperAllowedLanguagesin interfaceJasperUtilsService
-