Helper class used in managing session timer and display of session timeout dialogs
Method Summary
|
Object |
__alertTimeout()
-
Show the final session timeout alert dialog.
|
private Object |
_cancelAndRescheduleSessionTimeoutTimer(Object timeout, Object warningBeforeTimeout, Object newSessionURL)
|
Object |
__cancelSessionTimeoutTimer()
-
Cancel session tiemout warning timer and session timeout timer.
|
private Object |
_cleanupLocalStorageSessionKeys()
-
Cleans the web local storage of all the session keys and expiry time values for those sessions that have expired.
|
private Object |
_extendSessionInServer()
-
Extends the life of the session in server by touching it, and does the necessary timer sync up on the client
|
private Object |
_getTimeLeftToSessionTimeout()
-
Gets the time remaining for the session to timeout, based on the value stored in web local storage Returns null if the web local storage was not enabled or if it did not have the timeout value.
|
public AdfSessionTimeoutHelper.TimeoutWindowStates |
getTimeoutWindowState()
-
Accessor for the current "timeout window" state.
|
private Object |
_handleFinalSessionTimeoutAlert(Object adfDialogEvent)
-
Handler for the ok button press on the final session timed out alert window
|
private Object |
_handleSessionTimeoutWarningDialogOutcome(Object adfDialogEvent)
-
Handler for the ok / cancel press on the session timeout warning dialog
|
protected Object |
Init()
-
Create an instance of an AdfUserInactivityTimeoutHelper
|
Object |
__initializeSessionTimeoutTimer(Object timeout, Object warningBeforeTimeout, Object newSessionURL)
-
Initializes the session timeout timers and schedules the session timeout warning dialog to be shown at the computed time to warn.
|
private Object |
_isUserActiveOnClient(Object duration)
-
Checks if the user was active on the client back until the supplied duration
|
Object |
__recordUserActivity(Object event)
-
If the supplied event is a key press or mouse click, records a user activity at current time.
|
private Object |
_removeSessionTimeoutFromWebLocalStorage(Object timeout)
-
Remove earlier stored session expiry value for the current session if any.
|
private Object |
_setActivityTimeInWebLocalStorage()
-
Stores in web local storage the current time as the time of last user activity on the client
|
private Object |
_setSessionTimeoutInWebLocalStorage(Object timeout)
-
From the supplied time to timeout value, computes the time in the client when the session in the server would expire.
|
private number |
_showFinalSessionTimeoutAlertDialog()
-
Show the inline alert dialog when we think session has timed out.
|
private number |
_showSessionTimeoutWarningDialog()
-
Show dialog to warn when we think session is going to time out soon
|
Object |
__startSessionTimeoutTimer()
-
Start session timeout timer.
|
private Object |
_startSessionTimeoutTimer(Object timeout, Object warningBeforeTimeout, Object newSessionURL)
-
Start session tiemout warning timer.
|
private Object |
_touchServerSession()
-
Send a request to server to touch the server session.
|