@Component(value="cuba_App") @Scope(value="vaadin") public class DefaultApp extends App
App
implementation that shows AppLoginWindow
on start. Single instance of App is bound to
single HTTP session.APP_THEME_COOKIE_PREFIX, appLog, backgroundTaskManager, beanLocator, connection, COOKIE_LOCALE, cookies, events, exceptionHandlers, globalConfig, linkHandler, messageTools, NAME, settingsClient, themeConstants, themeConstantsRepository, USER_SESSION_ATTR, userSessionService, userSessionSource, webAuthConfig, webConfig, windowConfig
Constructor and Description |
---|
DefaultApp() |
Modifier and Type | Method and Description |
---|---|
protected void |
connectionStateChanged(Connection.StateChangeEvent event) |
protected Connection |
createConnection() |
protected void |
initializeUi() |
void |
loginOnStart() |
void |
navigateTo(java.lang.String topLevelWindowId)
Deprecated.
|
protected void |
notifyMismatchedSessionUi(AppUI ui) |
protected void |
notifyMismatchedUIs(UserSession userSession) |
protected void |
preventSessionFixation(Connection connection,
UserSession userSession) |
protected void |
publishAppLoggedInEvent() |
protected void |
publishAppLoggedOutEvent(UserSession previousSession) |
protected void |
publishAppStartedEvent() |
protected void |
redirectAfterLogout(java.lang.String loggedOutUrl) |
protected java.lang.String |
routeTopLevelWindowId() |
protected void |
updateUiUserSessions() |
protected void |
userSubstituted(Connection.UserSubstitutedEvent event) |
addBackgroundTask, addCookie, addCookie, applyTheme, cleanupBackgroundTasks, clearSettingsCache, createTopLevelWindow, createTopLevelWindow, forceLogout, getAppLog, getAppUI, getAppUIs, getConnection, getCookieMaxAge, getCookieValue, getExceptionHandlers, getInstance, getLocale, getThemeConstants, getTopLevelWindow, getWindowManager, init, initExceptionHandlers, isBound, loadTheme, logout, logout, onHeartbeat, performStandardLogout, recreateUi, removeAllWindows, removeAllWindows, removeBackgroundTask, removeCookie, resolveLocale, setLocale, setUserAppTheme
protected Connection createConnection()
createConnection
in class App
protected void connectionStateChanged(Connection.StateChangeEvent event)
protected void notifyMismatchedUIs(UserSession userSession)
protected void notifyMismatchedSessionUi(AppUI ui)
protected void userSubstituted(Connection.UserSubstitutedEvent event)
protected void updateUiUserSessions()
protected void publishAppLoggedOutEvent(UserSession previousSession)
protected void redirectAfterLogout(java.lang.String loggedOutUrl)
protected void publishAppLoggedInEvent()
protected void initializeUi()
protected void preventSessionFixation(Connection connection, UserSession userSession)
protected java.lang.String routeTopLevelWindowId()
routeTopLevelWindowId
in class App
public void loginOnStart() throws LoginException
loginOnStart
in class App
LoginException
protected void publishAppStartedEvent() throws LoginException
LoginException
@Deprecated public void navigateTo(java.lang.String topLevelWindowId)
Screens.create(Class, Screens.LaunchMode)
with OpenMode.ROOT
App
navigateTo
in class App
topLevelWindowId
- target top level window id