2017-05-08 20:08:44 +02:00
|
|
|
|
using System;
|
|
|
|
|
using Bit.Core.Models.Table;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2017-05-10 01:04:01 +02:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-05-08 20:08:44 +02:00
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
{
|
|
|
|
|
public interface IGroupRepository : IRepository<Group, Guid>
|
|
|
|
|
{
|
2017-05-11 17:41:13 +02:00
|
|
|
|
Task<Tuple<Group, ICollection<SelectionReadOnly>>> GetByIdWithCollectionsAsync(Guid id);
|
2017-05-08 20:08:44 +02:00
|
|
|
|
Task<ICollection<Group>> GetManyByOrganizationIdAsync(Guid organizationId);
|
2017-05-11 20:52:35 +02:00
|
|
|
|
Task<ICollection<GroupUserDetails>> GetManyUserDetailsByIdAsync(Guid id);
|
2017-05-10 01:04:01 +02:00
|
|
|
|
Task<ICollection<Guid>> GetManyIdsByUserIdAsync(Guid organizationUserId);
|
2017-05-11 17:41:13 +02:00
|
|
|
|
Task CreateAsync(Group obj, IEnumerable<SelectionReadOnly> collections);
|
|
|
|
|
Task ReplaceAsync(Group obj, IEnumerable<SelectionReadOnly> collections);
|
2017-05-10 01:24:03 +02:00
|
|
|
|
Task DeleteUserAsync(Guid groupId, Guid organizationUserId);
|
2017-05-08 20:08:44 +02:00
|
|
|
|
}
|
|
|
|
|
}
|