Interface FileRepositoryAdapter

All Known Implementing Classes:
FileRepositoryAdapterImpl

public interface FileRepositoryAdapter
Adapter for file repository operations with exception handling.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteById(Long fileId)
    Deletes file metadata by its ID.
    save(String filePath, String fileName, String extension, String uuid)
    Saves file metadata to the repository.
  • Method Details

    • save

      FileEntity save(String filePath, String fileName, String extension, String uuid)
      Saves file metadata to the repository.
      Parameters:
      filePath - the storage path of the file
      fileName - the original name of the file
      extension - 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

      void deleteById(Long fileId)
      Deletes file metadata by its ID.
      Parameters:
      fileId - the ID of the file entity to delete