C# Class BeiDream.Demo.Infrastructure.Security.Authorization.PermissionSupportService

Inheritance: IPermissionSupportService
显示文件 Open project: BeiMeng/BeiDream

Public Methods

Method Description
GetPermissionsByResource ( string resourceUri ) : BeiDream.Core.Security.Authorization.ResourcePermissions

检测该用户是否属于当前租户

获取资源的权限列表

IsInApplication ( string userId ) : bool

检测该用户是否属于当前应用程序

Private Methods

Method Description
GetPermissions ( string resourceUri ) : List

从数据库权限表里,根据资源id获取此资源的所有的角色集合(权限列表)

Method Details

GetPermissionsByResource() public method

检测该用户是否属于当前租户 获取资源的权限列表
public GetPermissionsByResource ( string resourceUri ) : BeiDream.Core.Security.Authorization.ResourcePermissions
resourceUri string 资源标识
return BeiDream.Core.Security.Authorization.ResourcePermissions

IsInApplication() public method

检测该用户是否属于当前应用程序
public IsInApplication ( string userId ) : bool
userId string 用户编号
return bool