Class WebUIUtils

java.lang.Object
org.exoplatform.forum.common.webui.WebUIUtils

public class WebUIUtils extends Object
  • Constructor Details

    • WebUIUtils

      public WebUIUtils()
  • Method Details

    • getRemoteIP

      public static String getRemoteIP()
    • getLabel

      public String getLabel(String key) throws Exception
      Throws:
      Exception
    • getLabel

      public static String getLabel(String componentId, String label)
    • getLabelEscapedJavaScript

      public static String getLabelEscapedJavaScript(String componentId, String label)
    • addScripts

      public static org.exoplatform.web.application.RequireJS addScripts(String module, String alias)
    • addScripts

      public static org.exoplatform.web.application.RequireJS addScripts(String[] scripts)
    • addScripts

      public static org.exoplatform.web.application.RequireJS addScripts(String module, String alias, String... scripts)
    • attachJSSyntaxHighlighter

      public static String attachJSSyntaxHighlighter(List<String> languageOption)
      Attach the list javaScript files of SyntaxHighlighter
      Parameters:
      languageOption - The list of files name javaScript
      Returns:
      The list files attach for SyntaxHighlighter
    • getSpaceByContext

      public static org.exoplatform.social.core.space.model.Space getSpaceByContext()