Skip to content

Commit

Permalink
TFP-5193: Fjerner avhengighet til felles, builder for objekter med ma… (
Browse files Browse the repository at this point in the history
  • Loading branch information
espenwaaga authored Nov 8, 2022
1 parent 9dc7e27 commit e24aa68
Show file tree
Hide file tree
Showing 31 changed files with 677 additions and 227 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Bygg pull request

on: [pull_request_target]
on:
pull_request:
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- 'LICENSE'
- 'CODEOWNERS'
- 'dokumentasjon/**'
- 'lokalutvikling/**'

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Sjekk ut kode
uses: actions/checkout@v3

- uses: actions/checkout@v3
- name: Setup maven
uses: whelk-io/maven-settings-xml-action@v20
with:
Expand All @@ -28,10 +33,7 @@ jobs:
- name: Hent tag
run: echo "TAG=$(date +%Y.%m.%d.%H%M%S)-$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
- name: Build
shell: bash
env:
GH_ACCESS_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
echo "Building $TAG"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
run: |
mvn jacoco:prepare-agent verify jacoco:report sonar:sonar -e -B -s settings.xml -Drevision=$TAG
env:
GH_ACCESS_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Release Drafter
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release-kontrakt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ jobs:
mvn -B -s settings.xml versions:set -DnewVersion=${NEW_VERSION} -DgenerateBackupPoms=false
mvn deploy -e -B -s settings.xml -Dfile.encoding=UTF-8
env:
GH_ACCESS_TOKEN : ${{ secrets.GH_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NEW_VERSION: ${{ github.event.release.tag_name }}
26 changes: 18 additions & 8 deletions vl-kontrakt-fp-ws-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@
<version>${revision}</version>
</parent>

<artifactId>vl-kontrakt-fp-ws-proxy</artifactId>
<artifactId>fp-ws-proxy-v1</artifactId>
<packaging>jar</packaging>
<name>(FPSAK) Kontrakter - fp-ws-proxy</name>

<dependencies>

<dependency>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>felles-util</artifactId>
<version>4.2.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
Expand All @@ -28,5 +21,22 @@
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
</dependency>


<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

public enum KodeEndring {
NY, //ny
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

public enum KodeEndringLinje {
NY, //ny
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

public enum KodeFagområde {
REFUTG, //engangsstønad
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

import com.fasterxml.jackson.annotation.JsonValue;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package no.nav.foreldrepenger.kontrakter.simulering.request;

public enum KodeStatusLinje {
OPPH, //opphør
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

import java.time.LocalDate;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

import java.time.LocalDate;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import no.nav.vedtak.util.InputValideringRegex;

public record Ompostering116Dto(@NotNull boolean omPostering,
LocalDate datoOmposterFom,
@NotNull @Pattern(regexp = InputValideringRegex.FRITEKST) String tidspktReg) {
@NotNull @Pattern(regexp = "^[\\p{L}\\p{Blank}.'\\-\\–0-9/\\p{Space}%§\\!?@_()+:;,=\"&\\p{Sc}]*$") String tidspktReg) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package no.nav.foreldrepenger.kontrakter.simulering.request;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
* Skal være samme som no.nav.foreldrepenger.behandlingslager.økonomioppdrag.Oppdrag110
*/
public record Oppdrag110Dto(@Valid @NotNull KodeEndring kodeEndring,
@Valid @NotNull KodeFagområde kodeFagomrade,
@NotNull @Min(0) @Max(Long.MAX_VALUE) Long fagsystemId,
@NotNull @Pattern(regexp = "^[\\p{L}\\p{Blank}.'\\-\\–0-9/\\p{Space}%§\\!?@_()+:;,=\"&\\p{Sc}]*$") String oppdragGjelderId,
@NotNull @Pattern(regexp = "^[\\p{L}\\p{Blank}.'\\-\\–0-9/\\p{Space}%§\\!?@_()+:;,=\"&\\p{Sc}]*$") String saksbehId,
@NotNull @Pattern(regexp = "^[\\p{L}\\p{Blank}.'\\-\\–0-9/\\p{Space}%§\\!?@_()+:;,=\"&\\p{Sc}]*$") String nøkkelAvstemming,
@Valid Ompostering116Dto ompostering116,
@Valid @NotNull @Size(min = 1) List<@Valid @NotNull Oppdragslinje150Dto> oppdragslinje150Liste) {

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.foreldrepenger.kontrakter.simulering;
package no.nav.foreldrepenger.kontrakter.simulering.request;

import java.time.LocalDate;

Expand All @@ -10,10 +10,8 @@

import com.fasterxml.jackson.annotation.JsonIgnore;

import no.nav.vedtak.util.InputValideringRegex;

public record Oppdragslinje150Dto(@Valid @NotNull KodeEndringLinje kodeEndringLinje,
@NotNull @Pattern(regexp = InputValideringRegex.FRITEKST) String vedtakId,
@NotNull @Pattern(regexp = "^[\\p{L}\\p{Blank}.'\\-\\–0-9/\\p{Space}%§\\!?@_()+:;,=\"&\\p{Sc}]*$") String vedtakId,
@NotNull @Min(0) @Max(Long.MAX_VALUE) Long delytelseId,
@Valid @NotNull KodeKlassifik kodeKlassifik,
@Valid @NotNull LukketPeriode vedtakPeriode,
Expand All @@ -22,7 +20,7 @@ public record Oppdragslinje150Dto(@Valid @NotNull KodeEndringLinje kodeEndringLi
@Valid UtbetalingsgradDto utbetalingsgrad,
@Valid KodeStatusLinje kodeStatusLinje,
LocalDate datoStatusFom,
@Pattern(regexp = InputValideringRegex.FRITEKST) String utbetalesTilId,
@Pattern(regexp = "^[\\p{L}\\p{Blank}.'\\-\\–0-9/\\p{Space}%§\\!?@_()+:;,=\"&\\p{Sc}]*$") String utbetalesTilId,
@Min(0) @Max(Long.MAX_VALUE) Long refDelytelseId,
@Min(0) @Max(Long.MAX_VALUE) Long refFagsystemId,
@Valid Refusjonsinfo156Dto refusjonsinfo156) {
Expand Down
Loading

0 comments on commit e24aa68

Please sign in to comment.