C# Class Core.Web.Helpers.ResourcePermissionsHelper

Inheritance: IPermissionsHelper
Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
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.

Method Details

ApplyPermissions() public method

Saves the resource permissions.
public ApplyPermissions ( PermissionsModel model, Type type ) : bool
model Core.Framework.Permissions.Models.PermissionsModel The model.
type System.Type The type.
return bool

BindPermissionsModel() public method

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
return Core.Framework.Permissions.Models.PermissionsModel

GetResourceOperations() public static method

Gets the resource operations.
public static GetResourceOperations ( Type resourceType ) : IEnumerable
resourceType System.Type Type of the resource.
return IEnumerable