-
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.
La inn egen hendelse for de tilfelle hvor automatisk id merge ikke er…
… mulig
- Loading branch information
Showing
5 changed files
with
72 additions
and
5 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
34 changes: 34 additions & 0 deletions
34
...src/main/kotlin/no/nav/paw/arbeidssokerregisteret/intern/v1/AutomatiskIdMergeIkkeMulig.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,34 @@ | ||
package no.nav.paw.arbeidssokerregisteret.intern.v1 | ||
|
||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.Metadata | ||
import java.time.Instant | ||
import java.util.* | ||
|
||
class AutomatiskIdMergeIkkeMulig( | ||
override val identitetsnummer: String, | ||
override val id: Long, | ||
override val hendelseId: UUID, | ||
override val metadata: Metadata, | ||
val gjeldeneIdentitetsnummer: String?, | ||
val pdlIdentitetsnummer: List<String>, | ||
val lokaleAlias: List<Alias>, | ||
val perioder: List<PeriodeRad> | ||
) : Hendelse { | ||
override val hendelseType: String = automatiskIdMergeIkkeMulig | ||
} | ||
|
||
data class Alias( | ||
val identitetsnummer: String, | ||
val arbeidsoekerId: Long, | ||
val recordKey: Long, | ||
val partition: Int, | ||
) | ||
|
||
data class PeriodeRad( | ||
val periodeId: UUID, | ||
val identitetsnummer: String, | ||
val fra: Instant, | ||
val til: Instant? | ||
) { | ||
val erAktiv: Boolean = til == 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
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