Class DefaultIdentityCheckHandler
java.lang.Object
de.xima.fc.gui.common.event.handler.DefaultIdentityCheckHandler
- All Implemented Interfaces:
IApplicationEventHandler
,ISessionEventHandler
,Serializable
Default identity check handler that executes a Java method if the tokens match.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(IdentityCheckCallbackEvent event) Handles an identity check callback event by invoking the callback handler if the tokens matches the configured token.static DefaultIdentityCheckHandler
of
(String token, Consumer<IdentityCheckCallbackEvent> callback) Create a newDefaultIdentityCheckHandler
that listens forIdentityCheckCallbackEvent
and invokes the given callback handler if the event's token matches the given token.
-
Method Details
-
of
public static DefaultIdentityCheckHandler of(String token, Consumer<IdentityCheckCallbackEvent> callback) Create a newDefaultIdentityCheckHandler
that listens forIdentityCheckCallbackEvent
and invokes the given callback handler if the event's token matches the given token.- Parameters:
token
- A token to which to limit hte callback.callback
- Callback to invoke if the token matches.- Returns:
- A new session event handler for handling callbacks for a given token.
-
handle
Handles an identity check callback event by invoking the callback handler if the tokens matches the configured token.- Parameters:
event
- Event that was posted.
-