Open vttranlina opened 2 months ago
AESBlobStoreDAO, CassandraBlobStoreDAO, MemoryBlobStoreDAO: Consider whether to throw new UnsupportException? or try to adapt with current way (Optional[Tenant] = empty) ?
I personally think Optional[Tenant] = empty for now, until we do proper implementation? That should keep the current behavior then correct?
I put this on hold.
Epic: https://github.com/linagora/james-project/issues/5263
How
Before proceeding with the refactor, we need to introduce the following classes:
Tenant
Bucket
For each method in BlobStore, we need to create a new API where the input argument changes from
BucketName
toBucket
.Example:
InputStream read(BucketName bucketName, BlobId blobId);
InputStream read(Bucket bucket, BlobId blobId);
Bucket
class.BlobStore
implementations:BlobStoreDAO
implementations: