2017-07-10 23:08:50 +02:00
|
|
|
|
using Bit.Core.Models.Table;
|
|
|
|
|
using System;
|
2017-07-10 20:30:12 +02:00
|
|
|
|
using System.IO;
|
2017-06-15 21:34:12 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IAttachmentStorageService
|
|
|
|
|
{
|
2017-07-10 23:08:50 +02:00
|
|
|
|
Task UploadNewAttachmentAsync(Stream stream, Cipher cipher, string attachmentId);
|
2017-07-10 20:30:12 +02:00
|
|
|
|
Task UploadShareAttachmentAsync(Stream stream, Guid cipherId, Guid organizationId, string attachmentId);
|
|
|
|
|
Task StartShareAttachmentAsync(Guid cipherId, Guid organizationId, string attachmentId);
|
|
|
|
|
Task RollbackShareAttachmentAsync(Guid cipherId, Guid organizationId, string attachmentId);
|
2017-07-11 02:48:06 +02:00
|
|
|
|
Task CleanupAsync(Guid cipherId);
|
2017-07-10 20:30:12 +02:00
|
|
|
|
Task DeleteAttachmentAsync(Guid cipherId, string attachmentId);
|
2017-07-11 02:48:06 +02:00
|
|
|
|
Task DeleteAttachmentsForCipherAsync(Guid cipherId);
|
|
|
|
|
Task DeleteAttachmentsForOrganizationAsync(Guid organizationId);
|
|
|
|
|
Task DeleteAttachmentsForUserAsync(Guid userId);
|
2017-06-15 21:34:12 +02:00
|
|
|
|
}
|
|
|
|
|
}
|