Class DispatcherServiceImpl
java.lang.Object
net.datenwerke.gf.client.dispatcher.DispatcherServiceImpl
- All Implemented Interfaces:
DispatcherService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A simple dispatcher service that checks if the user is currently logged in
and display either the login or the homepage screen
-
Field Summary
Fields inherited from interface net.datenwerke.gf.client.dispatcher.DispatcherService
REPORTSERVER_EVENT_BEFORE_STARTUP, REPORTSERVER_EVENT_DISPATCHING_STARTED, REPORTSERVER_EVENT_USER_LOGGED_IN_APPLICATION_LOADED -
Constructor Summary
ConstructorsConstructorDescriptionDispatcherServiceImpl(<any> login, <any> homepage, <any> homepageProvider, WaitOnEventUIService waitOnEventService, HookHandlerService hookHandler, ClientConfigService clientConfigService, UtilsUIService utilsUIService, HomepageDao homepageDao) -
Method Summary
Modifier and TypeMethodDescriptionvoidDisable the browser's default right click response.voiddispatch()Returns control to the dispatcher that decides which module will be rendered.booleanvoidvoidsetWarnOnExit(boolean warnOnExit)
-
Constructor Details
-
Method Details
-
dispatch
public void dispatch()Returns control to the dispatcher that decides which module will be rendered.- Specified by:
dispatchin interfaceDispatcherService
-
disableDefaultContextMenu
public void disableDefaultContextMenu()Disable the browser's default right click response. -
redirect
- Specified by:
redirectin interfaceDispatcherService
-
isWarnOnExit
public boolean isWarnOnExit()- Specified by:
isWarnOnExitin interfaceDispatcherService
-
setWarnOnExit
public void setWarnOnExit(boolean warnOnExit) - Specified by:
setWarnOnExitin interfaceDispatcherService
-