-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VKT(Frontend & Backend): Enrollment appointment contact form continues
- Loading branch information
Showing
13 changed files
with
115 additions
and
29 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
backend/vkt/src/main/java/fi/oph/vkt/api/dto/PublicEnrollmentContactCreateDTO.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package fi.oph.vkt.api.dto; | ||
|
||
import fi.oph.vkt.util.StringUtil; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Builder; | ||
import lombok.NonNull; | ||
|
||
@Builder | ||
public record PublicEnrollmentContactCreateDTO( | ||
@NonNull @NotNull Boolean oralSkill, | ||
@NonNull @NotNull Boolean textualSkill, | ||
@NonNull @NotNull Boolean understandingSkill, | ||
@NonNull @NotNull Boolean speakingPartialExam, | ||
@NonNull @NotNull Boolean speechComprehensionPartialExam, | ||
@NonNull @NotNull Boolean writingPartialExam, | ||
@NonNull @NotNull Boolean readingComprehensionPartialExam, | ||
@Size(max = 1024) String previousEnrollment, | ||
@Size(max = 255) @NonNull @NotBlank String email, | ||
@Size(max = 255) @NonNull @NotBlank String firstName, | ||
@Size(max = 255) @NonNull @NotBlank String lastName | ||
) { | ||
public PublicEnrollmentContactCreateDTO { | ||
previousEnrollment = StringUtil.sanitize(previousEnrollment); | ||
email = StringUtil.sanitize(email); | ||
firstName = StringUtil.sanitize(firstName); | ||
lastName = StringUtil.sanitize(lastName); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
backend/vkt/src/main/java/fi/oph/vkt/service/AbstractEnrollmentService.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
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
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
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
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