Package com.jgcomptech.tools.authc
Class SessionManager.EventListeners
- java.lang.Object
-
- com.jgcomptech.tools.authc.SessionManager.EventListeners
-
- Enclosing class:
- SessionManager
public final class SessionManager.EventListeners extends java.lang.Object
Contains methods for all session related event handlers.- Since:
- 1.5.0
-
-
Constructor Summary
Constructors Constructor Description EventListeners()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setOnAdminOverrideFailure(EventHandler<SessionEvent> e)
Sets the event handler that will fire when an admin override succeeds.void
setOnAdminOverrideStarted(EventHandler<SessionEvent> e)
Sets the event handler that will fire when an admin override starts.void
setOnAdminOverrideSuccess(EventHandler<SessionEvent> e)
Sets the event handler that will fire when an admin override succeeds.void
setOnLoginFailure(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user login fails.void
setOnLoginState(EventHandler<SessionEvent> success, EventHandler<SessionEvent> failure)
Sets the event handlers that will fire when a user login state changes.void
setOnLoginSuccess(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user login succeeds.void
setOnMultiSessionClosed(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is closed.void
setOnMultiSessionOpened(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is opened.void
setOnSessionClosed(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is closed.void
setOnSessionOpened(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is opened.void
setOnSessionState(EventHandler<SessionEvent> opened, EventHandler<SessionEvent> closed)
Sets the event handlers that will fire when the session state changes.void
setOnUserVerifyFailure(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user verify fails.void
setOnUserVerifyStarted(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user verify starts.void
setOnUserVerifySuccess(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user verify succeeds.
-
-
-
Method Detail
-
setOnSessionOpened
public void setOnSessionOpened(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is opened. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the sessionOpened event in the EventManager.- Parameters:
e
- the event handler
-
setOnSessionClosed
public void setOnSessionClosed(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is closed. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the sessionClosed event in the EventManager.- Parameters:
e
- the event handler
-
setOnSessionState
public void setOnSessionState(EventHandler<SessionEvent> opened, EventHandler<SessionEvent> closed)
Sets the event handlers that will fire when the session state changes. The currently assigned event handlers are removed if the parameters are null. The opened event handler is assigned to the sessionOpened event in the EventManager. The closed event handler is assigned to the sessionClosed event in the EventManager.- Parameters:
opened
- the opened event handlerclosed
- the closed event handler
-
setOnMultiSessionOpened
public void setOnMultiSessionOpened(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is opened. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the multiSessionOpened event in the EventManager.- Parameters:
e
- the event handler
-
setOnMultiSessionClosed
public void setOnMultiSessionClosed(EventHandler<SessionEvent> e)
Sets the event handler that will fire when the session is closed. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the multiSessionClosed event in the EventManager.- Parameters:
e
- the event handler
-
setOnLoginSuccess
public void setOnLoginSuccess(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user login succeeds. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the sessionLoginSuccess event in the EventManager.- Parameters:
e
- the event handler
-
setOnLoginFailure
public void setOnLoginFailure(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user login fails. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the sessionLoginFailure event in the EventManager.- Parameters:
e
- the event handler
-
setOnLoginState
public void setOnLoginState(EventHandler<SessionEvent> success, EventHandler<SessionEvent> failure)
Sets the event handlers that will fire when a user login state changes. The currently assigned event handlers are removed if the parameters are null. The success event handler is assigned to the sessionLoginSuccess event in the EventManager. The failure event handler is assigned to the sessionLoginFailure event in the EventManager.- Parameters:
success
- the success event handlerfailure
- the failure event handler
-
setOnAdminOverrideStarted
public void setOnAdminOverrideStarted(EventHandler<SessionEvent> e)
Sets the event handler that will fire when an admin override starts. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the adminOverrideStarted event in the EventManager.- Parameters:
e
- the event handler
-
setOnAdminOverrideSuccess
public void setOnAdminOverrideSuccess(EventHandler<SessionEvent> e)
Sets the event handler that will fire when an admin override succeeds. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the adminOverrideSuccess event in the EventManager.- Parameters:
e
- the event handler
-
setOnAdminOverrideFailure
public void setOnAdminOverrideFailure(EventHandler<SessionEvent> e)
Sets the event handler that will fire when an admin override succeeds. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the adminOverrideFailure event in the EventManager.- Parameters:
e
- the event handler
-
setOnUserVerifyStarted
public void setOnUserVerifyStarted(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user verify starts. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the userVerifyStarted event in the EventManager.- Parameters:
e
- the event handler
-
setOnUserVerifySuccess
public void setOnUserVerifySuccess(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user verify succeeds. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the userVerifySucceeded event in the EventManager.- Parameters:
e
- the event handler
-
setOnUserVerifyFailure
public void setOnUserVerifyFailure(EventHandler<SessionEvent> e)
Sets the event handler that will fire when a user verify fails. The currently assigned event handler is removed if the parameter is null. The specified event handler is assigned to the userVerifyFailure event in the EventManager.- Parameters:
e
- the event handler
-
-