@Override public UserSessionModel getUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) { List<UserSessionModel> userSessions = getUserSessions(realm, UserSessionPredicate.create(realm.getId()).brokerSessionId(brokerSessionId), false); return userSessions.isEmpty() ? null : userSessions.get(0); }
@Override public UserSessionModel getUserSessionByBrokerSessionId(RealmModel realm, String brokerSessionId) { List<UserSessionModel> userSessions = getUserSessions(realm, UserSessionPredicate.create(realm.getId()).brokerSessionId(brokerSessionId), false); return userSessions.isEmpty() ? null : userSessions.get(0); }
public UserSessionPredicate readObjectVersion1(ObjectInput input) throws IOException, ClassNotFoundException { UserSessionPredicate res = new UserSessionPredicate(MarshallUtil.unmarshallString(input)); res.user(MarshallUtil.unmarshallString(input)); res.client(MarshallUtil.unmarshallString(input)); res.expired(KeycloakMarshallUtil.unmarshallInteger(input), KeycloakMarshallUtil.unmarshallInteger(input)); res.brokerSessionId(MarshallUtil.unmarshallString(input)); res.brokerUserId(MarshallUtil.unmarshallString(input)); return res; }
public UserSessionPredicate readObjectVersion2(ObjectInput input) throws IOException, ClassNotFoundException { UserSessionPredicate res = new UserSessionPredicate(MarshallUtil.unmarshallString(input)); res.user(MarshallUtil.unmarshallString(input)); res.client(MarshallUtil.unmarshallString(input)); res.expired(KeycloakMarshallUtil.unmarshallInteger(input), KeycloakMarshallUtil.unmarshallInteger(input), KeycloakMarshallUtil.unmarshallInteger(input), KeycloakMarshallUtil.unmarshallInteger(input)); res.brokerSessionId(MarshallUtil.unmarshallString(input)); res.brokerUserId(MarshallUtil.unmarshallString(input)); return res; } }