Class LinkDirectoryXSLTHelper

All Implemented Interfaces:
Contextualizable, LogEnabled, Serviceable

XSLT Helper with link directory specificity
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Overrides:
      service in class AmetysXSLTHelper
      Throws:
      ServiceException
    • getColors

      public static MapElement getColors()
      Get all the colors for the current site
      Returns:
      all colors available for the current site
    • getColors

      public static MapElement getColors(String siteName)
      Get all the colors for a site
      Parameters:
      siteName - site to check
      Returns:
      all colors available for this site
    • getDefaultColorIndex

      public static String getDefaultColorIndex()
      Get the default color index for the current site
      Returns:
      the default color index for the current site
    • getDefaultColorIndex

      public static String getDefaultColorIndex(String siteName)
      Get the default color index for a site
      Parameters:
      siteName - site to check
      Returns:
      the default color index for this site
    • getLinks

      public static NodeList getLinks(String siteName, String lang, String themeName)
      Get the links that belong to a given theme. Only links allowed to anonymous access are returned !
      Parameters:
      siteName - the site name
      lang - the language
      themeName - the key of the theme
      Returns:
      the links as a Node.
    • getLinksForCurrentUser

      public static NodeList getLinksForCurrentUser(String siteName, String lang, String themeName)
      Get the links that belong to a given theme for a given user.
      Only user access is check. The user personal links are not retrieved and none user preferences is take into account to order or hide links ! DO NOT CALL THIS METHOD ON A CACHEABLE PAGE !
      Parameters:
      siteName - the site name
      lang - the language
      themeName - the key of the theme
      Returns:
      the links as a Node.