C# Класс Core.Web.Helpers.ResourcePermissionsHelper

Наследование: IPermissionsHelper
Показать файл Открыть проект

Открытые методы

Метод Описание
ApplyPermissions ( PermissionsModel model, Type type ) : bool

Saves the resource permissions.

BindPermissionsModel ( long entityId, Type entityType, bool includeEntityNull ) : PermissionsModel

Binds the page permissions model.

GetResourceOperations ( Type resourceType ) : IEnumerable

Gets the resource operations.

Описание методов

ApplyPermissions() публичный Метод

Saves the resource permissions.
public ApplyPermissions ( PermissionsModel model, Type type ) : bool
model Core.Framework.Permissions.Models.PermissionsModel The model.
type System.Type The type.
Результат bool

BindPermissionsModel() публичный Метод

Binds the page permissions model.
public BindPermissionsModel ( long entityId, Type entityType, bool includeEntityNull ) : PermissionsModel
entityId long The entity id.
entityType System.Type Type of the entity.
includeEntityNull bool
Результат Core.Framework.Permissions.Models.PermissionsModel

GetResourceOperations() публичный статический Метод

Gets the resource operations.
public static GetResourceOperations ( Type resourceType ) : IEnumerable
resourceType System.Type Type of the resource.
Результат IEnumerable