2022-03-20 10:10:44 +04:00
|
|
|
|
namespace ToolsModule.ManagmentSecurity
|
2021-04-02 15:53:15 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Работа с сущностями с применением скрытности для полей
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T">Сущность</typeparam>
|
|
|
|
|
public interface IEntitySecurityExtenstion<T>
|
|
|
|
|
where T: new()
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Обработка сущности для сокрытия важных полей
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="entity"></param>
|
|
|
|
|
/// <param name="allowFullData"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
T SecurityCheck(T entity, bool allowFullData);
|
|
|
|
|
}
|
|
|
|
|
}
|