-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Omdøping av internhendelser for bekreftelse
- Loading branch information
1 parent
2a714fc
commit 217c353
Showing
25 changed files
with
105 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Bekreftelse API | ||
|
||
```mermaid | ||
graph TD | ||
A[POST /rapportering] --> B(Rapportering-api instans) | ||
B --> |POST identitetsnummer| C[Kafka-key-generator] | ||
C -->|arbeidssøkerId| B | ||
B --> D["streams.metadataForKey('arbeidssøkerId', 'RapporteringStateStore')"] | ||
D --> E{Finne hvilke instans som har data for arbeidssøkerId} | ||
E -->|Funnet remote: forward HTTP request| Z["Rapportering-api instans (med arbeidssøkerId)"] | ||
Z -->|Returner respons| B | ||
E -->|Funnet i lokal stateStore spør mot den| F[RapporteringStateStore<br>key = arbeidssøkerId<br/>value = List<RapporteringTilgjengelig>] | ||
G[RapporteringTilgjengelig] -->|Legg til rapportering i liste| F | ||
H[RapporteringsMeldingMottatt]-->|slett rapportId fra liste|F | ||
I[PeriodeAvsluttet] --> |slett arbeidssøkerId|F | ||
``` |
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
4 changes: 2 additions & 2 deletions
4
.../bekreftelse-tjeneste/src/main/kotlin/no/nav/paw/meldeplikttjeneste/ApplicationContext.kt
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package no.nav.paw.meldeplikttjeneste | ||
|
||
import no.nav.paw.meldeplikttjeneste.tilstand.InternTilstandSerde | ||
import no.nav.paw.rapportering.internehendelser.RapporteringsHendelseSerde | ||
import no.nav.paw.bekreftelse.internehendelser.BekreftelseHendelseSerde | ||
|
||
class ApplicationContext( | ||
val internTilstandSerde: InternTilstandSerde, | ||
val rapporteringsHendelseSerde: RapporteringsHendelseSerde | ||
val bekreftelseHendelseSerde: BekreftelseHendelseSerde | ||
) |
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
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
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...internehendelser/BaOmAaAvsluttePeriode.kt → ...internehendelser/BaOmAaAvsluttePeriode.kt
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package no.nav.paw.rapportering.internehendelser | ||
package no.nav.paw.bekreftelse.internehendelser | ||
|
||
import java.util.* | ||
|
||
const val beOmAaAvsluttePeriodeHendelsesType = "rapportering.be_om_aa_avslutte_periode" | ||
const val beOmAaAvsluttePeriodeHendelsesType = "bekreftelse.be_om_aa_avslutte_periode" | ||
|
||
class BaOmAaAvsluttePeriode( | ||
override val hendelseId: UUID, | ||
override val periodeId: UUID, | ||
override val identitetsnummer: String, | ||
override val arbeidssoekerId: Long, | ||
) : RapporteringsHendelse { | ||
) : BekreftelseHendelse { | ||
override val hendelseType: String = beOmAaAvsluttePeriodeHendelsesType | ||
} |
4 changes: 2 additions & 2 deletions
4
...internehendelser/RapporteringsHendelse.kt → ...e/internehendelser/BekreftelseHendelse.kt
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
10 changes: 5 additions & 5 deletions
10
...ehendelser/RapporteringsMeldingMottatt.kt → ...rnehendelser/BekreftelseMeldingMottatt.kt
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package no.nav.paw.rapportering.internehendelser | ||
package no.nav.paw.bekreftelse.internehendelser | ||
|
||
import java.util.* | ||
|
||
const val meldingMottattHendelseType = "rapportering.melding_mottatt" | ||
const val meldingMottattHendelseType = "bekreftelse.melding_mottatt" | ||
|
||
data class RapporteringsMeldingMottatt( | ||
data class BekreftelseMeldingMottatt( | ||
override val hendelseId: UUID, | ||
override val periodeId: UUID, | ||
override val identitetsnummer: String, | ||
override val arbeidssoekerId: Long, | ||
val rapporteringsId: UUID | ||
) : RapporteringsHendelse { | ||
val bekreftelseId: UUID | ||
) : BekreftelseHendelse { | ||
override val hendelseType: String = meldingMottattHendelseType | ||
} |
18 changes: 18 additions & 0 deletions
18
...delser/src/main/kotlin/no/nav/paw/bekreftelse/internehendelser/BekreftelseTilgjengelig.kt
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,18 @@ | ||
package no.nav.paw.bekreftelse.internehendelser | ||
|
||
import java.time.Instant | ||
import java.util.* | ||
|
||
const val bekreftelseTilgjengeligHendelseType = "bekreftelse.tilgjengelig" | ||
|
||
data class BekreftelseTilgjengelig ( | ||
override val hendelseId: UUID, | ||
override val periodeId: UUID, | ||
override val identitetsnummer: String, | ||
override val arbeidssoekerId: Long, | ||
val bekreftelseId: UUID, | ||
val gjelderFra: Instant, | ||
val gjelderTil: Instant | ||
) : BekreftelseHendelse { | ||
override val hendelseType: String = bekreftelseTilgjengeligHendelseType | ||
} |
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
8 changes: 4 additions & 4 deletions
8
...internehendelser/LeveringsfristUtloept.kt → ...internehendelser/LeveringsfristUtloept.kt
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package no.nav.paw.rapportering.internehendelser | ||
package no.nav.paw.bekreftelse.internehendelser | ||
|
||
import java.util.* | ||
|
||
const val leveringsfristUtloeptHendelseType = "rapportering.leveringsfrist_utloept" | ||
const val leveringsfristUtloeptHendelseType = "bekreftelse.leveringsfrist_utloept" | ||
|
||
data class LeveringsfristUtloept( | ||
override val hendelseId: UUID, | ||
override val periodeId: UUID, | ||
override val identitetsnummer: String, | ||
override val arbeidssoekerId: Long, | ||
val rapporteringsId: UUID | ||
) : RapporteringsHendelse { | ||
val bekreftelseId: UUID | ||
) : BekreftelseHendelse { | ||
override val hendelseType: String = leveringsfristUtloeptHendelseType | ||
} |
6 changes: 3 additions & 3 deletions
6
...ring/internehendelser/PeriodeAvsluttet.kt → ...else/internehendelser/PeriodeAvsluttet.kt
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package no.nav.paw.rapportering.internehendelser | ||
package no.nav.paw.bekreftelse.internehendelser | ||
|
||
import java.util.* | ||
|
||
|
||
const val periodeAvsluttetHendelsesType = "rapportering.periode_avsluttet" | ||
const val periodeAvsluttetHendelsesType = "bekreftelse.periode_avsluttet" | ||
|
||
data class PeriodeAvsluttet( | ||
override val hendelseId: UUID, | ||
override val periodeId: UUID, | ||
override val identitetsnummer: String, | ||
override val arbeidssoekerId: Long | ||
) : RapporteringsHendelse { | ||
) : BekreftelseHendelse { | ||
override val hendelseType: String = periodeAvsluttetHendelsesType | ||
} |
Oops, something went wrong.