2022-03-20 10:10:44 +04:00
|
|
|
|
namespace ToolsModule.ManagmentSecurity
|
2021-03-28 19:15:55 +04:00
|
|
|
|
{
|
2022-03-20 10:10:44 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Данные для проверки доступа
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class SecurityManagerCheckAccessModel
|
2021-03-28 19:15:55 +04:00
|
|
|
|
{
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|