use of org.keycloak.models.sessions.infinispan.changes.ClientSessionUpdateTask in project keycloak by keycloak.
the class AuthenticatedClientSessionAdapter method removeNote.
@Override
public void removeNote(String name) {
ClientSessionUpdateTask task = new ClientSessionUpdateTask() {
@Override
public void runUpdate(AuthenticatedClientSessionEntity entity) {
entity.getNotes().remove(name);
}
};
update(task);
}
use of org.keycloak.models.sessions.infinispan.changes.ClientSessionUpdateTask in project keycloak by keycloak.
the class AuthenticatedClientSessionAdapter method setNote.
@Override
public void setNote(String name, String value) {
ClientSessionUpdateTask task = new ClientSessionUpdateTask() {
@Override
public void runUpdate(AuthenticatedClientSessionEntity entity) {
entity.getNotes().put(name, value);
}
};
update(task);
}
use of org.keycloak.models.sessions.infinispan.changes.ClientSessionUpdateTask in project keycloak by keycloak.
the class AuthenticatedClientSessionAdapter method setCurrentRefreshToken.
@Override
public void setCurrentRefreshToken(String currentRefreshToken) {
ClientSessionUpdateTask task = new ClientSessionUpdateTask() {
@Override
public void runUpdate(AuthenticatedClientSessionEntity entity) {
entity.setCurrentRefreshToken(currentRefreshToken);
}
};
update(task);
}
Aggregations