works.iterative.core.service.impl.MongoFileStore
See theMongoFileStore companion object
class MongoFileStore(collection: MongoCollection[BsonDocument], bucket: GridFSBucket, authenticationService: AuthenticationService) extends FileStoreWriter, FileStoreLoader
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait FileStoreLoadertrait FileStoreWriterclass Objecttrait Matchableclass Any
Members list
Type members
Inherited types
Attributes
- Inherited from:
- FileStoreLoader
Value members
Concrete methods
Stores file, or reuses a stored file with the same SHA-256 digest and the same uploader.
Stores file, or reuses a stored file with the same SHA-256 digest and the same uploader.
The uploader is the UploadedBy value after withUploader: the current user when there is one, else the value in metadata. A stored file is reused only when its UploadedBy equals that uploader, where "no uploader" equals only "no uploader". Bytes another uploader stored therefore give a new file stamped with this call's uploader.
Attributes
- Definition Classes
-
FileStoreWriter
override def store(name: String, content: ZStream[Any, Throwable, Byte], metadata: Metadata): UIO[FileRef]
Attributes
- Definition Classes
-
FileStoreWriter
Attributes
- Definition Classes
-
FileStoreWriter
Attributes
- Definition Classes
-
FileStoreWriter
Attributes
- Definition Classes
-
FileStoreWriter
In this article