All Implemented Interfaces:
Contextualizable, LogEnabled, Serviceable

public class UserXSLTHelper extends AmetysXSLTHelper
Helper component to be used from XSL stylesheets.
  • Field Details

  • 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
    • getUserContent

      public static String getUserContent(String lang, String userIdentity)
      Gets the id of the content of the given user
      Parameters:
      lang - the content language
      userIdentity - The user to get content (such as login#population)
      Returns:
      the id of the content of the given user
    • getCurrentUserContent

      public static String getCurrentUserContent(String lang)
      Gets the id of the content of the current connected user
      Parameters:
      lang - the content language
      Returns:
      the id of the content of the current connected user
    • getCurrentUserPage

      public static String getCurrentUserPage(String lang)
      Gets the id of the page of the current user
      Parameters:
      lang - The language
      Returns:
      the id of the page of the user content or null if not found
    • getUserPage

      public static String getUserPage(String contentId)
      Gets the id of the page of the user content
      Parameters:
      contentId - The user content id
      Returns:
      the id of the page of the user content
    • getUserPage

      public static String getUserPage(String contentId, String siteName)
      Gets the id of the page of the user content
      Parameters:
      contentId - The user content id
      siteName - the site name
      Returns:
      the id of the page of the user content