Interface FileRepositoryAdapter
- All Known Implementing Classes:
FileRepositoryAdapterImpl
public interface FileRepositoryAdapter
Adapter for file repository operations with exception handling.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(Long fileId) Deletes file metadata by its ID.Saves file metadata to the repository.
-
Method Details
-
save
Saves file metadata to the repository.- Parameters:
filePath- the storage path of the filefileName- the original name of the fileextension- the file extension including the dot (e.g., ".png")uuid- the unique identifier for the file- Returns:
- the saved file entity with generated ID
-
deleteById
Deletes file metadata by its ID.- Parameters:
fileId- the ID of the file entity to delete
-