FileManagerService

@Service
class FileManagerService(folderRepository: StorageFolderRepository, fileRepository: StorageFileRepository, storageService: StorageService)(source)

Constructors

Link copied to clipboard
constructor(folderRepository: StorageFolderRepository, fileRepository: StorageFileRepository, storageService: StorageService)

Functions

Link copied to clipboard
@Transactional
fun createFolder(tenantId: String, request: CreateFolderRequest): FolderResponse
Link copied to clipboard
fun listFiles(tenantId: String, folderId: String?): List<FileResponse>
Link copied to clipboard
fun listFolders(tenantId: String, parentId: String?): List<FolderResponse>
Link copied to clipboard
@Transactional
fun uploadFile(tenantId: String, file: MultipartFile, folderId: String?): FileResponse