Interface I_CmsDetailPageHandler

All Superinterfaces:
I_CmsConfigurationParameterHandler
All Known Implementing Classes:
CmsDefaultDetailPageHandler, CmsPermissiveDetailPageHandler

Interface for classes which can find the detail page for a given resource, and determine whether a given detail page / detail content combination is valid.
Since:
8.0.0
  • Method Details

    • isValidDetailPage

      boolean isValidDetailPage(CmsObject cms, CmsResource page, CmsResource detailRes)
      Checks whether the given detail page is valid for the given resource.

      Parameters:
      cms - the CMS context
      page - the detail page
      detailRes - the detail resource
      Returns:
      true if the given detail page is valid
    • getAllDetailPages

      Finds all detail pages for a given resource.

      Parameters:
      cms - the current CMS context
      restype - the resource type for which the detail pages should be found
      Returns:
      the list of detail page
      Throws:
      CmsException - in case reading the resource type fails
    • getDetailPage

      String getDetailPage(CmsObject cms, String rootPath, String linkSource, String targetDetailPage)
      Returns the detail page link for the given resource, or null if there is no detail page for the resource.

      Parameters:
      cms - the CMS context
      rootPath - the root path of the resource for which the detail page should be looked up
      linkSource - the uri in the context of which the detail page link is being generated (relative to the site)
      targetDetailPage - the target detail page to use
      Returns:
      the detail page link, or null
    • initialize

      void initialize(CmsObject offlineCms, CmsObject onlineCms)
      Initializes the detail page handler.
      Parameters:
      offlineCms - offline CMS context
      onlineCms - online CMS context