use of edu.stanford.bmir.protege.web.shared.user.LogOutUserResult in project webprotege by protegeproject.
the class LogOutUserActionHandler method execute.
@Nonnull
@Override
public LogOutUserResult execute(@Nonnull LogOutUserAction action, @Nonnull ExecutionContext executionContext) {
WebProtegeSession session = executionContext.getSession();
UserId userId = session.getUserInSession();
session.clearUserInSession();
if (!userId.isGuest()) {
userActivityManager.setLastLogout(userId, System.currentTimeMillis());
}
return new LogOutUserResult(userInSessionFactory.getUserInSession(UserId.getGuest()));
}
Aggregations