VedtakslengdeService
class VedtakslengdeService(val vedtakslengdeRepository: VedtakslengdeRepository, val underveisRepository: UnderveisRepository, val rettighetstypeService: RettighetstypeService, val stansOpphørRepository: StansOpphørRepository, val clock: Clock = Clock.systemDefaultZone(), val virkningstidspunktService: VirkningstidspunktService)(source)
Constructors
Link copied to clipboard
constructor(vedtakslengdeRepository: VedtakslengdeRepository, underveisRepository: UnderveisRepository, rettighetstypeService: RettighetstypeService, stansOpphørRepository: StansOpphørRepository, clock: Clock = Clock.systemDefaultZone(), virkningstidspunktService: VirkningstidspunktService)
constructor(repositoryProvider: RepositoryProvider, gatewayProvider: GatewayProvider, clock: Clock = Clock.systemDefaultZone())
Properties
Functions
Link copied to clipboard
Følgende avslagsårsaker er støttet ved automatisk behandling av vedtakslengde
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun hentAvslagsårsakerVedStansEllerOpphør(behandlingId: BehandlingId, stansEllerOpphørFom: LocalDate): Set<Avslagsårsak>
Link copied to clipboard
fun hentNesteVedtakslengdeUtvidelse(behandlingId: BehandlingId, forrigeBehandlingId: BehandlingId?): VedtakslengdeUtvidelse
Link copied to clipboard
Link copied to clipboard
private fun hentPerioderMedBistandsbehovRettighet(fraDato: LocalDate, behandlingId: BehandlingId): BistandsbehovRettighetsperioder
Henter perioder med bistandsbehov rettighetstype fom fraDato og frem i tid
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private fun hentVedtattSluttdato(forrigeBehandlingId: BehandlingId?, vedtakslengdeGrunnlag: VedtakslengdeGrunnlag?): LocalDate?
Henter siste vedtatte sluttdato. Bruker den største verdien da vi ikke ønsker å redusere vedtakslengden.
Link copied to clipboard
fun lagreAutomatiskVedtakslengde(behandlingId: BehandlingId, forrigeBehandlingId: BehandlingId?, rettighetsperiode: Periode): LocalDate
Link copied to clipboard
fun lagreGjeldendeSluttdatoHvisIkkeEksisterer(behandlingId: BehandlingId, forrigeBehandlingId: BehandlingId?, rettighetsperiode: Periode)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private fun utledSluttdato(behandlingId: BehandlingId, rettighetsperiode: Periode, vedtattSluttdato: LocalDate?): LocalDate
Link copied to clipboard
fun utvidVedtakslengde(behandlingId: BehandlingId, forrigeBehandlingId: BehandlingId?, vedtakslengdeUtvidelse: VedtakslengdeUtvidelse.Automatisk)