Marks a report as able to produce faceted breakdowns of its data, such as by reward, tag or other dimension, for a given organisation, website and date range. JsonReportPage checks whether the underlying report implements this interface and, if so, calls getFacets to build the facet list shown alongside the report. Implementations such as PointsReport and PointsDebitReport build one Facet per dimension and populate it with buckets summarising counts within the requested range.
Methods
getFacets(Organisation org, Website website, Date start, Date finish)
Returns: List<Facet>
Builds the list of facets for this report over the given scope and date range. Implementations typically query aggregated data and populate each facet with the buckets found.
| Parameter | Description |
|---|---|
org | the organisation to scope the facets to |
website | the website to scope the facets to |
start | the start of the date range to include, may be null for no lower bound |
finish | the end of the date range to include, may be null for no upper bound |
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.