2017-03-02 00:15:05 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2017-12-19 16:02:39 -05:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-03-08 21:45:08 -05:00
|
|
|
|
using Bit.Core.Models.Table;
|
2017-03-02 00:15:05 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IOrganizationRepository : IRepository<Organization, Guid>
|
|
|
|
|
|
{
|
2020-08-12 16:38:22 -04:00
|
|
|
|
Task<Organization> GetByIdentifierAsync(string identifier);
|
2017-08-22 15:27:29 -04:00
|
|
|
|
Task<ICollection<Organization>> GetManyByEnabledAsync();
|
2017-03-02 00:15:05 -05:00
|
|
|
|
Task<ICollection<Organization>> GetManyByUserIdAsync(Guid userId);
|
2018-03-21 17:41:14 -04:00
|
|
|
|
Task<ICollection<Organization>> SearchAsync(string name, string userEmail, bool? paid, int skip, int take);
|
2017-07-10 22:08:52 -04:00
|
|
|
|
Task UpdateStorageAsync(Guid id);
|
2017-12-19 16:02:39 -05:00
|
|
|
|
Task<ICollection<OrganizationAbility>> GetManyAbilitiesAsync();
|
2017-03-02 00:15:05 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|