-
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.
Merge pull request #631 from navikt/startet-begrunnelse-kafka
Legg til startet-begrunnelse på pto.oppfolgingsperiode-v1
- Loading branch information
Showing
16 changed files
with
82 additions
and
26 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
14 changes: 13 additions & 1 deletion
14
src/main/java/no/nav/veilarboppfolging/repository/entity/OppfolgingStartBegrunnelse.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 |
---|---|---|
@@ -1,8 +1,20 @@ | ||
package no.nav.veilarboppfolging.repository.entity; | ||
|
||
import no.nav.veilarboppfolging.kafka.dto.StartetBegrunnelseDTO; | ||
|
||
public enum OppfolgingStartBegrunnelse { | ||
ARBEIDSSOKER_REGISTRERING, | ||
REAKTIVERT, | ||
SYKMELDT_MER_OPPFOLGING, | ||
ARENA_SYNC, | ||
ARENA_SYNC, // TODO: Fjerne etter opprydding i databasen | ||
ARENA_SYNC_ARBS, | ||
ARENA_SYNC_IARBS; | ||
|
||
public StartetBegrunnelseDTO toStartetBegrunnelseDTO() { | ||
if (this == ARBEIDSSOKER_REGISTRERING || this == ARENA_SYNC_ARBS) { | ||
return StartetBegrunnelseDTO.ARBEIDSSOKER; | ||
} else { // Reativer er sykmeldt fordi arbeidsøkere automatisk er under oppfølging | ||
return StartetBegrunnelseDTO.SYKEMELDT_MER_OPPFOLGING; | ||
} | ||
} | ||
} |
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
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
28 changes: 28 additions & 0 deletions
28
src/main/kotlin/no/nav/veilarboppfolging/kafka/dto/OppfolgingsperiodeDTO.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,28 @@ | ||
package no.nav.veilarboppfolging.kafka.dto | ||
|
||
import no.nav.pto_schema.kafka.json.topic.SisteOppfolgingsperiodeV1 | ||
import java.time.ZonedDateTime | ||
import java.util.* | ||
|
||
data class OppfolgingsperiodeDTO( | ||
val uuid: String, | ||
val startDato: ZonedDateTime, | ||
val sluttDato: ZonedDateTime?, | ||
val aktorId: String, | ||
val startetBegrunnelse: StartetBegrunnelseDTO | ||
) { | ||
fun toSisteOppfolgingsperiodeDTO(): SisteOppfolgingsperiodeV1 { | ||
return SisteOppfolgingsperiodeV1( | ||
UUID.fromString(uuid), | ||
aktorId, | ||
startDato, | ||
sluttDato, | ||
) | ||
} | ||
} | ||
|
||
enum class StartetBegrunnelseDTO { | ||
ARBEIDSSOKER, | ||
SYKEMELDT_MER_OPPFOLGING | ||
} | ||
|
File renamed without changes.
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