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 return true when the given CategoryInterface 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 return true when the given CategoryInterface should be included in the category sitemap, false otherwise.
        Parameters:
        categoryPage - the category Page giving the context in which the filter is called
        category - the CategoryInterface to check for eligibility to be included in the category sitemap
        Returns:
        true to include the category in the sitemap at the given category Page, false otherwise