-
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
14 changed files
with
85 additions
and
26 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
eux-journal-model/src/main/kotlin/no/nav/eux/journal/model/Feilregistrering.kt
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
eux-journal-model/src/main/kotlin/no/nav/eux/journal/model/entity/Feilregistrering.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,22 @@ | ||
package no.nav.eux.journal.model.entity | ||
|
||
import jakarta.persistence.Column | ||
import jakarta.persistence.Entity | ||
import jakarta.persistence.Id | ||
import java.time.LocalDateTime | ||
import java.util.* | ||
import java.util.UUID.randomUUID | ||
|
||
@Entity | ||
data class Feilregistrering( | ||
@Id | ||
val feilregistreringUuid: UUID = randomUUID(), | ||
val feilregistreringStatus: FeilregistreringStatus, | ||
val beskrivelse: String, | ||
val dokumentInfoId: String, | ||
val journalpostId: String, | ||
@Column(updatable = false) | ||
val opprettetBruker: String, | ||
@Column(updatable = false) | ||
val opprettetTidspunkt: LocalDateTime = LocalDateTime.now(), | ||
) |
2 changes: 1 addition & 1 deletion
2
...x/journal/model/FeilregistreringStatus.kt → ...al/model/entity/FeilregistreringStatus.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
9 changes: 9 additions & 0 deletions
9
...-persistence/src/main/kotlin/no/nav/eux/journal/persistence/FeilregistreringRepository.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,9 @@ | ||
package no.nav.eux.journal.persistence | ||
|
||
import no.nav.eux.journal.model.entity.Feilregistrering | ||
import org.springframework.data.jpa.repository.JpaRepository | ||
import org.springframework.stereotype.Repository | ||
import java.util.* | ||
|
||
@Repository | ||
interface FeilregistreringRepository : JpaRepository<Feilregistrering, UUID> |
10 changes: 10 additions & 0 deletions
10
eux-journal-persistence/src/main/resources/db/migration/V1__feilregistrering.sql
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,10 @@ | ||
create table feilregistrering | ||
( | ||
feilregistrering_uuid uuid primary key not null, | ||
feilregistrering_status text not null, | ||
beskrivelse text not null, | ||
dokument_info_id text not null, | ||
journalpost_id text not null, | ||
opprettet_bruker text not null, | ||
opprettet_tidspunkt timestamp not 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
18 changes: 18 additions & 0 deletions
18
eux-journal-service/src/main/kotlin/no/nav/eux/journal/service/TokenContextService.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.eux.journal.service | ||
|
||
import no.nav.security.token.support.core.context.TokenValidationContextHolder | ||
import org.springframework.stereotype.Service | ||
|
||
@Service | ||
class TokenContextService( | ||
val tokenValidationContextHolder: TokenValidationContextHolder | ||
) { | ||
val navIdent | ||
get() = tokenValidationContextHolder | ||
.getTokenValidationContext() | ||
.firstValidToken | ||
?.jwtTokenClaims | ||
?.get("NAVident") | ||
?.toString() | ||
?: "ukjent" | ||
} |
2 changes: 1 addition & 1 deletion
2
eux-journal-webapp/src/main/kotlin/no/nav/eux/journal/webapp/RinasakerApiMapper.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
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.