use of no.nav.pto.veilarbportefolje.domene.StatusTall in project veilarbportefolje by navikt.
the class OpensearchService method hentStatusTallForEnhet.
public StatusTall hentStatusTallForEnhet(String enhetId) {
List<String> veilederPaaEnhet = veilarbVeilederClient.hentVeilederePaaEnhet(EnhetId.of(enhetId));
boolean vedtakstottePilotErPa = this.erVedtakstottePilotPa(EnhetId.of(enhetId));
SearchSourceBuilder request = byggStatusTallForEnhetQuery(enhetId, veilederPaaEnhet, vedtakstottePilotErPa);
StatustallResponse response = search(request, indexName.getValue(), StatustallResponse.class);
StatustallBuckets buckets = response.getAggregations().getFilters().getBuckets();
return new StatusTall(buckets, vedtakstottePilotErPa);
}
use of no.nav.pto.veilarbportefolje.domene.StatusTall in project veilarbportefolje by navikt.
the class OpensearchService method hentStatusTallForVeileder.
public StatusTall hentStatusTallForVeileder(String veilederId, String enhetId) {
boolean vedtakstottePilotErPa = this.erVedtakstottePilotPa(EnhetId.of(enhetId));
SearchSourceBuilder request = byggStatusTallForVeilederQuery(enhetId, veilederId, emptyList(), vedtakstottePilotErPa);
StatustallResponse response = search(request, indexName.getValue(), StatustallResponse.class);
StatustallBuckets buckets = response.getAggregations().getFilters().getBuckets();
return new StatusTall(buckets, vedtakstottePilotErPa);
}
Aggregations