DepartmentProject/DepartmentPortal/Common/ToolsModule/ManagmentSecurity/SecurityManagerCheckAccessModel.cs

36 lines
910 B
C#
Raw Normal View History

2022-03-20 10:10:44 +04:00
namespace ToolsModule.ManagmentSecurity
{
2022-03-20 10:10:44 +04:00
/// <summary>
/// Данные для проверки доступа
/// </summary>
public class SecurityManagerCheckAccessModel
{
/// <summary>
/// Данные по пользователю
/// </summary>
public AccessBindingModel Model { get; set; }
/// <summary>
/// Операция, которую хотят выполнить
/// </summary>
public AccessOperation Operation { get; set; }
/// <summary>
/// Тип операции
/// </summary>
public AccessType Type { get; set; }
/// <summary>
/// Для какой сущности
/// </summary>
public string Entity { get; set; }
public SecurityManagerCheckAccessModel(AccessBindingModel model, AccessOperation operation, AccessType type, string entity)
{
Model = model;
Operation = operation;
Type = type;
Entity = entity;
}
}
}