@Validated
public interface FileService
| Modifier and Type | Method and Description |
|---|---|
void |
createFileIfNotExists(java.lang.String file)
Attempt to create a file reference in the system if it doesn't already exist.
|
long |
deleteUnusedFiles(java.time.Instant createdThreshold)
Delete all files from the database that aren't referenced which were created before the supplied created
threshold.
|
void createFileIfNotExists(@NotBlank(message="File path cannot be blank")
java.lang.String file)
file - the file to create. Not blank.long deleteUnusedFiles(@NotNull
java.time.Instant createdThreshold)
createdThreshold - The instant in time where files created before this time that aren't referenced
will be deleted. Inclusive