Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Aem CustomPageFilter错误_Aem - Fatal编程技术网

Aem CustomPageFilter错误

Aem CustomPageFilter错误,aem,Aem,我的要求是创建一个类似于acs aem commons中提供的站点地图,我可以通过点击来获取xml,但它包括基于IsHideNav()或IsValid()标准的页面。现在,在页面属性对话框中可以有多个属性,例如在导航中隐藏,在此基础上,我的页面将被包括/排除在站点地图中。以下是SiteMapServlet的代码段: for (Iterator<Page> children = page.listChildren(new PageFilter(), true); children.ha

我的要求是创建一个类似于acs aem commons中提供的站点地图,我可以通过点击来获取xml,但它包括基于IsHideNav()或IsValid()标准的页面。现在,在页面属性对话框中可以有多个属性,例如在导航中隐藏,在此基础上,我的页面将被包括/排除在站点地图中。以下是SiteMapServlet的代码段:

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);
    }