Skip to content

Commit

Permalink
ADD: new pvk package and domain object for pvk document
Browse files Browse the repository at this point in the history
Co-authored-by: farjamm <[email protected]>
  • Loading branch information
JeremiahUy and farjamm committed Oct 16, 2024
1 parent 3083aeb commit 328f2d9
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 0 deletions.
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;
}
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();


}
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;

}
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
}
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,
}

0 comments on commit 328f2d9

Please sign in to comment.