Search in sources :

Example 1 with SisStore

use of com.zimbra.cs.store.external.SisStore in project zm-mailbox by Zimbra.

the class StoreManagerBasedTempBlobStore method getSisBlob.

@Override
public StoredBlob getSisBlob(byte[] hash) throws IOException, ServiceException {
    SisStore sisStore = (SisStore) storeManager;
    Blob blob = sisStore.getSisBlob(hash);
    if (blob != null) {
        //empty ID is also OK since we're really just wrapping Blob
        return new StoredBlob("", blob, null, blob.getRawSize());
    } else {
        return null;
    }
}
Also used : SisStore(com.zimbra.cs.store.external.SisStore) Blob(com.zimbra.cs.store.Blob) IncomingBlob(com.zimbra.cs.store.IncomingBlob)

Aggregations

Blob (com.zimbra.cs.store.Blob)1 IncomingBlob (com.zimbra.cs.store.IncomingBlob)1 SisStore (com.zimbra.cs.store.external.SisStore)1