Package org.sakaiproject.portal.util
Class PortalUtils
- java.lang.Object
-
- org.sakaiproject.portal.util.PortalUtils
-
public class PortalUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringMOMENTJS_VERSIONExternal libraries versions
-
Constructor Summary
Constructors Constructor Description PortalUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCDNPath()Returns the CDN Path or empty string (i.e. never null)static StringgetCDNQuery()Returns the CDN query string or empty string (i.e. never null)static StringgetLatestJQueryPath()static StringgetLibraryPath()Returns an absolute URL for "/library" servlet with CDN path as necessarystatic StringgetLocaleString(Locale locale)static List<String>getPortalTermOrder(Set<String> tabsMoreTerms)static StringgetScriptPath()Returns an absolute for "/library/js" servlet with CDN path as necessarystatic StringgetWebjarsPath()Returns an absolute for "/library/webjars" with CDN path as necessarystatic StringincludeLatestJQuery(String where)Returns the text to intelligently include the latest version of jQuery
-
-
-
Field Detail
-
MOMENTJS_VERSION
public static final String MOMENTJS_VERSION
External libraries versions- See Also:
- Constant Field Values
-
-
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()
-
-