Add clearUpdatedFlag so the flag in associated protocol mappers can be cleared as well

Closes #11118
This commit is contained in:
Stefan Guilhen 2022-04-05 10:44:33 -03:00 committed by Hynek Mlnařík
parent 1f2ebf4cba
commit d952669f69

View file

@ -62,6 +62,12 @@ public interface MapClientEntity extends AbstractEntity, UpdatableEntity, Entity
|| Optional.ofNullable(getProtocolMappers()).orElseGet(Collections::emptyMap).values().stream().anyMatch(MapProtocolMapperEntity::isUpdated);
}
@Override
public void clearUpdatedFlag() {
this.updated = false;
Optional.ofNullable(getProtocolMappers()).orElseGet(Collections::emptyMap).values().forEach(UpdatableEntity::clearUpdatedFlag);
}
@Override
public Stream<String> getClientScopes(boolean defaultScope) {
final Map<String, Boolean> clientScopes = getClientScopes();