如何在 AEM (CQ5) 报告中创建自定义提取器(列定义类型)?

How to create custom extractor (column definition type) in AEM (CQ5) reporting?

通过adobe docs,创建简单报表一目了然(Adobe Docs)

但是如何为列创建提取器,它可以将日期值转换为 "week start to week end"(16 年 1 月 4 日至 16 年 1 月 10 日)?

输出应该是可排序的,即不使用 clientFilter。

显然无法扩展 AEM 报告中的功能。

Transforms the results returned by the initial query (reportbase) into the basic result set using value extractors. Value extractors are automatically chosen depending on the column type. They are used for reading values from the underlying JCR Query and creating a result set from them; after which further processing may then be applied. For example, for the diff type, the value extractor reads two properties, calculates the single value that is then added to the result set. The value extractors cannot be configured.

因此,最终在数据源节点中保存另一个 属性,使用格式化数据而不是提取格式化数据。