BlobCommInterface

interface BlobCommInterface<T : BlobBo<T, RT>, RT : EntityBo<RT>> : EntityCommInterface<T>

Functions

all
Link copied to clipboard
common
abstract suspend fun all(): List<T>
byReference
Link copied to clipboard
common
abstract suspend fun byReference(reference: EntityId<RT>?, disposition: String? = null): List<T>
create
Link copied to clipboard
common
abstract suspend fun create(bo: T): T
delete
Link copied to clipboard
common
abstract suspend fun delete(id: EntityId<T>)
download
Link copied to clipboard
common
abstract suspend fun download(id: EntityId<T>): ByteArray
Download the data of the blob into a ByteArray.
listByReference
Link copied to clipboard
common
open suspend fun listByReference(reference: EntityId<RT>, disposition: String? = null): List<T>
read
Link copied to clipboard
common
open suspend fun read(id: Long): T
open suspend fun read(id: String): T
abstract suspend fun read(id: EntityId<T>): T
update
Link copied to clipboard
common
abstract suspend fun update(bo: T): T
upload
Link copied to clipboard
common
abstract suspend fun upload(bo: T, data: Any): T
Upload data for the given blob.
abstract suspend fun upload(bo: T, data: Any, callback: (T, state: BlobCreateState, uploaded: Long) -> Unit): T
Upload data for the given blob.

Inheritors

BlobComm
Link copied to clipboard