Пример #1
0
  public static void updateContext(Long userId, Long accountId, String sessionId) {
    UserContext context = current();
    assert (context != null) : "Context should be already setup before you can call this one";

    context.setUserId(userId);
    context.setAccountId(accountId);
    context.setSessionKey(sessionId);
  }