Table of Contents

Interface IPermissionRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public interface IPermissionRepository

Methods

AddPermission(Permission)

Permission AddPermission(Permission permission)

Parameters

permission Permission

Returns

Permission

DeletePermission(int)

void DeletePermission(int permissionId)

Parameters

permissionId int

DeletePermissions(int, string, int)

void DeletePermissions(int siteId, string entityName, int entityId)

Parameters

siteId int
entityName string
entityId int

GetPermission(int)

Permission GetPermission(int permissionId)

Parameters

permissionId int

Returns

Permission

GetPermissions(int, string)

IEnumerable<Permission> GetPermissions(int siteId, string entityName)

Parameters

siteId int
entityName string

Returns

IEnumerable<Permission>

GetPermissions(int, string, int)

IEnumerable<Permission> GetPermissions(int siteId, string entityName, int entityId)

Parameters

siteId int
entityName string
entityId int

Returns

IEnumerable<Permission>

GetPermissions(int, string, int, string)

IEnumerable<Permission> GetPermissions(int siteId, string entityName, int entityId, string permissionName)

Parameters

siteId int
entityName string
entityId int
permissionName string

Returns

IEnumerable<Permission>

GetPermissions(int, string, string)

IEnumerable<Permission> GetPermissions(int siteId, string entityName, string permissionName)

Parameters

siteId int
entityName string
permissionName string

Returns

IEnumerable<Permission>

UpdatePermission(Permission)

Permission UpdatePermission(Permission permission)

Parameters

permission Permission

Returns

Permission

UpdatePermissions(int, string, int, List<Permission>)

void UpdatePermissions(int siteId, string entityName, int entityId, List<Permission> permissions)

Parameters

siteId int
entityName string
entityId int
permissions List<Permission>