Skip to content

Commit 1685ab3

Browse files
Merge pull request #139 from InseeFr/devRawDataSave
Raw lunatic XML & JSON data saving into database
2 parents 974f7fc + 56a3c32 commit 1685ab3

35 files changed

+815
-222
lines changed

src/main/java/fr/insee/genesis/controller/rest/HealthCheckController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import fr.insee.genesis.domain.ports.api.ScheduleApiPort;
44
import fr.insee.genesis.domain.ports.api.SurveyUnitApiPort;
5-
import org.springframework.beans.factory.annotation.Autowired;
65
import org.springframework.beans.factory.annotation.Value;
76
import org.springframework.http.ResponseEntity;
87
import org.springframework.security.core.context.SecurityContextHolder;
@@ -18,7 +17,7 @@ public class HealthCheckController {
1817
@Value("${fr.insee.genesis.version}")
1918
private String projectVersion;
2019

21-
@Autowired
20+
2221
public HealthCheckController(SurveyUnitApiPort surveyUnitApiPort, ScheduleApiPort scheduleApiPort) {
2322
this.surveyUnitApiPort = surveyUnitApiPort;
2423
this.scheduleApiPort = scheduleApiPort;

src/main/java/fr/insee/genesis/controller/rest/ScheduleController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import io.swagger.v3.oas.annotations.Operation;
1515
import io.swagger.v3.oas.annotations.Parameter;
1616
import lombok.extern.slf4j.Slf4j;
17-
import org.springframework.beans.factory.annotation.Autowired;
1817
import org.springframework.http.ResponseEntity;
1918
import org.springframework.stereotype.Controller;
2019
import org.springframework.web.bind.annotation.DeleteMapping;
@@ -42,7 +41,6 @@ public class ScheduleController {
4241
private final ScheduleApiPort scheduleApiPort;
4342
private final FileUtils fileUtils;
4443

45-
@Autowired
4644
public ScheduleController(ScheduleApiPort scheduleApiPort, FileUtils fileUtils) {
4745
this.scheduleApiPort = scheduleApiPort;
4846
this.fileUtils = fileUtils;

src/main/java/fr/insee/genesis/controller/rest/UtilsController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import io.swagger.v3.oas.annotations.Operation;
77
import io.swagger.v3.oas.annotations.tags.Tag;
88
import lombok.extern.slf4j.Slf4j;
9-
import org.springframework.beans.factory.annotation.Autowired;
109
import org.springframework.http.ResponseEntity;
1110
import org.springframework.stereotype.Controller;
1211
import org.springframework.web.bind.annotation.PutMapping;
@@ -25,7 +24,7 @@ public class UtilsController {
2524
private final SurveyUnitApiPort surveyUnitService;
2625

2726

28-
@Autowired
27+
2928
public UtilsController(SurveyUnitApiPort surveyUnitService,VolumetryLogService volumetryLogService) {
3029
this.surveyUnitService = surveyUnitService;
3130
this.volumetryLogService = volumetryLogService;

src/main/java/fr/insee/genesis/controller/rest/responses/CampaignController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import fr.insee.genesis.domain.ports.api.SurveyUnitApiPort;
55
import io.swagger.v3.oas.annotations.Operation;
66
import lombok.extern.slf4j.Slf4j;
7-
import org.springframework.beans.factory.annotation.Autowired;
87
import org.springframework.http.ResponseEntity;
98
import org.springframework.stereotype.Controller;
109
import org.springframework.web.bind.annotation.GetMapping;
@@ -20,7 +19,7 @@ public class CampaignController {
2019

2120
private final SurveyUnitApiPort surveyUnitService;
2221

23-
@Autowired
22+
2423
public CampaignController(SurveyUnitApiPort surveyUnitService) {
2524
this.surveyUnitService = surveyUnitService;
2625
}

src/main/java/fr/insee/genesis/controller/rest/responses/IdUEController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import fr.insee.genesis.domain.ports.api.SurveyUnitApiPort;
55
import io.swagger.v3.oas.annotations.Operation;
66
import lombok.extern.slf4j.Slf4j;
7-
import org.springframework.beans.factory.annotation.Autowired;
87
import org.springframework.http.ResponseEntity;
98
import org.springframework.stereotype.Controller;
109
import org.springframework.web.bind.annotation.GetMapping;
@@ -20,7 +19,7 @@ public class IdUEController {
2019

2120
private final SurveyUnitApiPort surveyUnitService;
2221

23-
@Autowired
22+
2423
public IdUEController(SurveyUnitApiPort surveyUnitService) {
2524
this.surveyUnitService = surveyUnitService;
2625
}

src/main/java/fr/insee/genesis/controller/rest/responses/ModeController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import fr.insee.genesis.domain.ports.api.SurveyUnitApiPort;
55
import io.swagger.v3.oas.annotations.Operation;
66
import lombok.extern.slf4j.Slf4j;
7-
import org.springframework.beans.factory.annotation.Autowired;
87
import org.springframework.http.ResponseEntity;
98
import org.springframework.stereotype.Controller;
109
import org.springframework.web.bind.annotation.GetMapping;
@@ -20,7 +19,7 @@ public class ModeController {
2019

2120
private final SurveyUnitApiPort surveyUnitService;
2221

23-
@Autowired
22+
2423
public ModeController(SurveyUnitApiPort surveyUnitService) {
2524
this.surveyUnitService = surveyUnitService;
2625

src/main/java/fr/insee/genesis/controller/rest/responses/QuestionnaireController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import fr.insee.genesis.domain.ports.api.SurveyUnitApiPort;
55
import io.swagger.v3.oas.annotations.Operation;
66
import lombok.extern.slf4j.Slf4j;
7-
import org.springframework.beans.factory.annotation.Autowired;
87
import org.springframework.http.ResponseEntity;
98
import org.springframework.stereotype.Controller;
109
import org.springframework.web.bind.annotation.GetMapping;
@@ -21,7 +20,7 @@ public class QuestionnaireController {
2120

2221
private final SurveyUnitApiPort surveyUnitService;
2322

24-
@Autowired
23+
2524
public QuestionnaireController(SurveyUnitApiPort surveyUnitService) {
2625
this.surveyUnitService = surveyUnitService;
2726
}

0 commit comments

Comments
 (0)