2017-03-23 22:43:12 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Bit.Core.Models.Table;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
{
|
2017-04-27 15:19:30 +02:00
|
|
|
|
public interface ICollectionCipherRepository
|
2017-03-23 22:43:12 +01:00
|
|
|
|
{
|
2017-04-27 15:19:30 +02:00
|
|
|
|
Task<ICollection<CollectionCipher>> GetManyByUserIdAsync(Guid userId);
|
|
|
|
|
Task<ICollection<CollectionCipher>> GetManyByOrganizationIdAsync(Guid organizationId);
|
|
|
|
|
Task<ICollection<CollectionCipher>> GetManyByUserIdCipherIdAsync(Guid userId, Guid cipherId);
|
|
|
|
|
Task UpdateCollectionsAsync(Guid cipherId, Guid userId, IEnumerable<Guid> collectionIds);
|
|
|
|
|
Task UpdateCollectionsForAdminAsync(Guid cipherId, Guid organizationId, IEnumerable<Guid> collectionIds);
|
2017-03-23 22:43:12 +01:00
|
|
|
|
}
|
|
|
|
|
}
|