Class ReportResourcesServiceImpl

java.lang.Object
ch.tocco.nice2.reporting.impl.reportresource.ReportResourcesServiceImpl
All Implemented Interfaces:
ReportResourcesService

@Component public class ReportResourcesServiceImpl extends Object implements ReportResourcesService
  • Constructor Details

  • Method Details

    • getRawText

      public String getRawText(String resourceKey, String resourceTextKey)
      Specified by:
      getRawText in interface ReportResourcesService
      Parameters:
      resourceKey - the Report_resource's unique_id
      resourceTextKey - the Report_resource_text's unique_id
      Returns:
      the report resource's raw text (it might be a template)
    • getImage

      public ResourceNode getImage(String resourceKey, String resourceImageKey)
      Specified by:
      getImage in interface ReportResourcesService
      Parameters:
      resourceKey - the Report_resource's unique_id
      resourceImageKey - the Report_resource_image's unique_id
      Returns:
      the ResourceNode behind the requested image
    • processLegacyTemplate

      public String processLegacyTemplate(Map<String,Object> parameters, String rawText)
      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 interface ReportResourcesService
      Returns:
      the rawText with replaced legacy parameters (enclosed in square brackets)