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() |
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 String getUsername()
public String getScope()
public void startPolling()
public void stopPolling()
public boolean isShowSessionExpiredDialog()
public void setShowSessionExpiredDialog(boolean showSessionExpiredDialog)
Copyright © 2014. All Rights Reserved.