C# Class BExIS.Security.Services.Authorization.PermissionManager

Inheritance: IPermissionManager
Mostra file Open project: BEXIS2/Core Class Usage Examples

Public Methods

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

Method Details

CreateDataPermission() public method

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
return BExIS.Security.Entities.Authorization.DataPermission

CreateFeaturePermission() public method

public CreateFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : FeaturePermission
subjectId long
featureId long
permissionType PermissionType
return BExIS.Security.Entities.Authorization.FeaturePermission

DeleteDataPermission() public method

public DeleteDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
return bool

DeleteDataPermissionById() public method

public DeleteDataPermissionById ( long id ) : bool
id long
return bool

DeleteDataPermissionsByEntity() public method

public DeleteDataPermissionsByEntity ( long entityId, long dataId ) : bool
entityId long
dataId long
return bool

DeleteFeaturePermission() public method

public DeleteFeaturePermission ( long subjectId, long featureId ) : bool
subjectId long
featureId long
return bool

DeleteFeaturePermissionById() public method

public DeleteFeaturePermissionById ( long id ) : bool
id long
return bool

ExistsDataPermission() public method

public ExistsDataPermission ( IEnumerable subjectIds, long entityId, long dataId, RightType rightType ) : bool
subjectIds IEnumerable
entityId long
dataId long
rightType RightType
return bool

ExistsDataPermission() public method

public ExistsDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
return bool

ExistsDataPermissionId() public method

public ExistsDataPermissionId ( long id ) : bool
id long
return bool

ExistsFeaturePermission() public method

public ExistsFeaturePermission ( IEnumerable subjectIds, IEnumerable featureIds, PermissionType permissionType = PermissionType.Grant ) : bool
subjectIds IEnumerable
featureIds IEnumerable
permissionType PermissionType
return bool

ExistsFeaturePermission() public method

public ExistsFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : bool
subjectId long
featureId long
permissionType PermissionType
return bool

ExistsFeaturePermissionId() public method

public ExistsFeaturePermissionId ( long id ) : bool
id long
return bool

GetAllDataIds() public method

public GetAllDataIds ( IEnumerable subjectIds, long entityId, List rightTypes ) : IQueryable
subjectIds IEnumerable
entityId long
rightTypes List
return IQueryable

GetAllDataIds() public method

public GetAllDataIds ( IEnumerable subjectIds, long entityId, RightType rightType ) : IQueryable
subjectIds IEnumerable
entityId long
rightType RightType
return IQueryable

GetAllDataIds() public method

public GetAllDataIds ( long userId, long entityId, List rightTypes ) : IQueryable
userId long
entityId long
rightTypes List
return IQueryable

GetAllDataIds() public method

public GetAllDataIds ( long userId, long entityId, RightType rightType ) : IQueryable
userId long
entityId long
rightType RightType
return IQueryable

GetAllDataPermissions() public method

public GetAllDataPermissions ( ) : IQueryable
return IQueryable

GetAllFeaturePermissions() public method

public GetAllFeaturePermissions ( ) : IQueryable
return IQueryable

GetAllRights() public method

public GetAllRights ( long subjectId, long entityId, long dataId ) : IQueryable
subjectId long
entityId long
dataId long
return IQueryable

GetDataPermission() public method

public GetDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : DataPermission
subjectId long
entityId long
dataId long
rightType RightType
return BExIS.Security.Entities.Authorization.DataPermission

GetDataPermissionById() public method

public GetDataPermissionById ( long id ) : DataPermission
id long
return BExIS.Security.Entities.Authorization.DataPermission

GetDataPermissionsFromEntity() public method

public GetDataPermissionsFromEntity ( long entityId, long dataId ) : IQueryable
entityId long
dataId long
return IQueryable

GetFeaturePermission() public method

public GetFeaturePermission ( long subjectId, long featureId ) : FeaturePermission
subjectId long
featureId long
return BExIS.Security.Entities.Authorization.FeaturePermission

GetFeaturePermissionById() public method

public GetFeaturePermissionById ( long id ) : FeaturePermission
id long
return BExIS.Security.Entities.Authorization.FeaturePermission

GetFeaturePermissionType() public method

public GetFeaturePermissionType ( long subjectId, long featureId ) : int
subjectId long
featureId long
return int

HasSubjectFeatureAccess() public method

public HasSubjectFeatureAccess ( long subjectId, long featureId ) : bool
subjectId long
featureId long
return bool

HasUserDataAccess() public method

public HasUserDataAccess ( long userId, long entityId, long dataId, RightType rightType ) : bool
userId long
entityId long
dataId long
rightType RightType
return bool

HasUserDataAccess() public method

public HasUserDataAccess ( string username, long entityId, long dataId, RightType rightType ) : bool
username string
entityId long
dataId long
rightType RightType
return bool

PermissionManager() public method

public PermissionManager ( ) : System
return System

UpdateDataPermission() public method

public UpdateDataPermission ( DataPermission dataPermission ) : DataPermission
dataPermission BExIS.Security.Entities.Authorization.DataPermission
return BExIS.Security.Entities.Authorization.DataPermission

UpdateFeaturePermission() public method

public UpdateFeaturePermission ( FeaturePermission featurePermission ) : FeaturePermission
featurePermission BExIS.Security.Entities.Authorization.FeaturePermission
return BExIS.Security.Entities.Authorization.FeaturePermission