Skip to content

Commit

Permalink
🔥 Fjern SaksbehandlerVisitor - trengs ikke lenger
Browse files Browse the repository at this point in the history
  • Loading branch information
chsko committed Nov 1, 2024
1 parent 8eed8b2 commit 56f4fb0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ class Saksbehandler(

fun epostadresse(): String = epostadresse

fun accept(visitor: SaksbehandlerVisitor) {
visitor.visitSaksbehandler(epostadresse, oid, navn, ident)
}

fun harTilgangTil(egenskaper: List<Egenskap>): Boolean = tilgangskontroll.harTilgangTil(oid, egenskaper)

internal fun håndter(hendelse: OverstyrtTidslinje) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import no.nav.helse.mediator.overstyring.Overstyringlagrer
import no.nav.helse.mediator.overstyring.Saksbehandlingsmelder
import no.nav.helse.mediator.påvent.PåVentRepository
import no.nav.helse.mediator.saksbehandler.SaksbehandlerLagrer
import no.nav.helse.mediator.saksbehandler.SaksbehandlerMapper.tilApiversjon
import no.nav.helse.modell.AlleredeAnnullert
import no.nav.helse.modell.ManglerTilgang
import no.nav.helse.modell.Modellfeil
Expand Down Expand Up @@ -451,13 +450,9 @@ internal class SaksbehandlerMediator(
when (this) {
is no.nav.helse.modell.OppgaveIkkeTildelt -> OppgaveIkkeTildelt(oppgaveId)
is OppgaveTildeltNoenAndre -> {
val (oid, navn, epost) = this.saksbehandler.tilApiversjon()
val (epost, oid, navn) = this.saksbehandler.toDto()
no.nav.helse.spesialist.api.feilhåndtering.OppgaveTildeltNoenAndre(
TildelingApiDto(
navn,
epost,
oid,
),
TildelingApiDto(navn, epost, oid),
)
}

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 56f4fb0

Please sign in to comment.