-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new identification configuration and rework identificationS…
…tate
- Loading branch information
Showing
23 changed files
with
469 additions
and
154 deletions.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
src/main/java/fr/insee/pearljam/api/domain/IdentificationConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 10 additions & 29 deletions
39
src/main/java/fr/insee/pearljam/api/dto/statedata/StateDataDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,17 @@ | ||
package fr.insee.pearljam.api.dto.statedata; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
public class StateDataDto { | ||
private String state; | ||
private Long date; | ||
private String currentPage; | ||
|
||
public StateDataDto() { | ||
super(); | ||
} | ||
|
||
public StateDataDto(String state, Long date, String currentPage) { | ||
super(); | ||
this.state = state; | ||
this.date = date; | ||
this.currentPage = currentPage; | ||
} | ||
public String getState() { | ||
return state; | ||
} | ||
public void setState(String state) { | ||
this.state = state; | ||
} | ||
public Long getDate() { | ||
return date; | ||
} | ||
public void setDate(Long date) { | ||
this.date = date; | ||
} | ||
public String getCurrentPage() { | ||
return currentPage; | ||
} | ||
public void setCurrentPage(String currentPage) { | ||
this.currentPage = currentPage; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
src/main/java/fr/insee/pearljam/domain/surveyunit/model/Identification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
package fr.insee.pearljam.domain.surveyunit.model; | ||
|
||
import fr.insee.pearljam.domain.surveyunit.model.question.*; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record Identification( | ||
IdentificationQuestionValue identification, | ||
AccessQuestionValue access, | ||
SituationQuestionValue situation, | ||
CategoryQuestionValue category, | ||
OccupantQuestionValue occupant) { | ||
OccupantQuestionValue occupant, | ||
IndividualStatusQuestionValue individualStatus, | ||
InterviewerCanProcessQuestionValue interviewerCanProcess, | ||
NumberOfRespondentsQuestionValue numberOfRespondents, | ||
PresentInPreviousHomeQuestionValue presentInPreviousHome, | ||
HouseholdCompositionQuestionValue householdComposition | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/fr/insee/pearljam/domain/surveyunit/model/question/CategoryQuestionValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package fr.insee.pearljam.domain.surveyunit.model.question; | ||
|
||
public enum CategoryQuestionValue { | ||
PRIMARY, OCCASIONAL, DK, SECONDARY, VACANT; | ||
PRIMARY, OCCASIONAL, SECONDARY, VACANT; | ||
} |
Oops, something went wrong.