FileService

@Service
class FileService(userService: IUserServiceApi)

Constructors

Link copied to clipboard
constructor(userService: IUserServiceApi)

Functions

Link copied to clipboard
fun baseDirectory(storagePath: String): String

Returns the base directory of a user.

Link copied to clipboard
fun delete(fileContext: String, identifier: String, filename: String, storagePath: String)
Link copied to clipboard
fun filePath(fileContext: String, identifier: String, filename: String, storagePath: String): Path
Link copied to clipboard
fun load(fileContext: String, identifier: String, filename: String, storagePath: String): ByteArray
Link copied to clipboard
fun save(file: Resource, targetFilePathAndName: String)