Class SitemapService

All Implemented Interfaces:
Model, ModelItemAccessor, ModelItemContainer, LogEnabled, PluginAware, Labelable, Service, Disposable, Configurable, Contextualizable, Serviceable

public class SitemapService extends StaticService
Static service which cacheability depends on the restricted page policy of the current site.
  • Constructor Details

  • Method Details

    • isCacheable

      public boolean isCacheable(Page currentPage, ZoneItem zoneItem)
      Description copied from interface: Service
      Returns true if the result of this service may be cached, depending on the ZoneItem containing an instance of this service.
      Specified by:
      isCacheable in interface Service
      Overrides:
      isCacheable in class StaticService
      Parameters:
      currentPage - the current Page containing the service.
      zoneItem - the ZoneItem containing an instance of this service.
      N.B: The ZoneItem can belong to a page that is not the current page, when it is inherited.
      Returns:
      true if the result of this service may be cached.