Skip to content

oppdater aksjonspunktdto #7456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@
import java.time.LocalDateTime;
import java.util.Set;

import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.validation.constraints.NotNull;

import no.nav.foreldrepenger.behandlingslager.behandling.aksjonspunkt.AksjonspunktDefinisjon;
import no.nav.foreldrepenger.behandlingslager.behandling.aksjonspunkt.AksjonspunktStatus;
import no.nav.foreldrepenger.behandlingslager.behandling.aksjonspunkt.AksjonspunktType;
import no.nav.foreldrepenger.behandlingslager.behandling.aksjonspunkt.VurderÅrsak;
import no.nav.foreldrepenger.behandlingslager.behandling.vilkår.VilkårType;

public class AksjonspunktDto {
private AksjonspunktDefinisjon definisjon;
private AksjonspunktStatus status;
private String begrunnelse;
private VilkårType vilkarType;
private Boolean toTrinnsBehandling;
private Boolean toTrinnsBehandlingGodkjent;
private Set<VurderÅrsak> vurderPaNyttArsaker;
private String besluttersBegrunnelse;
private AksjonspunktType aksjonspunktType;
private Boolean kanLoses;
private Boolean erAktivt;
private LocalDateTime fristTid;
private LocalDateTime endretTidspunkt;
private String endretAv;
@NotNull private AksjonspunktDefinisjon definisjon;
@NotNull private AksjonspunktStatus status;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private String begrunnelse;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private VilkårType vilkarType;
@NotNull private Boolean toTrinnsBehandling;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private Boolean toTrinnsBehandlingGodkjent;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private Set<VurderÅrsak> vurderPaNyttArsaker;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private String besluttersBegrunnelse;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private AksjonspunktType aksjonspunktType;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aksjonspunktType er @NotNull - men om den brukes frontend er en annen sak.

@NotNull private Boolean kanLoses;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boolean ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Var slik. Kun lagt på annotasjoner

@NotNull private Boolean erAktivt;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private LocalDateTime fristTid;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private LocalDateTime endretTidspunkt;
@Schema(nullable = true, requiredMode = Schema.RequiredMode.REQUIRED) private String endretAv;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hvorfor alle REQUIRED? Kan man ikke ha en default for alt / klassen og markere der det er avvik.
Går på lesbarhet


public void setDefinisjon(AksjonspunktDefinisjon definisjon) {
this.definisjon = definisjon;
Expand Down Expand Up @@ -136,4 +140,5 @@ public String getEndretAv() {
public void setEndretAv(String endretAv) {
this.endretAv = endretAv;
}

}
Loading