Skip to content

Commit

Permalink
sjekk mot aksjonspunkt isdf historikk
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad committed Jun 12, 2024
1 parent 23f27fd commit a298c86
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package no.nav.foreldrepenger.tilbakekreving.web.app.tjenester.forvaltning;

import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
Expand Down Expand Up @@ -316,10 +317,11 @@ public Response settAnsvarligSaksbehandler(@TilpassetAbacAttributt(supplierClass
.filter(a->a.erUtført())
.filter(a->a.getAksjonspunktDefinisjon() != AksjonspunktDefinisjon.FATTE_VEDTAK)
.map(a -> a.getEndretAv())
.filter(Objects::nonNull)
.collect(Collectors.toSet());

if (saksbehandlerePåBehandlingen.contains(saksbehandlerIdent)){
throw new IllegalArgumentException("Saksbehandler er ikke på behandlingen fra før, avbryter");
throw new IllegalArgumentException("Saksbehandler er ikke på behandlingen fra før, avbryter. Aktuelle er: " + saksbehandlerePåBehandlingen);
}
if (behandling.getAnsvarligSaksbehandler() != null) {
throw new IllegalArgumentException("Behandligen har allerede en ansvarlg saksbehandler");
Expand Down

0 comments on commit a298c86

Please sign in to comment.