Class FilteredContentsService

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

Static service which cacheability depends on the "handle-user-access" parameter.
The service is not cacheable if contents are displayed depending on the connected user's rights.
  • 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.