Interface ReportDataSource


public interface ReportDataSource
  • Method Details

    • generateContent

      List<? extends RestData> generateContent(se.conciliate.mt.rest.JsonData sourceSettings)
      Generates the content that the report is generated from.
      Parameters:
      sourceSettings - Data source settings from the profile.
      Returns:
      A list of rest data to generate a report from.
    • getModelFilters

      default Optional<List<String>> getModelFilters()
      Returns optional filters for models. These can be used instead of queries to filter out models for different layouts in the report profile. The data source is responsible for decorating the content with the appropriate filter id:s using RestData.setCustomData("reportFilterId", "[filter-id]")
      Returns:
      Available model filters.
    • getObjectFilters

      default Optional<List<String>> getObjectFilters()
      Returns optional filters for objects. These can be used instead of queries to filter out objects for different layouts in the report profile. The data source is responsible for decorating the content with the appropriate filter id:s using RestData.setCustomData("reportFilterId", "[filter-id]")
      Returns:
      Available model filters.