CreateBackupUseCaseImpl

internal class CreateBackupUseCaseImpl(    userId: <Error class: unknown class>,     clientIdProvider: CurrentClientIdProvider,     userRepository: UserRepository,     kaliumFileSystem: KaliumFileSystem,     databaseExporter: <Error class: unknown class>,     securityHelper: SecurityHelper,     dispatchers: <Error class: unknown class> = KaliumDispatcherImpl,     idMapper: IdMapper = MapperProvider.idMapper()) : CreateBackupUseCase

Constructors

Link copied to clipboard
constructor(    userId: <Error class: unknown class>,     clientIdProvider: CurrentClientIdProvider,     userRepository: UserRepository,     kaliumFileSystem: KaliumFileSystem,     databaseExporter: <Error class: unknown class>,     securityHelper: SecurityHelper,     dispatchers: <Error class: unknown class> = KaliumDispatcherImpl,     idMapper: IdMapper = MapperProvider.idMapper())

Functions

Link copied to clipboard
open suspend operator override fun invoke(password: String): CreateBackupResult

Creates a compressed backup file, containing a metadata json file and the current state of the database. This file can be encrypted with the provided password if it is not empty. Otherwise, the file will be unencrypted.