Class LoginScreenHelper

java.lang.Object
org.nuxeo.ecm.platform.ui.web.auth.LoginScreenHelper

public class LoginScreenHelper extends Object
Simple helper class for easy access form the login.jsp page
Since:
5.7
Author:
Tiry
  • Field Details

  • Method Details

    • getConfig

      public static LoginScreenConfig getConfig()
    • registerSingleProviderLoginScreenConfig

      public static LoginScreenConfig registerSingleProviderLoginScreenConfig(String name, String iconUrl, String link, String label, String description, LoginProviderLinkComputer computer)
      Registers and returns a login screen configuration including a single login provider described by the given parameters.
      Since:
      10.10
    • unregisterLoginScreenConfig

      public static void unregisterLoginScreenConfig(LoginScreenConfig config)
      Unregisters the given login screen configuration.
      Since:
      10.10
    • getValueWithDefault

      public static String getValueWithDefault(String value, String defaultValue)
    • getStartupPageURL

      public static String getStartupPageURL(jakarta.servlet.http.HttpServletRequest request)
      Returns the startup page URL according to the path returned by getStartupPagePath().
      Since:
      8.4
    • getStartupPagePath

      public static String getStartupPagePath()
      Returns the path of the startup page depending on the LoginScreenConfig/LoginStartupPage contributions to the loginScreen extension point.
      Since:
      8.4
    • getStartupPagePaths

      public static List<String> getStartupPagePaths()
      Returns the paths of the startup pages coming from the LoginScreenConfig/LoginStartupPage contributions to the loginScreen extension point.
      Since:
      8.10
    • getDefaultStartupPage

      protected static LoginStartupPage getDefaultStartupPage(LoginScreenConfig config)
      Returns the LoginStartupPage contribution with the highest priority or null if none is contributed.
      Since:
      8.4
    • getPluggableAuthenticationService

      protected static PluggableAuthenticationService getPluggableAuthenticationService()