@Component(value="cuba_LoginScreenAuthDelegate")
@Scope(value="vaadin")
public class LoginScreenAuthDelegate
extends java.lang.Object
LoginScreen
, AppLoginWindow
and provides performing log in.Modifier and Type | Class and Description |
---|---|
static class |
LoginScreenAuthDelegate.AuthInfo
Contains user's auth information.
|
Modifier and Type | Field and Description |
---|---|
protected App |
app |
protected Connection |
connection |
protected GlobalConfig |
globalConfig |
protected Messages |
messages |
static java.lang.String |
NAME |
protected UserManagementService |
userManagementService |
protected WebAuthConfig |
webAuthConfig |
protected WebConfig |
webConfig |
Constructor and Description |
---|
LoginScreenAuthDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
doLogin(Credentials credentials,
boolean isLocalesSelectVisible)
Performs log in with credentials.
|
void |
doLogin(java.lang.String login,
java.lang.String password,
java.util.Locale selectedLocale,
boolean isLocalesSelectVisible)
Performs log in.
|
void |
doRememberMeLogin(boolean isLocalesSelectVisible)
Do login with "remember me" cookies.
|
void |
resetRememberCookies()
Clears cookies.
|
protected void |
setApp(App app) |
protected void |
setConnection(Connection connection) |
protected void |
setGlobalConfig(GlobalConfig globalConfig) |
protected void |
setMessages(Messages messages) |
void |
setRememberMeCookies(java.lang.String login)
Sets "remember me" cookies.
|
protected void |
setUserManagementService(UserManagementService userManagementService) |
protected void |
setWebAuthConfig(WebAuthConfig webAuthConfig) |
protected void |
setWebConfig(WebConfig webConfig) |
public static final java.lang.String NAME
protected App app
protected Connection connection
protected GlobalConfig globalConfig
protected WebConfig webConfig
protected WebAuthConfig webAuthConfig
protected UserManagementService userManagementService
protected Messages messages
@Inject protected void setApp(App app)
@Inject protected void setConnection(Connection connection)
@Inject protected void setGlobalConfig(GlobalConfig globalConfig)
@Inject protected void setWebConfig(WebConfig webConfig)
@Inject protected void setWebAuthConfig(WebAuthConfig webAuthConfig)
@Inject protected void setUserManagementService(UserManagementService userManagementService)
@Inject protected void setMessages(Messages messages)
public void doLogin(java.lang.String login, java.lang.String password, java.util.Locale selectedLocale, boolean isLocalesSelectVisible) throws InternalAuthenticationException, LoginException
login
- user loginpassword
- user passwordselectedLocale
- selected localeisLocalesSelectVisible
- is locales select visibleInternalAuthenticationException
- if authentication mechanisms cannot process an authentication requestLoginException
- if authentication failspublic void doLogin(Credentials credentials, boolean isLocalesSelectVisible) throws LoginException
credentials
- user credentialsisLocalesSelectVisible
- is locales select visibleLoginException
- if authentication failspublic void doRememberMeLogin(boolean isLocalesSelectVisible)
isLocalesSelectVisible
- is locales field visiblepublic void setRememberMeCookies(java.lang.String login)
login
- login to save.public void resetRememberCookies()