Interface FacialValidationService
- All Known Implementing Classes:
FacialValidationServiceImpl
@Service
public interface FacialValidationService
The
FacialValidationService
interface is used to manipulate
facial validation data.-
Method Summary
Modifier and TypeMethodDescriptiondeleteFacialValidationDataByPassportNumber
(String passportNumber) Deletes the facial validation data by passport number.org.springframework.data.domain.Page<FacialValidationData>
getAllFacialValidationData
(Integer page, Integer size) Fetches all facial validation data.getFacialValidationDataByPassportNumber
(String passportNumber) Fetches the facial validation data by passport number.void
Saves the facial validation data in the database.setFacialValidationToInvalid
(Long studentId) Sets the facial validity by passport number to invalid.setFacialValidationToValid
(String passportNumber) Sets the facial validity by passport number.
-
Method Details
-
saveFacialValidationData
Saves the facial validation data in the database.- Parameters:
data
- The facial validation data to be saved.
-
getFacialValidationDataByPassportNumber
Fetches the facial validation data by passport number.- Parameters:
passportNumber
- The passport number of the facial validation data.- Returns:
- The facial validation data.
-
deleteFacialValidationDataByPassportNumber
Deletes the facial validation data by passport number.- Parameters:
passportNumber
- The passport number of the facial validation data.- Returns:
- An informational message.
-
setFacialValidationToValid
Sets the facial validity by passport number.- Parameters:
passportNumber
- The passport number of the facial validation data.- Returns:
- A feedback message.
-
setFacialValidationToInvalid
Sets the facial validity by passport number to invalid.- Parameters:
studentId
- The id of the student.- Returns:
- A feedback message.
-
getAllFacialValidationData
org.springframework.data.domain.Page<FacialValidationData> getAllFacialValidationData(Integer page, Integer size) Fetches all facial validation data.- Parameters:
page
- The page number.size
- The number of elements inside a single page.- Returns:
- A page containing a subset of
FacialValidationData
.
-