Package lumis.util

Class PortalUtil


  • @StableMinor(version="15.0",
                 sinceVersion="4.0")
    public abstract class PortalUtil
    extends java.lang.Object
    Utility methods for portal related functionalities.
    Since:
    4.0.0
    Version:
    $Revision: 25303 $ $Date: 2022-10-22 22:48:02 -0300 (Sat, 22 Oct 2022) $
    • Constructor Detail

      • PortalUtil

        public PortalUtil()
    • Method Detail

      • generateNewGuid

        public static java.lang.String generateNewGuid()
      • generateClientScript

        public static java.lang.String generateClientScript​(java.lang.String script)
      • getExceptionDetailsHtml

        public static java.lang.String getExceptionDetailsHtml​(java.lang.Throwable e,
                                                               HttpServletRequest request)
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getWebsite

        @Deprecated
        public static java.lang.String getWebsite​(HttpServletRequest request)
        Deprecated.
        Since 6.2.0 use IWebsiteManager.getWebsiteBaseURL(HttpServletRequest) to get the IWebsiteBaseURL that represents the website url for the given request.
        Returns the website for the given request.

        The website string is in the format '<hostname>:<port>/<uri>'. If the uri is empty, the slash will not be present.

        Parameters:
        request - the request.
        Returns:
        the website string, or null if request is null.