Class CheckSession
- java.lang.Object
-
- org.gcube.portlets.widgets.sessionchecker.client.CheckSession
-
@Deprecated public class CheckSession extends Object
Deprecated.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CheckSessiongetInstance()Deprecated.method with no events launching when session expiresstatic CheckSessiongetInstance(com.google.gwt.event.shared.HandlerManager eventBus)Deprecated.use this method if you want to get an event when session expiresStringgetScope()Deprecated.StringgetUsername()Deprecated.booleanisShowSessionExpiredDialog()Deprecated.voidsetShowSessionExpiredDialog(boolean showSessionExpiredDialog)Deprecated.static voidshowLogoutDialog()Deprecated.shows the logout dialogstatic voidshowLogoutDialog(HashMap<String,String> paramsMap)Deprecated.shows the logout dialog with redirection appended with parametersMapvoidstartPolling()Deprecated.use to start checking if the session expiredvoidstopPolling()Deprecated.use to stop checking if the session expired
-
-
-
Method Detail
-
getInstance
public static CheckSession getInstance(com.google.gwt.event.shared.HandlerManager eventBus)
Deprecated.use this method if you want to get an event when session expires- Parameters:
eventBus- your GWT webapp instance ofHandlerManager
-
getInstance
public static CheckSession getInstance()
Deprecated.method with no events launching when session expires
-
showLogoutDialog
public static void showLogoutDialog()
Deprecated.shows the logout dialog
-
showLogoutDialog
public static void showLogoutDialog(HashMap<String,String> paramsMap)
Deprecated.shows the logout dialog with redirection appended with parametersMap- Parameters:
paramsMap- a map containing the attrs and related values of what you want after the ? e.g. aUrl?name=foo&lastname=fie
-
getUsername
public String getUsername()
Deprecated.
-
getScope
public String getScope()
Deprecated.
-
startPolling
public void startPolling()
Deprecated.use to start checking if the session expired
-
stopPolling
public void stopPolling()
Deprecated.use to stop checking if the session expired
-
isShowSessionExpiredDialog
public boolean isShowSessionExpiredDialog()
Deprecated.
-
setShowSessionExpiredDialog
public void setShowSessionExpiredDialog(boolean showSessionExpiredDialog)
Deprecated.
-
-