C# Класс Rebel.Framework.Security.PermissionsService

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

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

Метод Описание
GetEffectivePermission ( System.Guid permissionId, HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResult

Gets the effective permission.

GetEffectivePermission ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResult

Gets the effective permission.

GetEffectivePermission ( System.Guid permissionId, IEnumerable userGroupIds, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResult
GetEffectivePermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
GetEffectivePermissions ( HiveId userId, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResults
GetEffectivePermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
GetEffectivePermissions ( IEnumerable userGroupIds, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResults
GetExplicitPermission ( System.Guid permissionId, HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResult

Gets the explicit permission.

GetExplicitPermission ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResult

Gets the explicit permission.

GetExplicitPermission ( System.Guid permissionId, IEnumerable userGroupIds, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResult
GetExplicitPermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
GetExplicitPermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
GetInheritedPermission ( System.Guid permissionId, HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResult

Gets the inherited permission.

GetInheritedPermission ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResult

Gets the inherited permission.

GetInheritedPermission ( System.Guid permissionId, IEnumerable userGroupIds, IReadonlyGroupUnit uow, HiveId entityId = default(HiveId) ) : PermissionResult
GetInheritedPermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
GetInheritedPermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
GetPermissionStatuses ( IEnumerable userGroupIds, HiveId entityId ) : IEnumerable
PermissionsService ( IHiveManager hive, PermissionMetadata>.IEnumerable permissions, IMembershipService usersMembershipService ) : System

Защищенные методы

Метод Описание
GetPermissionStatus ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId, HiveId &source ) : PermissionStatus

Gets the permission status.

GetPermissionStatus ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId, HiveId &source, IReadonlyGroupUnit uow ) : PermissionStatus

Gets the permission status using an existing, open unit of work.

GetUserGroupIdsForUser ( HiveId userId ) : IEnumerable

Gets a list of UserGroup ids that the specified User belongs to.

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

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

Gets the effective permission.
public GetEffectivePermission ( System.Guid permissionId, HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid The permission id.
userId HiveId The user id.
entityId HiveId The entity id.
Результат PermissionResult

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

Gets the effective permission.
public GetEffectivePermission ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid The permission id.
userGroupIds IEnumerable The user group ids.
entityId HiveId The entity id.
Результат PermissionResult

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

public GetEffectivePermission ( System.Guid permissionId, IEnumerable userGroupIds, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid
userGroupIds IEnumerable
uow IReadonlyGroupUnit
securityUow IReadonlyGroupUnit
entityId HiveId
Результат PermissionResult

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

public GetEffectivePermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
entityId HiveId
Результат PermissionResults

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

public GetEffectivePermissions ( HiveId userId, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
uow IReadonlyGroupUnit
securityUow IReadonlyGroupUnit
entityId HiveId
Результат PermissionResults

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

public GetEffectivePermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
entityId HiveId
Результат PermissionResults

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

public GetEffectivePermissions ( IEnumerable userGroupIds, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
uow IReadonlyGroupUnit
securityUow IReadonlyGroupUnit
entityId HiveId
Результат PermissionResults

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

Gets the explicit permission.
public GetExplicitPermission ( System.Guid permissionId, HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid The permission id.
userId HiveId The user id.
entityId HiveId The entity id.
Результат PermissionResult

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

Gets the explicit permission.
public GetExplicitPermission ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid The permission id.
userGroupIds IEnumerable The user group ids.
entityId HiveId The entity id.
Результат PermissionResult

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

public GetExplicitPermission ( System.Guid permissionId, IEnumerable userGroupIds, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid
userGroupIds IEnumerable
securityUow IReadonlyGroupUnit
entityId HiveId
Результат PermissionResult

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

public GetExplicitPermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
entityId HiveId
Результат PermissionResults

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

public GetExplicitPermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
entityId HiveId
Результат PermissionResults

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

Gets the inherited permission.
public GetInheritedPermission ( System.Guid permissionId, HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid The permission id.
userId HiveId The user id.
entityId HiveId The entity id.
Результат PermissionResult

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

Gets the inherited permission.
public GetInheritedPermission ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid The permission id.
userGroupIds IEnumerable The user group ids.
entityId HiveId The entity id.
Результат PermissionResult

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

public GetInheritedPermission ( System.Guid permissionId, IEnumerable userGroupIds, IReadonlyGroupUnit uow, HiveId entityId = default(HiveId) ) : PermissionResult
permissionId System.Guid
userGroupIds IEnumerable
uow IReadonlyGroupUnit
entityId HiveId
Результат PermissionResult

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

public GetInheritedPermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
entityId HiveId
Результат PermissionResults

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

public GetInheritedPermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
entityId HiveId
Результат PermissionResults

GetPermissionStatus() защищенный Метод

Gets the permission status.
protected GetPermissionStatus ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId, HiveId &source ) : PermissionStatus
permissionId System.Guid The permission id.
userGroupIds IEnumerable The user group ids.
entityId HiveId The entity id.
source HiveId The source.
Результат PermissionStatus

GetPermissionStatus() защищенный Метод

Gets the permission status using an existing, open unit of work.
protected GetPermissionStatus ( System.Guid permissionId, IEnumerable userGroupIds, HiveId entityId, HiveId &source, IReadonlyGroupUnit uow ) : PermissionStatus
permissionId System.Guid The permission id.
userGroupIds IEnumerable The user group ids.
entityId HiveId The entity id.
source HiveId The source.
uow IReadonlyGroupUnit The unit of work.
Результат PermissionStatus

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

public GetPermissionStatuses ( IEnumerable userGroupIds, HiveId entityId ) : IEnumerable
userGroupIds IEnumerable
entityId HiveId
Результат IEnumerable

GetUserGroupIdsForUser() защищенный Метод

Gets a list of UserGroup ids that the specified User belongs to.
protected GetUserGroupIdsForUser ( HiveId userId ) : IEnumerable
userId HiveId The user id.
Результат IEnumerable

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

public PermissionsService ( IHiveManager hive, PermissionMetadata>.IEnumerable permissions, IMembershipService usersMembershipService ) : System
hive IHiveManager
permissions PermissionMetadata>.IEnumerable
usersMembershipService IMembershipService
Результат System