mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
21 lines
943 B
C#
21 lines
943 B
C#
using Bit.Core.AdminConsole.Entities;
|
|
using Bit.Core.AdminConsole.Enums;
|
|
using Bit.Core.AdminConsole.Models.Data.Organizations.Policies;
|
|
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Data.Organizations.OrganizationUsers;
|
|
|
|
namespace Bit.Core.AdminConsole.Services;
|
|
|
|
public interface IPolicyService
|
|
{
|
|
Task SaveAsync(Policy policy, Guid? savingUserId);
|
|
|
|
/// <summary>
|
|
/// Get the combined master password policy options for the specified user.
|
|
/// </summary>
|
|
Task<MasterPasswordPolicyData> GetMasterPasswordPolicyForUserAsync(User user);
|
|
Task<ICollection<OrganizationUserPolicyDetails>> GetPoliciesApplicableToUserAsync(Guid userId, PolicyType policyType, OrganizationUserStatusType minStatus = OrganizationUserStatusType.Accepted);
|
|
Task<bool> AnyPoliciesApplicableToUserAsync(Guid userId, PolicyType policyType, OrganizationUserStatusType minStatus = OrganizationUserStatusType.Accepted);
|
|
}
|