Class SessionExpiredCommand
java.lang.Object
org.pentaho.mantle.client.commands.AbstractCommand
org.pentaho.mantle.client.commands.SessionExpiredCommand
- All Implemented Interfaces:
com.google.gwt.core.client.Scheduler.ScheduledCommand
,com.google.gwt.user.client.Command
public class SessionExpiredCommand
extends org.pentaho.mantle.client.commands.AbstractCommand
Shows a session expired dialog in a top frame.
Won't work on the screens missing the mantle application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
protected String
protected int
If the session is expired returns a negative value.protected void
protected void
performOperation
(boolean feedback) protected void
Don't be fooled with a System.currentTimeMillis() - in GWT it's a client side time.protected void
void
setPollingInterval
(Integer pollingInterval) Methods inherited from class org.pentaho.mantle.client.commands.AbstractCommand
execute, execute, execute, execute, execute, performOperationAsync
-
Constructor Details
-
SessionExpiredCommand
public SessionExpiredCommand()
-
-
Method Details
-
performOperation
protected void performOperation()- Specified by:
performOperation
in classorg.pentaho.mantle.client.commands.AbstractCommand
-
performOperation
protected void performOperation(boolean feedback) - Specified by:
performOperation
in classorg.pentaho.mantle.client.commands.AbstractCommand
-
getPollingInterval
-
setPollingInterval
-
getNextCheckShift
protected int getNextCheckShift()If the session is expired returns a negative value. If the session is not expired returns a time left before expiration. If the cookie is not set returns a default polling interval.- Returns:
- time shift for the next check
-
getClientTime
protected long getClientTime() -
setClientTimeOffset
protected void setClientTimeOffset()Don't be fooled with a System.currentTimeMillis() - in GWT it's a client side time. To eliminate a possible client clock desynchronization effect we need to calculate an offset between client and server time. Also there always will be a small positive offset equal to a time between the page load nad servlet invocation.In case of any unpredicted situation the offset is set to 0.
-
getCookie
-
setCookie
-