Search in sources :

Example 1 with ILogoutService

use of org.eclipse.scout.rt.shared.services.common.security.ILogoutService in project scout.rt by eclipse.

the class AbstractClientSession method inactivateSession.

protected void inactivateSession() {
    try {
        ILogoutService logoutService = BEANS.opt(ILogoutService.class);
        if (logoutService != null) {
            logoutService.logout();
        }
    } finally {
        setActive(false);
        fireSessionChangedEvent(new SessionEvent(this, SessionEvent.TYPE_STOPPED));
        LOG.info("Client session stopped [session={}, user={}]", this, getUserId());
    }
}
Also used : ILogoutService(org.eclipse.scout.rt.shared.services.common.security.ILogoutService) SessionEvent(org.eclipse.scout.rt.shared.session.SessionEvent)

Aggregations

ILogoutService (org.eclipse.scout.rt.shared.services.common.security.ILogoutService)1 SessionEvent (org.eclipse.scout.rt.shared.session.SessionEvent)1