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 |
Constructor and Description |
---|
LoginScreenHelper() |
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. |
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) |
protected static final org.apache.commons.logging.Log log
public static final String DEFAULT_STARTUP_PAGE_PATH
public LoginScreenHelper()
public static LoginScreenConfig getConfig()
public static void registerLoginProvider(String name, String iconUrl, String link, String label, String description, LoginProviderLinkComputer computer)
public 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.Copyright © 2018 Nuxeo. All rights reserved.