public class CheckSession extends Object
Modifier and Type | Method and Description |
---|---|
static CheckSession |
getInstance()
method with no events launching when session expires
|
static CheckSession |
getInstance(com.google.gwt.event.shared.HandlerManager eventBus)
use this method if you want to get an event when session expires
|
String |
getScope() |
String |
getUsername() |
boolean |
isShowSessionExpiredDialog() |
void |
setShowSessionExpiredDialog(boolean showSessionExpiredDialog) |
static void |
showLogoutDialog()
shows the logout dialog
|
static void |
showLogoutDialog(HashMap<String,String> paramsMap)
shows the logout dialog with redirection appended with parametersMap
|
void |
startPolling()
use to start checking if the session expired
|
void |
stopPolling()
use to stop checking if the session expired
|
public static CheckSession getInstance(com.google.gwt.event.shared.HandlerManager eventBus)
eventBus
- your GWT webapp instance of HandlerManager
public static CheckSession getInstance()
public static void showLogoutDialog()
public static void showLogoutDialog(HashMap<String,String> paramsMap)
paramsMap
- a map containing the attrs and related values of what you want after the ?
e.g. aUrl?name=foo&lastname=fiepublic String getUsername()
public String getScope()
public void startPolling()
public void stopPolling()
public boolean isShowSessionExpiredDialog()
public void setShowSessionExpiredDialog(boolean showSessionExpiredDialog)
Copyright © 2016. All Rights Reserved.