Package se.conciliate.extensions.report
Interface ReportDataSource
public interface ReportDataSource
-
Method Summary
Modifier and TypeMethodDescriptiongenerateContent
(se.conciliate.mt.rest.JsonData sourceSettings) Generates the content that the report is generated from.Returns optional filters for models.Returns optional filters for objects.
-
Method Details
-
generateContent
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
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
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.
-