-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAGSYSTEM-350135: Gir mulighet til å tilknytte andre journalposter en… (
#2546) FAGSYSTEM-350135: Gir mulighet til å tilknytte andre journalposter enn søknader og inntektsmeldinger.
- Loading branch information
Showing
4 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
domene/src/main/java/no/nav/foreldrepenger/journalføring/utils/YtelseTypeUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package no.nav.foreldrepenger.journalføring.utils; | ||
|
||
import no.nav.foreldrepenger.fordel.kodeverdi.BehandlingTema; | ||
import no.nav.foreldrepenger.journalføring.oppgave.lager.YtelseType; | ||
|
||
import static no.nav.foreldrepenger.journalføring.oppgave.lager.YtelseType.ES; | ||
import static no.nav.foreldrepenger.journalføring.oppgave.lager.YtelseType.FP; | ||
import static no.nav.foreldrepenger.journalføring.oppgave.lager.YtelseType.SVP; | ||
|
||
public class YtelseTypeUtils { | ||
private YtelseTypeUtils() { | ||
// static | ||
} | ||
|
||
public static YtelseType mapTilYtelseType(BehandlingTema behandlingstema) { | ||
if (behandlingstema == null) { | ||
return null; | ||
} | ||
return switch (behandlingstema) { | ||
case FORELDREPENGER, FORELDREPENGER_ADOPSJON, FORELDREPENGER_FØDSEL -> FP; | ||
case SVANGERSKAPSPENGER -> SVP; | ||
case ENGANGSSTØNAD, ENGANGSSTØNAD_ADOPSJON, ENGANGSSTØNAD_FØDSEL -> ES; | ||
default -> null; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters