Package com.adobe.aem.wcm.seo.sitemap
Interface SitemapPageFilter
This interface is filter that can be implemented by consumers to exclude certain pages from a sitemap.
shouldInclude(Page) can be used to exclude individual Pages from all sitemaps and
shouldFollow(Page) to stop the traversal at a given Page. However, both methods only complement the
default behaviour. Pages that are unpublished, protected, redirect or marked not to be indexed by search engines, will remain
excluded from all sitemaps.
If there are multiple SitemapPageFilter services registered, the one with the highest service ranking will be used.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldFollow(Page page) Implementations may returnfalseto exclude the given subtree from all sitemaps.booleanshouldInclude(Page page) Implementations may returnfalseto exclude the givenPagefrom all sitemaps.
-
Method Details
-
shouldInclude
Implementations may returnfalseto exclude the givenPagefrom all sitemaps. -
shouldFollow
Implementations may returnfalseto exclude the given subtree from all sitemaps.- Parameters:
page- the given subtree's rootPageto check- Returns:
falseto exclude the subtree from all sitemaps,trueotherwise
-