From 30fa4ca2214b6f62936cfa15dcb9b2090191c98b Mon Sep 17 00:00:00 2001 From: Ole Anders Eidjord Date: Mon, 15 Apr 2024 15:20:04 +0200 Subject: [PATCH] ARKIV-260 arkivreferanse is out, documenttype is in --- build.gradle | 2 -- .../instance/gateway/InstanceProcessorConfiguration.java | 2 +- .../gateway/model/oppfolgingstjenesten/IncomingInstance.java | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 701b75f..9e2aed3 100644 --- a/build.gradle +++ b/build.gradle @@ -47,10 +47,8 @@ dependencies { implementation 'no.fintlabs:fint-flyt-instance-gateway:5.0.5' implementation 'no.fintlabs:fint-flyt-resource-server:2.0.0' - compileOnly 'org.projectlombok:lombok' runtimeOnly 'io.micrometer:micrometer-registry-prometheus' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' - annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'io.projectreactor:reactor-test' diff --git a/src/main/java/no/fintlabs/instance/gateway/InstanceProcessorConfiguration.java b/src/main/java/no/fintlabs/instance/gateway/InstanceProcessorConfiguration.java index 30fb033..6d94f22 100644 --- a/src/main/java/no/fintlabs/instance/gateway/InstanceProcessorConfiguration.java +++ b/src/main/java/no/fintlabs/instance/gateway/InstanceProcessorConfiguration.java @@ -17,7 +17,7 @@ public InstanceProcessor incomingInstanceProcessor( IncomingInstanceMappingService incomingInstanceMappingService ) { return instanceProcessorFactoryService.createInstanceProcessor( - "journalpost", + incommingInstance -> Optional.ofNullable(incommingInstance.getDokumenttype()), incomingInstance -> Optional.ofNullable(incomingInstance.getInstansId()), incomingInstanceMappingService ); diff --git a/src/main/java/no/fintlabs/instance/gateway/model/oppfolgingstjenesten/IncomingInstance.java b/src/main/java/no/fintlabs/instance/gateway/model/oppfolgingstjenesten/IncomingInstance.java index 0716899..4d82c9b 100644 --- a/src/main/java/no/fintlabs/instance/gateway/model/oppfolgingstjenesten/IncomingInstance.java +++ b/src/main/java/no/fintlabs/instance/gateway/model/oppfolgingstjenesten/IncomingInstance.java @@ -16,7 +16,7 @@ public class IncomingInstance { @NotNull private final String instansId; - private final String arkivreferanse; + private final String dokumenttype; private final Personalia personalia; private final Kontaktinformasjon kontaktinformasjon; private final Inntaksadresse inntaksadresse;