2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2017-05-09 19:04:01 -04:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-05-08 14:08:44 -04:00
|
|
|
|
|
2022-08-29 15:53:48 -04:00
|
|
|
|
namespace Bit.Core.Repositories
|
2017-05-08 14:08:44 -04:00
|
|
|
|
{
|
2022-08-29 15:53:48 -04:00
|
|
|
|
public interface IGroupRepository : IRepository<Group, Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<Tuple<Group, ICollection<SelectionReadOnly>>> GetByIdWithCollectionsAsync(Guid id);
|
|
|
|
|
|
Task<ICollection<Group>> GetManyByOrganizationIdAsync(Guid organizationId);
|
|
|
|
|
|
Task<ICollection<Guid>> GetManyIdsByUserIdAsync(Guid organizationUserId);
|
|
|
|
|
|
Task<ICollection<Guid>> GetManyUserIdsByIdAsync(Guid id);
|
|
|
|
|
|
Task<ICollection<GroupUser>> GetManyGroupUsersByOrganizationIdAsync(Guid organizationId);
|
|
|
|
|
|
Task CreateAsync(Group obj, IEnumerable<SelectionReadOnly> collections);
|
|
|
|
|
|
Task ReplaceAsync(Group obj, IEnumerable<SelectionReadOnly> collections);
|
|
|
|
|
|
Task DeleteUserAsync(Guid groupId, Guid organizationUserId);
|
|
|
|
|
|
Task UpdateUsersAsync(Guid groupId, IEnumerable<Guid> organizationUserIds);
|
|
|
|
|
|
}
|
2017-05-08 14:08:44 -04:00
|
|
|
|
}
|