public class ApplicationExtendedFunctionalAdapter extends ApplicationFunctionalAdapter implements ApplicationExtended
Constructor and Description |
---|
ApplicationExtendedFunctionalAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
addCanLogOnPredicate(Predicate<SessionID> canlogon)
Add a Predicate of Session to the canLogon evaluation.
|
void |
addOnBeforeSessionResetListener(Consumer<SessionID> onBeforeSessionReset)
Add a Consumer of SessionID to listen to onBeforeSessionReset operation.
|
boolean |
canLogon(SessionID sessionID)
If returns false, the session logon is aborted, without sending any logon.
|
void |
onBeforeSessionReset(SessionID sessionID)
This method is called before reset a session to allow business application to do some
actions(typically sending notification message to client before end of day)
|
void |
removeBeforeSessionResetListener(Consumer<SessionID> onBeforeSessionReset)
Remove a Consumer of SessionID from onBeforeSessionReset operation.
|
void |
removeCanLogOnPredicate(Predicate<SessionID> canlogon)
Remove a Predicate of Session from the canLogon evaluation.
|
addFromAdminListener, addFromAdminListener, addFromAppListener, addFromAppListener, addOnCreateListener, addOnLogonListener, addOnLogoutListener, addToAdminListener, addToAdminListener, addToAppListener, addToAppListener, fromAdmin, fromApp, onCreate, onLogon, onLogout, removeFromAdminListener, removeFromAppListener, removeOnCreateListener, removeOnLogonListener, removeOnLogoutListener, removeToAdminListener, removeToAppListener, toAdmin, toApp
public ApplicationExtendedFunctionalAdapter()
public void addCanLogOnPredicate(Predicate<SessionID> canlogon)
canlogon
- the Predicate of Session to the canLogon evaluation.public void removeCanLogOnPredicate(Predicate<SessionID> canlogon)
canlogon
- the Predicate of Session to the canLogon evaluation.public void addOnBeforeSessionResetListener(Consumer<SessionID> onBeforeSessionReset)
onBeforeSessionReset
- the Consumer of SessionID to listen to onBeforeSessionReset operation.public void removeBeforeSessionResetListener(Consumer<SessionID> onBeforeSessionReset)
onBeforeSessionReset
- the Consumer of SessionID to listen to onBeforeSessionReset operation.public boolean canLogon(SessionID sessionID)
ApplicationExtended
canLogon
in interface ApplicationExtended
sessionID
- the sessionpublic void onBeforeSessionReset(SessionID sessionID)
ApplicationExtended
onBeforeSessionReset
in interface ApplicationExtended
Copyright © 2021. All rights reserved.