@Test void testMultipleTemplates() { TemplatePageFilter pageFilter = new TemplatePageFilter(true, true, AppTemplate.TEMPLATE_1, AppTemplate.TEMPLATE_2); assertTrue(pageFilter.includes(pageTemplate1)); assertTrue(pageFilter.includes(pageTemplate2)); assertFalse(pageFilter.includes(pageTemplate3)); }
@Override public boolean includes(Page page) { return super.includes(page) && allowedTemplatePaths.contains(page.getProperties().get(NameConstants.PN_TEMPLATE, String.class)); }
TemplatePageFilter extends PageFilter { @Override public boolean includes(Page page) { return super.includes(page) && allowedTemplatePaths.contains(page.getProperties().get(NameConstants.PN_TEMPLATE, String.class)); } }
TemplatePageFilter extends PageFilter { @Override public boolean includes(Page page) { return super.includes(page) && allowedTemplatePaths.contains(page.getProperties().get(NameConstants.PN_TEMPLATE, String.class)); } TemplatePageFilter(@NotNull TemplatePathInfo @NotNull... templates);  TemplatePageFilter(boolean includeInvalid, boolean includeHidden, @NotNull TemplatePathInfo @NotNull... templates); }
TemplatePageFilter extends PageFilter { @Override public boolean includes(Page page) { return super.includes(page) && allowedTemplatePaths.contains(page.getProperties().get(NameConstants.PN_TEMPLATE, String.class)); } TemplatePageFilter(@NotNull TemplatePathInfo @NotNull... templates);  TemplatePageFilter(boolean includeInvalid, boolean includeHidden, @NotNull TemplatePathInfo @NotNull... templates); @Override boolean includes(Page page); }
TemplatePageFilter extends PageFilter { @Override public boolean includes(Page page) { return super.includes(page) && allowedTemplatePaths.contains(page.getProperties().get(NameConstants.PN_TEMPLATE, String.class)); } TemplatePageFilter(@NotNull TemplatePathInfo @NotNull... templates);  TemplatePageFilter(boolean includeInvalid, boolean includeHidden, @NotNull TemplatePathInfo @NotNull... templates); @Override boolean includes(Page page);  }