Search in sources :

Example 1 with GetCurrentUserInSessionResult

use of edu.stanford.bmir.protege.web.shared.dispatch.actions.GetCurrentUserInSessionResult in project webprotege by protegeproject.

the class GetCurrentUserInSessionActionHandler method execute.

@Nonnull
@Override
public GetCurrentUserInSessionResult execute(@Nonnull GetCurrentUserInSessionAction action, @Nonnull ExecutionContext executionContext) {
    UserId userId = executionContext.getUserId();
    UserInSession userInSession = userInSessionFactory.getUserInSession(userId);
    return new GetCurrentUserInSessionResult(userInSession);
}
Also used : UserId(edu.stanford.bmir.protege.web.shared.user.UserId) GetCurrentUserInSessionResult(edu.stanford.bmir.protege.web.shared.dispatch.actions.GetCurrentUserInSessionResult) UserInSession(edu.stanford.bmir.protege.web.shared.app.UserInSession) Nonnull(javax.annotation.Nonnull)

Aggregations

UserInSession (edu.stanford.bmir.protege.web.shared.app.UserInSession)1 GetCurrentUserInSessionResult (edu.stanford.bmir.protege.web.shared.dispatch.actions.GetCurrentUserInSessionResult)1 UserId (edu.stanford.bmir.protege.web.shared.user.UserId)1 Nonnull (javax.annotation.Nonnull)1