Skip to content

Commit

Permalink
Legger til brevkode i dokumentmodell
Browse files Browse the repository at this point in the history
  • Loading branch information
espennav committed Jan 14, 2022
1 parent 68fb233 commit a84801a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
public class JournalpostModellGenerator {

public static JournalpostModell lagJournalpostJsonDokument(String innhold, String fnr, DokumenttypeId dokumenttypeId, Mottakskanal mottakskanal) {
return lagJournalpostStrukturertDokument(innhold, fnr, dokumenttypeId, mottakskanal, Arkivfiltype.JSON);
return lagJournalpostStrukturertDokument(innhold, fnr, dokumenttypeId, mottakskanal, Arkivfiltype.JSON, null);
}

public static JournalpostModell lagJournalpostStrukturertDokument(String innhold, String fnr, DokumenttypeId dokumenttypeId) {
return lagJournalpostStrukturertDokument(innhold, fnr, dokumenttypeId, Mottakskanal.UKJENT, Arkivfiltype.XML);
return lagJournalpostStrukturertDokument(innhold, fnr, dokumenttypeId, Mottakskanal.UKJENT, Arkivfiltype.XML, null);
}

public static JournalpostModell lagJournalpostStrukturertDokument(String innhold, String fnr, DokumenttypeId dokumenttypeId, Mottakskanal mottakskanal, Arkivfiltype arkivfiltype) {
public static JournalpostModell lagJournalpostStrukturertDokument(String innhold, String fnr, DokumenttypeId dokumenttypeId, Mottakskanal mottakskanal, Arkivfiltype arkivfiltype, String brevkode) {
JournalpostModell journalpostModell = new JournalpostModell();
journalpostModell.setJournalStatus(Journalstatus.JOURNALFØRT);
journalpostModell.setAvsenderFnr(fnr);
Expand All @@ -30,6 +30,7 @@ public static JournalpostModell lagJournalpostStrukturertDokument(String innhold

DokumentModell dokumentModell = new DokumentModell();
dokumentModell.setInnhold(innhold);
dokumentModell.setBrevkode(brevkode);
dokumentModell.setDokumentType(dokumenttypeId);
dokumentModell.setDokumentTilknyttetJournalpost(DokumentTilknyttetJournalpost.HOVEDDOKUMENT);
dokumentModell.getDokumentVariantInnholdListe().add(new DokumentVariantInnhold(
Expand Down

0 comments on commit a84801a

Please sign in to comment.