Interface SitemapCategoryFilter
-
@ConsumerType public interface SitemapCategoryFilter
A service interface consumers may implement to provide a filter for categories to include in the product sitemap.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldInclude(com.day.cq.wcm.api.Page categoryPage, com.adobe.cq.commerce.magento.graphql.CategoryInterface category)
Implementations may returntrue
when the givenCategoryInterface
should be included in the category sitemap,false
otherwise.
-
-
-
Method Detail
-
shouldInclude
boolean shouldInclude(com.day.cq.wcm.api.Page categoryPage, com.adobe.cq.commerce.magento.graphql.CategoryInterface category)
Implementations may returntrue
when the givenCategoryInterface
should be included in the category sitemap,false
otherwise.- Parameters:
categoryPage
- the categoryPage
giving the context in which the filter is calledcategory
- theCategoryInterface
to check for eligibility to be included in the category sitemap- Returns:
true
to include the category in the sitemap at the given categoryPage
,false
otherwise
-
-