Class DocumentationTools

java.lang.Object
sk.iway.iwcm.admin.DocumentationTools

public final class DocumentationTools extends Object
Resolves the documentation server shared by administration navigation and help links.
  • Method Details

    • getBaseUrl

      public static String getBaseUrl()
      Returns the protocol, host and port from the full URL configured in adminDocumentationSearchUrl.
      Returns:
      configured server URL without the search endpoint path
    • normalizeLanguage

      public static String normalizeLanguage(String language)
      Maps administration languages to the available documentation translations.
      Parameters:
      language - administration language code
      Returns:
      sk, cs or en; unsupported or missing languages use English