Class ReportResourcesServiceImpl
java.lang.Object
ch.tocco.nice2.reporting.impl.reportresource.ReportResourcesServiceImpl
- All Implemented Interfaces:
ReportResourcesService
-
Constructor Summary
ConstructorDescriptionReportResourcesServiceImpl
(QueryBuilderFactory queryBuilderFactory, Context context, EntityDocumentsService entityDocumentsService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiongetRawText
(String resourceKey, String resourceTextKey) processLegacyTemplate
(Map<String, Object> parameters, String rawText) This method is only here to not break existing report resources.
-
Constructor Details
-
ReportResourcesServiceImpl
public ReportResourcesServiceImpl(QueryBuilderFactory queryBuilderFactory, Context context, EntityDocumentsService entityDocumentsService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
getRawText
- Specified by:
getRawText
in interfaceReportResourcesService
- Parameters:
resourceKey
- the Report_resource's unique_idresourceTextKey
- the Report_resource_text's unique_id- Returns:
- the report resource's raw text (it might be a template)
-
getImage
- Specified by:
getImage
in interfaceReportResourcesService
- Parameters:
resourceKey
- the Report_resource's unique_idresourceImageKey
- the Report_resource_image's unique_id- Returns:
- the
ResourceNode
behind the requested image
-
processLegacyTemplate
Description copied from interface:ReportResourcesService
This method is only here to not break existing report resources. The square brackets syntax for parameters should not be used anymore. All report resources texts are processed by the default template engine.- Specified by:
processLegacyTemplate
in interfaceReportResourcesService
- Returns:
- the rawText with replaced legacy parameters (enclosed in square brackets)
-