Package formflow.library.data
Class UserFileRepositoryService
java.lang.Object
formflow.library.data.UserFileRepositoryService
Service to retrieve and store UploadedFile objects in the database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountBySubmission(Submission submission) voiddeleteById(UUID id) Removes a particular UserFile based on passed inidfindAllBySubmission(Submission submission) Searches for a particular UserFile by itsidSaves the UploadedFile in the database.
-
Constructor Details
-
UserFileRepositoryService
-
-
Method Details
-
save
Saves the UploadedFile in the database.- Parameters:
userFile- the uploadedFile to save, not null- Returns:
- UUID of the file
-
findById
Searches for a particular UserFile by itsid- Parameters:
id- UUID of the UserFile to look for, not null- Returns:
- Optional containing UserFile if found, else empty
-
deleteById
Removes a particular UserFile based on passed inid- Parameters:
id- UUID of UserFile to remove, not null
-
findAllBySubmission
-
countBySubmission
-