|
1 | 1 | package no.nav.vedtak.felles.integrasjon.person;
|
2 | 2 |
|
| 3 | +import java.net.HttpURLConnection; |
| 4 | +import java.net.http.HttpRequest; |
| 5 | +import java.util.List; |
| 6 | +import java.util.Set; |
| 7 | + |
3 | 8 | import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLOperationRequest;
|
4 | 9 | import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLRequest;
|
5 | 10 | import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLResponseProjection;
|
6 | 11 | import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLResult;
|
7 | 12 |
|
8 |
| -import no.nav.pdl.*; |
| 13 | +import no.nav.pdl.GeografiskTilknytning; |
| 14 | +import no.nav.pdl.GeografiskTilknytningResponseProjection; |
| 15 | +import no.nav.pdl.HentGeografiskTilknytningQueryRequest; |
| 16 | +import no.nav.pdl.HentGeografiskTilknytningQueryResponse; |
| 17 | +import no.nav.pdl.HentIdenterBolkQueryRequest; |
| 18 | +import no.nav.pdl.HentIdenterBolkQueryResponse; |
| 19 | +import no.nav.pdl.HentIdenterBolkResult; |
| 20 | +import no.nav.pdl.HentIdenterBolkResultResponseProjection; |
| 21 | +import no.nav.pdl.HentIdenterQueryRequest; |
| 22 | +import no.nav.pdl.HentIdenterQueryResponse; |
| 23 | +import no.nav.pdl.HentPersonBolkQueryRequest; |
| 24 | +import no.nav.pdl.HentPersonBolkQueryResponse; |
| 25 | +import no.nav.pdl.HentPersonBolkResult; |
| 26 | +import no.nav.pdl.HentPersonBolkResultResponseProjection; |
| 27 | +import no.nav.pdl.HentPersonQueryRequest; |
| 28 | +import no.nav.pdl.HentPersonQueryResponse; |
| 29 | +import no.nav.pdl.Identliste; |
| 30 | +import no.nav.pdl.IdentlisteResponseProjection; |
| 31 | +import no.nav.pdl.Person; |
| 32 | +import no.nav.pdl.PersonResponseProjection; |
9 | 33 | import no.nav.vedtak.felles.integrasjon.rest.RestClient;
|
10 | 34 | import no.nav.vedtak.felles.integrasjon.rest.RestConfig;
|
11 | 35 | import no.nav.vedtak.felles.integrasjon.rest.RestRequest;
|
12 | 36 | import no.nav.vedtak.felles.integrasjon.rest.TokenFlow;
|
13 | 37 |
|
14 |
| -import java.net.HttpURLConnection; |
15 |
| -import java.net.http.HttpRequest; |
16 |
| -import java.util.List; |
17 |
| -import java.util.Set; |
18 |
| - |
19 | 38 | public abstract class AbstractPersonKlient implements Persondata {
|
20 | 39 |
|
21 | 40 | private static Set<TokenFlow> REQUIRED_TOKEN = Set.of(TokenFlow.ADAPTIVE_ADD_CONSUMER);
|
@@ -66,6 +85,11 @@ public Person hentPerson(HentPersonQueryRequest q, PersonResponseProjection p, b
|
66 | 85 | }
|
67 | 86 | }
|
68 | 87 |
|
| 88 | + @Override |
| 89 | + public List<HentPersonBolkResult> hentPersonBolk(HentPersonBolkQueryRequest q, HentPersonBolkResultResponseProjection p) { |
| 90 | + return query(q, p, HentPersonBolkQueryResponse.class).hentPersonBolk(); |
| 91 | + } |
| 92 | + |
69 | 93 | @Override
|
70 | 94 | public Identliste hentIdenter(HentIdenterQueryRequest q, IdentlisteResponseProjection p) {
|
71 | 95 | return query(q, p, HentIdenterQueryResponse.class).hentIdenter();
|
|
0 commit comments