Uses of Class
com.markvarga21.studentmanager.dto.StudentDto
Packages that use StudentDto
Package
Description
This package contains the controllers of the application.
This package contains the entities of the application.
A package which contains mapping utilities.
A package containing the interfaces for the main services.
A package containing service interfaces related to
Azure's Form Recognizer's services.
A package containing service implementations related
to Azure's Form Recognizer's services.
A package containing the implementations
for the main student service.
Contains interfaces for accessing passport
validation data.
Contains implementation for accessing passport
validation data.
-
Uses of StudentDto in com.markvarga21.studentmanager.controller
Methods in com.markvarga21.studentmanager.controller that return types with arguments of type StudentDtoModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<StudentDto>
StudentController.createStudent
(@Valid StudentDto student, String username, String roles) Saves and validates a student in the database and then returns it.org.springframework.http.ResponseEntity<StudentDto>
StudentController.deleteStudentById
(Long id) Deletes a student and then retrieves it.org.springframework.data.domain.Page<StudentDto>
StudentController.getAllStudents
(Integer page, Integer size) Retrieves all the students from the application.org.springframework.http.ResponseEntity<StudentDto>
FormRecognizerController.getDataFromPassport
(org.springframework.web.multipart.MultipartFile passport) Extracts- and returns the data from the passport.org.springframework.http.ResponseEntity<StudentDto>
PassportValidationController.getPassportValidationByPassportNumber
(String passportNumber) Retrieves theStudentDto
object from the validation data identified by the passport number.org.springframework.http.ResponseEntity<StudentDto>
StudentController.getStudentById
(Long id) Retrieves the desired student using its ID, then returns it.org.springframework.http.ResponseEntity<StudentDto>
StudentController.updateStudentById
(@Valid StudentDto student, Long studentId) Updates a student and then retrieves it.Methods in com.markvarga21.studentmanager.controller with parameters of type StudentDtoModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<StudentDto>
StudentController.createStudent
(@Valid StudentDto student, String username, String roles) Saves and validates a student in the database and then returns it.org.springframework.http.ResponseEntity<StudentDto>
StudentController.updateStudentById
(@Valid StudentDto student, Long studentId) Updates a student and then retrieves it. -
Uses of StudentDto in com.markvarga21.studentmanager.entity
Methods in com.markvarga21.studentmanager.entity that return StudentDtoModifier and TypeMethodDescriptionstatic StudentDto
PassportValidationData.getStudentDtoFromValidationData
(PassportValidationData passportValidationData) Creates a newStudentDto
object from the providedPassportValidationData
.Methods in com.markvarga21.studentmanager.entity with parameters of type StudentDtoModifier and TypeMethodDescriptionstatic PassportValidationData
PassportValidationData.createPassportValidationDataForStudent
(StudentDto studentDto) Creates a new passport validation data from the providedStudentDto
. -
Uses of StudentDto in com.markvarga21.studentmanager.mapping
Methods in com.markvarga21.studentmanager.mapping that return StudentDtoModifier and TypeMethodDescriptionStudentMapper.mapJsonToDto
(String studentJson) Maps a JSON string to aStudentDto
.StudentMapper.mapStudentEntityToDto
(Student student) Maps anStudent
entity to anStudentDto
.Methods in com.markvarga21.studentmanager.mapping with parameters of type StudentDtoModifier and TypeMethodDescriptionStudentMapper.mapStudentDtoToEntity
(StudentDto studentDto) Maps aStudentDto
to aStudent
entity. -
Uses of StudentDto in com.markvarga21.studentmanager.service
Methods in com.markvarga21.studentmanager.service that return StudentDtoModifier and TypeMethodDescriptionStudentService.createStudent
(StudentDto studentDto, String username, String roles) Validates and then persists a student in the database.StudentService.deleteStudentById
(Long id) Deletes a student by its ID.StudentService.getStudentById
(Long id) Retrieves a student from the database using its ID.StudentService.modifyStudentById
(StudentDto studentDto, Long userId) Modifies the student given its id.Methods in com.markvarga21.studentmanager.service that return types with arguments of type StudentDtoModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<StudentDto>
StudentService.getAllStudents
(Integer page, Integer size) Retrieves all the students from the database.StudentService.getStudentByFirstAndLastName
(String firstName, String lastName) Retrieves a student by its first and last name.StudentService.getStudentByUsername
(String username) Retrieves a student by its username.Methods in com.markvarga21.studentmanager.service with parameters of type StudentDtoModifier and TypeMethodDescriptionStudentService.createStudent
(StudentDto studentDto, String username, String roles) Validates and then persists a student in the database.StudentService.modifyStudentById
(StudentDto studentDto, Long userId) Modifies the student given its id. -
Uses of StudentDto in com.markvarga21.studentmanager.service.form
Methods in com.markvarga21.studentmanager.service.form that return StudentDtoModifier and TypeMethodDescriptionFormRecognizerService.extractDataFromPassport
(org.springframework.web.multipart.MultipartFile passport) Extracts and returns the data from the passport. -
Uses of StudentDto in com.markvarga21.studentmanager.service.form.impl
Methods in com.markvarga21.studentmanager.service.form.impl that return StudentDtoModifier and TypeMethodDescriptionFormRecognizerServiceImpl.extractDataFromPassport
(org.springframework.web.multipart.MultipartFile passport) Extracts and returns the data from the passport. -
Uses of StudentDto in com.markvarga21.studentmanager.service.impl
Methods in com.markvarga21.studentmanager.service.impl that return StudentDtoModifier and TypeMethodDescriptionStudentServiceImpl.createStudent
(StudentDto studentDto, String username, String roles) Validates-, and then persists the student into the database.StudentServiceImpl.deleteStudentById
(Long id) Deletes a student by its ID.StudentServiceImpl.getStudentById
(Long id) Retrieves a student from the application using its id.StudentServiceImpl.modifyStudentById
(StudentDto studentDto, Long studentId) Validates and then modifies the student's information.Methods in com.markvarga21.studentmanager.service.impl that return types with arguments of type StudentDtoModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<StudentDto>
StudentServiceImpl.getAllStudents
(Integer page, Integer size) Retrieves all the students from the application.StudentServiceImpl.getStudentByFirstAndLastName
(String firstName, String lastName) Retrieves a student from the database using its first and last name.StudentServiceImpl.getStudentByUsername
(String username) Retrieves a student by its username.Methods in com.markvarga21.studentmanager.service.impl with parameters of type StudentDtoModifier and TypeMethodDescriptionStudentServiceImpl.createStudent
(StudentDto studentDto, String username, String roles) Validates-, and then persists the student into the database.StudentServiceImpl.modifyStudentById
(StudentDto studentDto, Long studentId) Validates and then modifies the student's information. -
Uses of StudentDto in com.markvarga21.studentmanager.service.validation.passport
Methods in com.markvarga21.studentmanager.service.validation.passport that return StudentDtoModifier and TypeMethodDescriptionPassportValidationService.getStudentFromPassportValidation
(String passportNumber) Retrieves aStudentDto
object from the validation data by passport number. -
Uses of StudentDto in com.markvarga21.studentmanager.service.validation.passport.impl
Methods in com.markvarga21.studentmanager.service.validation.passport.impl that return StudentDtoModifier and TypeMethodDescriptionPassportValidationServiceImpl.getStudentFromPassportValidation
(String passportNumber) RetrievesStudentDto
object from the validation data indentified by passport number.