-
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.
- Loading branch information
Showing
9 changed files
with
114 additions
and
3 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
27 changes: 27 additions & 0 deletions
27
...fka-key-maintenance/src/main/kotlin/no/nav/paw/kafkakeymaintenance/ApplicationMetadata.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,27 @@ | ||
package no.nav.paw.kafkakeymaintenance | ||
|
||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.Bruker | ||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.BrukerType | ||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.Metadata | ||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.TidspunktFraKilde | ||
import java.time.Instant | ||
|
||
private val systemId = System.getenv("IMAGE_WITH_VERSION")?: "UNSPECIFIED" | ||
|
||
fun metadata( | ||
kilde: String, | ||
tidspunkt: Instant = Instant.now(), | ||
tidspunktFraKilde: TidspunktFraKilde | ||
): Metadata { | ||
|
||
return Metadata( | ||
tidspunkt = tidspunkt, | ||
utfoertAv = Bruker( | ||
type = BrukerType.SYSTEM, | ||
id = systemId | ||
), | ||
kilde = kilde, | ||
aarsak = "Id oppdatering", | ||
tidspunktFraKilde = tidspunktFraKilde | ||
) | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...r/src/main/kotlin/no/nav/paw/arbeidssokerregisteret/intern/v1/IdentitetsnummerOpphoert.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,14 @@ | ||
package no.nav.paw.arbeidssokerregisteret.intern.v1 | ||
|
||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.Metadata | ||
import java.util.* | ||
|
||
data class IdentitetsnummerOpphoert( | ||
override val id: Long, | ||
override val hendelseId: UUID, | ||
override val identitetsnummer: String, | ||
override val metadata: Metadata, | ||
val alleIdentitetsnummer: List<String> | ||
): Hendelse { | ||
override val hendelseType: String = identitetsnummerOpphoertHendelseType | ||
} |
15 changes: 15 additions & 0 deletions
15
...c/main/kotlin/no/nav/paw/arbeidssokerregisteret/intern/v1/IdentitetsnummerSammenslaatt.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,15 @@ | ||
package no.nav.paw.arbeidssokerregisteret.intern.v1 | ||
|
||
import no.nav.paw.arbeidssokerregisteret.intern.v1.vo.Metadata | ||
import java.util.* | ||
|
||
data class IdentitetsnummerSammenslaatt( | ||
override val id: Long, | ||
override val hendelseId: UUID, | ||
override val identitetsnummer: String, | ||
override val metadata: Metadata, | ||
val alleIdentitetsnummer: List<String>, | ||
val flyttetTilArbeidssoekerId: Long | ||
): Hendelse { | ||
override val hendelseType: String = identitetsnummerSammenslaattHendelseType | ||
} |