use of org.keycloak.models.jpa.entities.ProtocolMapperEntity in project keycloak by keycloak.
the class ClientAdapter method removeProtocolMapper.
@Override
public void removeProtocolMapper(ProtocolMapperModel mapping) {
ProtocolMapperEntity toDelete = getProtocolMapperEntity(mapping.getId());
if (toDelete != null) {
session.users().preRemove(mapping);
this.entity.getProtocolMappers().remove(toDelete);
em.remove(toDelete);
}
}
Aggregations