Class LoginScreenHelper
java.lang.Object
org.nuxeo.ecm.platform.ui.web.auth.LoginScreenHelper
Simple helper class for easy access form the login.jsp page
- Since:
- 5.7
- Author:
- Tiry
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LoginScreenConfigprotected static LoginStartupPageReturns theLoginStartupPagecontribution with the highest priority ornullif none is contributed.static booleangetDisplayMobileBanner(javax.servlet.http.HttpServletRequest request) Deprecated.since 2023.22, the mobile banner was removed from the login pageprotected static PluggableAuthenticationServicestatic StringReturns the path of the startup page depending on theLoginScreenConfig/LoginStartupPagecontributions to theloginScreenextension point.Returns the paths of the startup pages coming from theLoginScreenConfig/LoginStartupPagecontributions to theloginScreenextension point.static StringgetStartupPageURL(javax.servlet.http.HttpServletRequest request) Returns the startup page URL according to the path returned bygetStartupPagePath().static StringgetValueWithDefault(String value, String defaultValue) static voidregisterLoginProvider(String name, String iconUrl, String link, String label, String description, LoginProviderLinkComputer computer) Deprecated.static LoginScreenConfigregisterSingleProviderLoginScreenConfig(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.static voidUnregisters the given login screen configuration.
-
Field Details
-
DEFAULT_STARTUP_PAGE_PATH
- Since:
- 8.4
- See Also:
-
-
Method Details
-
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
Unregisters the given login screen configuration.- Since:
- 10.10
-
registerLoginProvider
@Deprecated public static void registerLoginProvider(String name, String iconUrl, String link, String label, String description, LoginProviderLinkComputer computer) Deprecated. -
getValueWithDefault
-
getStartupPageURL
Returns the startup page URL according to the path returned bygetStartupPagePath().- Since:
- 8.4
-
getStartupPagePath
Returns the path of the startup page depending on theLoginScreenConfig/LoginStartupPagecontributions to theloginScreenextension point.- Since:
- 8.4
-
getStartupPagePaths
Returns the paths of the startup pages coming from theLoginScreenConfig/LoginStartupPagecontributions to theloginScreenextension point.- Since:
- 8.10
-
getDisplayMobileBanner
@Deprecated(since="2023.22") public static boolean getDisplayMobileBanner(javax.servlet.http.HttpServletRequest request) Deprecated.since 2023.22, the mobile banner was removed from the login pageReturns whether mobile app banner should be display or not. If thedisplayMobileBannerrequest parameter is used, then it overrides theLoginScreenConfig.getDisplayMobileBanner()configuration. If there is noLoginScreenConfig, the default value istrue.- Since:
- 2021.12
-
getDefaultStartupPage
Returns theLoginStartupPagecontribution with the highest priority ornullif none is contributed.- Since:
- 8.4
-
getPluggableAuthenticationService
-