DepartmentProject/DepartmentPortal/Common/ModelTools/Interfaces/ISecurityManager.cs

23 lines
833 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ModelTools.BindingModels;
using ModelTools.Enums;
namespace ModelTools.Interfaces
{
public interface ISecurityManager
{
/// <summary>
/// Сообщение с причиной не получения доступа
/// </summary>
string ErrorMessage { get; set; }
/// <summary>
/// Авторизация пользователя к операции
/// </summary>
/// <param name="model">Данные по пользователю</param>
/// <param name="operation">Операция, которую хотят выполнить</param>
/// <param name="type">Тип операции</param>
/// <param name="entity">Для какой сущности</param>
/// <returns></returns>
bool CheckAccess(AccessBindingModel model, AccessOperation operation, AccessType type, string entity);
}
}