1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-05 14:23:30 +01:00
bitwarden-server/src/Core/Repositories/ISubvaultCipherRepository.cs

17 lines
680 B
C#
Raw Normal View History

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
{
public interface ISubvaultCipherRepository
{
Task<ICollection<SubvaultCipher>> GetManyByUserIdAsync(Guid userId);
2017-04-17 23:01:23 +02:00
Task<ICollection<SubvaultCipher>> GetManyByOrganizationIdAsync(Guid organizationId);
2017-04-04 23:22:47 +02:00
Task<ICollection<SubvaultCipher>> GetManyByUserIdCipherIdAsync(Guid userId, Guid cipherId);
2017-04-12 18:42:00 +02:00
Task UpdateSubvaultsAsync(Guid cipherId, Guid userId, IEnumerable<Guid> subvaultIds);
2017-04-18 05:12:48 +02:00
Task UpdateSubvaultsForAdminAsync(Guid cipherId, Guid organizationId, IEnumerable<Guid> subvaultIds);
2017-03-23 22:43:12 +01:00
}
}