C# Class Rebel.Framework.Security.PermissionsService

Inheritance: IPermissionsService
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

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

Protected Methods

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

Method Details

GetEffectivePermission() public method

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.
return PermissionResult

GetEffectivePermission() public method

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.
return PermissionResult

GetEffectivePermission() public method

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
return PermissionResult

GetEffectivePermissions() public method

public GetEffectivePermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
entityId HiveId
return PermissionResults

GetEffectivePermissions() public method

public GetEffectivePermissions ( HiveId userId, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
uow IReadonlyGroupUnit
securityUow IReadonlyGroupUnit
entityId HiveId
return PermissionResults

GetEffectivePermissions() public method

public GetEffectivePermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
entityId HiveId
return PermissionResults

GetEffectivePermissions() public method

public GetEffectivePermissions ( IEnumerable userGroupIds, IReadonlyGroupUnit uow, IReadonlyGroupUnit securityUow, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
uow IReadonlyGroupUnit
securityUow IReadonlyGroupUnit
entityId HiveId
return PermissionResults

GetExplicitPermission() public method

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.
return PermissionResult

GetExplicitPermission() public method

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.
return PermissionResult

GetExplicitPermission() public method

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

GetExplicitPermissions() public method

public GetExplicitPermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
entityId HiveId
return PermissionResults

GetExplicitPermissions() public method

public GetExplicitPermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
entityId HiveId
return PermissionResults

GetInheritedPermission() public method

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.
return PermissionResult

GetInheritedPermission() public method

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.
return PermissionResult

GetInheritedPermission() public method

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

GetInheritedPermissions() public method

public GetInheritedPermissions ( HiveId userId, HiveId entityId = default(HiveId) ) : PermissionResults
userId HiveId
entityId HiveId
return PermissionResults

GetInheritedPermissions() public method

public GetInheritedPermissions ( IEnumerable userGroupIds, HiveId entityId = default(HiveId) ) : PermissionResults
userGroupIds IEnumerable
entityId HiveId
return PermissionResults

GetPermissionStatus() protected method

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.
return PermissionStatus

GetPermissionStatus() protected method

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.
return PermissionStatus

GetPermissionStatuses() public method

public GetPermissionStatuses ( IEnumerable userGroupIds, HiveId entityId ) : IEnumerable
userGroupIds IEnumerable
entityId HiveId
return IEnumerable

GetUserGroupIdsForUser() protected method

Gets a list of UserGroup ids that the specified User belongs to.
protected GetUserGroupIdsForUser ( HiveId userId ) : IEnumerable
userId HiveId The user id.
return IEnumerable

PermissionsService() public method

public PermissionsService ( IHiveManager hive, PermissionMetadata>.IEnumerable permissions, IMembershipService usersMembershipService ) : System
hive IHiveManager
permissions PermissionMetadata>.IEnumerable
usersMembershipService IMembershipService
return System