public class LoginScreenHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_STARTUP_PAGE_PATH |
protected static org.apache.commons.logging.Log |
log |
Modifier and Type | Method and Description |
---|---|
static LoginScreenConfig |
getConfig() |
protected static LoginStartupPage |
getDefaultStartupPage(LoginScreenConfig config)
Returns the
LoginStartupPage contribution with the highest priority or null if none is
contributed. |
protected static PluggableAuthenticationService |
getPluggableAuthenticationService() |
static String |
getStartupPagePath()
Returns the path of the startup page depending on the
LoginScreenConfig /LoginStartupPage
contributions to the loginScreen extension point. |
static List<String> |
getStartupPagePaths()
Returns the paths of the startup pages coming from the
LoginScreenConfig /LoginStartupPage
contributions to the loginScreen extension point. |
static String |
getStartupPageURL(javax.servlet.http.HttpServletRequest request)
Returns the startup page URL according to the path returned by
getStartupPagePath() . |
static String |
getValueWithDefault(String value,
String defaultValue) |
static void |
registerLoginProvider(String name,
String iconUrl,
String link,
String label,
String description,
LoginProviderLinkComputer computer)
Deprecated.
|
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.
|
static void |
unregisterLoginScreenConfig(LoginScreenConfig config)
Unregisters the given login screen configuration.
|
protected static final org.apache.commons.logging.Log log
public static final String DEFAULT_STARTUP_PAGE_PATH
public static LoginScreenConfig getConfig()
public static LoginScreenConfig registerSingleProviderLoginScreenConfig(String name, String iconUrl, String link, String label, String description, LoginProviderLinkComputer computer)
public static void unregisterLoginScreenConfig(LoginScreenConfig config)
@Deprecated public static void registerLoginProvider(String name, String iconUrl, String link, String label, String description, LoginProviderLinkComputer computer)
registerSingleProviderLoginScreenConfig(String, String, String, String, String, LoginProviderLinkComputer)
insteadpublic static String getValueWithDefault(String value, String defaultValue)
public static String getStartupPageURL(javax.servlet.http.HttpServletRequest request)
getStartupPagePath()
.public static String getStartupPagePath()
LoginScreenConfig
/LoginStartupPage
contributions to the loginScreen
extension point.public static List<String> getStartupPagePaths()
LoginScreenConfig
/LoginStartupPage
contributions to the loginScreen
extension point.protected static LoginStartupPage getDefaultStartupPage(LoginScreenConfig config)
LoginStartupPage
contribution with the highest priority or null
if none is
contributed.protected static PluggableAuthenticationService getPluggableAuthenticationService()
Copyright © 2019 Nuxeo. All rights reserved.