Aem CustomPageFilter错误
我的要求是创建一个类似于acs aem commons中提供的站点地图,我可以通过点击来获取xml,但它包括基于IsHideNav()或IsValid()标准的页面。现在,在页面属性对话框中可以有多个属性,例如在导航中隐藏,在此基础上,我的页面将被包括/排除在站点地图中。以下是SiteMapServlet的代码段:Aem CustomPageFilter错误,aem,Aem,我的要求是创建一个类似于acs aem commons中提供的站点地图,我可以通过点击来获取xml,但它包括基于IsHideNav()或IsValid()标准的页面。现在,在页面属性对话框中可以有多个属性,例如在导航中隐藏,在此基础上,我的页面将被包括/排除在站点地图中。以下是SiteMapServlet的代码段: for (Iterator<Page> children = page.listChildren(new PageFilter(), true); children.ha
for (Iterator<Page> children = page.listChildren(new PageFilter(), true); children.hasNext();) {
write(children.next(), stream, resourceResolver);
}
这里有任何关于这个错误的线索,我们可以创建一个自定义过滤器来实现这样的功能吗
谢谢
volatile
仅允许在字段上使用,而不允许在方法上使用。谢谢,但我在反编译com.day.cq.wcm.api.PageFilter类时可以看到相同的代码。
public volatile boolean includes(Object x0)
{
return includes((Page)x0);
}