C# Класс BExIS.Security.Services.Authorization.PermissionManager

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

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

Метод Описание
CreateDataPermission ( long subjectId, long entityId, long dataId, RightType rightType, PermissionType permissionType = PermissionType.Grant ) : DataPermission
CreateFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : FeaturePermission
DeleteDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
DeleteDataPermissionById ( long id ) : bool
DeleteDataPermissionsByEntity ( long entityId, long dataId ) : bool
DeleteFeaturePermission ( long subjectId, long featureId ) : bool
DeleteFeaturePermissionById ( long id ) : bool
ExistsDataPermission ( IEnumerable subjectIds, long entityId, long dataId, RightType rightType ) : bool
ExistsDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
ExistsDataPermissionId ( long id ) : bool
ExistsFeaturePermission ( IEnumerable subjectIds, IEnumerable featureIds, PermissionType permissionType = PermissionType.Grant ) : bool
ExistsFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : bool
ExistsFeaturePermissionId ( long id ) : bool
GetAllDataIds ( IEnumerable subjectIds, long entityId, List rightTypes ) : IQueryable
GetAllDataIds ( IEnumerable subjectIds, long entityId, RightType rightType ) : IQueryable
GetAllDataIds ( long userId, long entityId, List rightTypes ) : IQueryable
GetAllDataIds ( long userId, long entityId, RightType rightType ) : IQueryable
GetAllDataPermissions ( ) : IQueryable
GetAllFeaturePermissions ( ) : IQueryable
GetAllRights ( long subjectId, long entityId, long dataId ) : IQueryable
GetDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : DataPermission
GetDataPermissionById ( long id ) : DataPermission
GetDataPermissionsFromEntity ( long entityId, long dataId ) : IQueryable
GetFeaturePermission ( long subjectId, long featureId ) : FeaturePermission
GetFeaturePermissionById ( long id ) : FeaturePermission
GetFeaturePermissionType ( long subjectId, long featureId ) : int
HasSubjectFeatureAccess ( long subjectId, long featureId ) : bool
HasUserDataAccess ( long userId, long entityId, long dataId, RightType rightType ) : bool
HasUserDataAccess ( string username, long entityId, long dataId, RightType rightType ) : bool
PermissionManager ( ) : System
UpdateDataPermission ( DataPermission dataPermission ) : DataPermission
UpdateFeaturePermission ( FeaturePermission featurePermission ) : FeaturePermission

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

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

public CreateDataPermission ( long subjectId, long entityId, long dataId, RightType rightType, PermissionType permissionType = PermissionType.Grant ) : DataPermission
subjectId long
entityId long
dataId long
rightType RightType
permissionType PermissionType
Результат BExIS.Security.Entities.Authorization.DataPermission

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

public CreateFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : FeaturePermission
subjectId long
featureId long
permissionType PermissionType
Результат BExIS.Security.Entities.Authorization.FeaturePermission

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

public DeleteDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
Результат bool

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

public DeleteDataPermissionById ( long id ) : bool
id long
Результат bool

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

public DeleteDataPermissionsByEntity ( long entityId, long dataId ) : bool
entityId long
dataId long
Результат bool

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

public DeleteFeaturePermission ( long subjectId, long featureId ) : bool
subjectId long
featureId long
Результат bool

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

public DeleteFeaturePermissionById ( long id ) : bool
id long
Результат bool

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

public ExistsDataPermission ( IEnumerable subjectIds, long entityId, long dataId, RightType rightType ) : bool
subjectIds IEnumerable
entityId long
dataId long
rightType RightType
Результат bool

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

public ExistsDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
Результат bool

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

public ExistsDataPermissionId ( long id ) : bool
id long
Результат bool

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

public ExistsFeaturePermission ( IEnumerable subjectIds, IEnumerable featureIds, PermissionType permissionType = PermissionType.Grant ) : bool
subjectIds IEnumerable
featureIds IEnumerable
permissionType PermissionType
Результат bool

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

public ExistsFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : bool
subjectId long
featureId long
permissionType PermissionType
Результат bool

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

public ExistsFeaturePermissionId ( long id ) : bool
id long
Результат bool

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

public GetAllDataIds ( IEnumerable subjectIds, long entityId, List rightTypes ) : IQueryable
subjectIds IEnumerable
entityId long
rightTypes List
Результат IQueryable

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

public GetAllDataIds ( IEnumerable subjectIds, long entityId, RightType rightType ) : IQueryable
subjectIds IEnumerable
entityId long
rightType RightType
Результат IQueryable

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

public GetAllDataIds ( long userId, long entityId, List rightTypes ) : IQueryable
userId long
entityId long
rightTypes List
Результат IQueryable

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

public GetAllDataIds ( long userId, long entityId, RightType rightType ) : IQueryable
userId long
entityId long
rightType RightType
Результат IQueryable

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

public GetAllDataPermissions ( ) : IQueryable
Результат IQueryable

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

public GetAllFeaturePermissions ( ) : IQueryable
Результат IQueryable

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

public GetAllRights ( long subjectId, long entityId, long dataId ) : IQueryable
subjectId long
entityId long
dataId long
Результат IQueryable

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

public GetDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : DataPermission
subjectId long
entityId long
dataId long
rightType RightType
Результат BExIS.Security.Entities.Authorization.DataPermission

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

public GetDataPermissionById ( long id ) : DataPermission
id long
Результат BExIS.Security.Entities.Authorization.DataPermission

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

public GetDataPermissionsFromEntity ( long entityId, long dataId ) : IQueryable
entityId long
dataId long
Результат IQueryable

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

public GetFeaturePermission ( long subjectId, long featureId ) : FeaturePermission
subjectId long
featureId long
Результат BExIS.Security.Entities.Authorization.FeaturePermission

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

public GetFeaturePermissionById ( long id ) : FeaturePermission
id long
Результат BExIS.Security.Entities.Authorization.FeaturePermission

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

public GetFeaturePermissionType ( long subjectId, long featureId ) : int
subjectId long
featureId long
Результат int

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

public HasSubjectFeatureAccess ( long subjectId, long featureId ) : bool
subjectId long
featureId long
Результат bool

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

public HasUserDataAccess ( long userId, long entityId, long dataId, RightType rightType ) : bool
userId long
entityId long
dataId long
rightType RightType
Результат bool

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

public HasUserDataAccess ( string username, long entityId, long dataId, RightType rightType ) : bool
username string
entityId long
dataId long
rightType RightType
Результат bool

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

public PermissionManager ( ) : System
Результат System

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

public UpdateDataPermission ( DataPermission dataPermission ) : DataPermission
dataPermission BExIS.Security.Entities.Authorization.DataPermission
Результат BExIS.Security.Entities.Authorization.DataPermission

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

public UpdateFeaturePermission ( FeaturePermission featurePermission ) : FeaturePermission
featurePermission BExIS.Security.Entities.Authorization.FeaturePermission
Результат BExIS.Security.Entities.Authorization.FeaturePermission