-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: new pvk package and domain object for pvk document
Co-authored-by: farjamm <[email protected]>
- Loading branch information
1 parent
3083aeb
commit 328f2d9
Showing
5 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
apps/backend/src/main/java/no/nav/data/pvk/pvkdokument/domain/OpplysningtypeData.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package no.nav.data.pvk.pvkdokument.domain; | ||
|
||
public class OpplysningtypeData { | ||
private String opplysningtypeId; | ||
private String antallBruker; | ||
} |
46 changes: 46 additions & 0 deletions
46
apps/backend/src/main/java/no/nav/data/pvk/pvkdokument/domain/PvkDokument.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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package no.nav.data.pvk.pvkdokument.domain; | ||
|
||
import io.hypersistence.utils.hibernate.type.json.JsonBinaryType; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
import no.nav.data.common.auditing.domain.Auditable; | ||
import org.hibernate.annotations.Type; | ||
|
||
import java.util.UUID; | ||
|
||
|
||
@Entity | ||
@Data | ||
@Builder | ||
@EqualsAndHashCode(callSuper = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "PVK_DOKUMENT") | ||
public class PvkDokument extends Auditable { | ||
|
||
@Id | ||
@Builder.Default | ||
@Column(name = "ID") | ||
private UUID id = UUID.randomUUID(); | ||
|
||
@Column(name = "ETTERLEVELSE_DOKUMENTASJON_ID", nullable = false) | ||
private String etterlevelseDokumentId; | ||
|
||
@Builder.Default | ||
@Column(name = "STATUS") | ||
private PvkDokumentStatus status = PvkDokumentStatus.AKTIV; | ||
|
||
@Type(value = JsonBinaryType.class) | ||
@Column(name = "DATA", nullable = false) | ||
@Builder.Default | ||
private PvkDokumentData pvkDokumentData = new PvkDokumentData(); | ||
|
||
|
||
} |
35 changes: 35 additions & 0 deletions
35
apps/backend/src/main/java/no/nav/data/pvk/pvkdokument/domain/PvkDokumentData.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package no.nav.data.pvk.pvkdokument.domain; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@Builder | ||
@EqualsAndHashCode | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class PvkDokumentData { | ||
|
||
private List<YtterligereEgenskaper> ytterligereEgenskaper; | ||
private Boolean skalUtforePvk; | ||
private String PvkVurderingsBegrunnelse; | ||
|
||
private Boolean stemmerOpplysningstypene; | ||
private List<OpplysningtypeData> opplysningtypeData; | ||
private String tilgangsBeskrivelseForOpplysningstyper; | ||
private String lagringsBeskrivelseForOpplysningstyper; | ||
|
||
private Boolean stemmerPersonkategorier; | ||
private Boolean harInvolvertRepresentant; | ||
private String representantInvolveringsBeskrivelse; | ||
|
||
private Boolean stemmerDatabehandlere; | ||
private Boolean harDatabehandlerRepresentantInvolvering; | ||
private String dataBehandlerRepresentantInvolveringBeskrivelse; | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
apps/backend/src/main/java/no/nav/data/pvk/pvkdokument/domain/PvkDokumentStatus.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package no.nav.data.pvk.pvkdokument.domain; | ||
|
||
public enum PvkDokumentStatus { | ||
AKTIV, | ||
INAKTIV | ||
} |
9 changes: 9 additions & 0 deletions
9
apps/backend/src/main/java/no/nav/data/pvk/pvkdokument/domain/YtterligereEgenskaper.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package no.nav.data.pvk.pvkdokument.domain; | ||
|
||
public enum YtterligereEgenskaper { | ||
SYSTEMATISK_OVERVÅKNING, | ||
PERSONOPPLYSNINGER_BEHANDLES, | ||
SAMMENSTILLING_AV_DATASETT, | ||
BRUK_AV_NY_TEKNOLOGI, | ||
TJENESTE_TILGANG, | ||
} |