|
12 | 12 | @Repository
|
13 | 13 | public interface UserFileRepository extends JpaRepository<UserFile, UUID> {
|
14 | 14 |
|
15 |
| - /** |
16 |
| - * Finds all the {@link UserFile}s associated with a {@link Submission}} |
17 |
| - * |
18 |
| - * @param submission the {@link Submission} for which the associated {@link UserFile}s are sought |
19 |
| - * @return {@link List} of associated {@link UserFile} objects |
20 |
| - */ |
21 |
| - List<UserFile> findAllBySubmission(Submission submission); |
22 |
| - |
23 |
| - /** |
24 |
| - * Gets a count of all the {@link UserFile}s associated with a {@link Submission}} where the |
25 |
| - * file has never been converted |
26 |
| - * |
27 |
| - * @param submission the {@link Submission} for which the count of associated {@link UserFile}s are sought |
28 |
| - * @return count of {@link UserFile}s |
29 |
| - */ |
30 |
| - long countBySubmissionAndConversionSourceFileIdIsNull(Submission submission); |
31 |
| - |
32 |
| - List<UserFile> findAllBySubmissionAndConversionSourceFileId(Submission submission, UUID conversionSourceFileId); |
| 15 | + /** |
| 16 | + * Finds all the {@link UserFile}s associated with a {@link Submission}} |
| 17 | + * |
| 18 | + * @param submission the {@link Submission} for which the associated {@link UserFile}s are sought |
| 19 | + * @return {@link List} of associated {@link UserFile} objects |
| 20 | + */ |
| 21 | + List<UserFile> findAllBySubmission(Submission submission); |
| 22 | + |
| 23 | + /** |
| 24 | + * Gets a count of all the {@link UserFile}s associated with a {@link Submission}} where the file has never been converted |
| 25 | + * |
| 26 | + * @param submission the {@link Submission} for which the count of associated {@link UserFile}s are sought |
| 27 | + * @return count of {@link UserFile}s |
| 28 | + */ |
| 29 | + long countBySubmissionAndConversionSourceFileIdIsNull(Submission submission); |
| 30 | + |
| 31 | + /** |
| 32 | + * Finds all the {@link UserFile}s associated with a {@link Submission}} where the conversionSourceFileId matches |
| 33 | + * |
| 34 | + * @param submission the {@link Submission} for which the associated {@link UserFile}s are sought |
| 35 | + * @param conversionSourceFileId |
| 36 | + * @return |
| 37 | + */ |
| 38 | + List<UserFile> findAllBySubmissionAndConversionSourceFileId(Submission submission, UUID conversionSourceFileId); |
| 39 | + |
| 40 | + /** |
| 41 | + * Finds all the {@link UserFile}s associated with a {@link Submission}} ordered by the OriginalName field |
| 42 | + * |
| 43 | + * @param submission the {@link Submission} for which the associated {@link UserFile}s are sought |
| 44 | + * @return |
| 45 | + */ |
| 46 | + List<UserFile> findAllBySubmissionOrderByOriginalName(Submission submission); |
| 47 | + |
| 48 | + /** |
| 49 | + * Finds all the {@link UserFile}s associated with a {@link Submission}} where the mimeType matches and ordered by the |
| 50 | + * OriginalName field |
| 51 | + * |
| 52 | + * @param submission the {@link Submission} for which the associated {@link UserFile}s are sought |
| 53 | + * @param mimeType |
| 54 | + * @return |
| 55 | + */ |
| 56 | + List<UserFile> findAllBySubmissionAndMimeTypeOrderByOriginalName(Submission submission, String mimeType); |
| 57 | + |
33 | 58 | }
|
0 commit comments