META

MediaService

Метод и описание Возвращаемый тип
deleteExpired ( env: Env, mediaId: String) void
get ( env: Env, mediaId: String) MediaFile
getDownloadUrlPart ( id: String) String
getFilesBase64ZipArchive ( files: List) String
getViewUrlPart ( id: String) String
persist ( env: Env, fileBase64Content: String, filename: String, extension: String, mime: String, isPrivate: boolean) MediaFile
persist ( env: Env, fileBase64Content: String, filename: String, extension: String, mime: String, isPrivate: boolean, origin: String) MediaFile
persist ( env: Env, fileBase64Content: String, filename: String, extension: String, mime: String, isPrivate: boolean, ttlInSec: long) MediaFile
prepareFileName ( env: Env, filename: String) String
sendFileToResponse ( response: HttpServletResponse, media: MediaFile, fname: String, addHeadersForDownload: boolean) void
sendHeaders ( response: HttpServletResponse, contentType: String, fname: String, addHeadersForDownload: boolean) void
upsert ( req: UpsertRequest) MediaFile