Class PortalUtils


  • public class PortalUtils
    extends Object
    • Constructor Detail

      • PortalUtils

        public PortalUtils()
    • Method Detail

      • getLibraryPath

        public static String getLibraryPath()
        Returns an absolute URL for "/library" servlet with CDN path as necessary
      • getWebjarsPath

        public static String getWebjarsPath()
        Returns an absolute for "/library/webjars" with CDN path as necessary
      • getScriptPath

        public static String getScriptPath()
        Returns an absolute for "/library/js" servlet with CDN path as necessary
      • getCDNPath

        public static String getCDNPath()
        Returns the CDN Path or empty string (i.e. never null)
      • getCDNQuery

        public static String getCDNQuery()
        Returns the CDN query string or empty string (i.e. never null)
      • includeLatestJQuery

        public static String includeLatestJQuery​(String where)
        Returns the text to intelligently include the latest version of jQuery
        Parameters:
        where - A string to be used in browser console log messages
      • getLatestJQueryPath

        public static String getLatestJQueryPath()
      • getPortalTermOrder

        public static List<String> getPortalTermOrder​(Set<String> tabsMoreTerms)
      • getLocaleString

        public static String getLocaleString​(Locale locale)