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

Inheritance: IPermissionManager
Afficher le fichier Open project: BEXIS2/Core Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat BExIS.Security.Entities.Authorization.DataPermission

CreateFeaturePermission() public méthode

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

DeleteDataPermission() public méthode

public DeleteDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
Résultat bool

DeleteDataPermissionById() public méthode

public DeleteDataPermissionById ( long id ) : bool
id long
Résultat bool

DeleteDataPermissionsByEntity() public méthode

public DeleteDataPermissionsByEntity ( long entityId, long dataId ) : bool
entityId long
dataId long
Résultat bool

DeleteFeaturePermission() public méthode

public DeleteFeaturePermission ( long subjectId, long featureId ) : bool
subjectId long
featureId long
Résultat bool

DeleteFeaturePermissionById() public méthode

public DeleteFeaturePermissionById ( long id ) : bool
id long
Résultat bool

ExistsDataPermission() public méthode

public ExistsDataPermission ( IEnumerable subjectIds, long entityId, long dataId, RightType rightType ) : bool
subjectIds IEnumerable
entityId long
dataId long
rightType RightType
Résultat bool

ExistsDataPermission() public méthode

public ExistsDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
Résultat bool

ExistsDataPermissionId() public méthode

public ExistsDataPermissionId ( long id ) : bool
id long
Résultat bool

ExistsFeaturePermission() public méthode

public ExistsFeaturePermission ( IEnumerable subjectIds, IEnumerable featureIds, PermissionType permissionType = PermissionType.Grant ) : bool
subjectIds IEnumerable
featureIds IEnumerable
permissionType PermissionType
Résultat bool

ExistsFeaturePermission() public méthode

public ExistsFeaturePermission ( long subjectId, long featureId, PermissionType permissionType = PermissionType.Grant ) : bool
subjectId long
featureId long
permissionType PermissionType
Résultat bool

ExistsFeaturePermissionId() public méthode

public ExistsFeaturePermissionId ( long id ) : bool
id long
Résultat bool

GetAllDataIds() public méthode

public GetAllDataIds ( IEnumerable subjectIds, long entityId, List rightTypes ) : IQueryable
subjectIds IEnumerable
entityId long
rightTypes List
Résultat IQueryable

GetAllDataIds() public méthode

public GetAllDataIds ( IEnumerable subjectIds, long entityId, RightType rightType ) : IQueryable
subjectIds IEnumerable
entityId long
rightType RightType
Résultat IQueryable

GetAllDataIds() public méthode

public GetAllDataIds ( long userId, long entityId, List rightTypes ) : IQueryable
userId long
entityId long
rightTypes List
Résultat IQueryable

GetAllDataIds() public méthode

public GetAllDataIds ( long userId, long entityId, RightType rightType ) : IQueryable
userId long
entityId long
rightType RightType
Résultat IQueryable

GetAllDataPermissions() public méthode

public GetAllDataPermissions ( ) : IQueryable
Résultat IQueryable

GetAllFeaturePermissions() public méthode

public GetAllFeaturePermissions ( ) : IQueryable
Résultat IQueryable

GetAllRights() public méthode

public GetAllRights ( long subjectId, long entityId, long dataId ) : IQueryable
subjectId long
entityId long
dataId long
Résultat IQueryable

GetDataPermission() public méthode

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

GetDataPermissionById() public méthode

public GetDataPermissionById ( long id ) : DataPermission
id long
Résultat BExIS.Security.Entities.Authorization.DataPermission

GetDataPermissionsFromEntity() public méthode

public GetDataPermissionsFromEntity ( long entityId, long dataId ) : IQueryable
entityId long
dataId long
Résultat IQueryable

GetFeaturePermission() public méthode

public GetFeaturePermission ( long subjectId, long featureId ) : FeaturePermission
subjectId long
featureId long
Résultat BExIS.Security.Entities.Authorization.FeaturePermission

GetFeaturePermissionById() public méthode

public GetFeaturePermissionById ( long id ) : FeaturePermission
id long
Résultat BExIS.Security.Entities.Authorization.FeaturePermission

GetFeaturePermissionType() public méthode

public GetFeaturePermissionType ( long subjectId, long featureId ) : int
subjectId long
featureId long
Résultat int

HasSubjectFeatureAccess() public méthode

public HasSubjectFeatureAccess ( long subjectId, long featureId ) : bool
subjectId long
featureId long
Résultat bool

HasUserDataAccess() public méthode

public HasUserDataAccess ( long userId, long entityId, long dataId, RightType rightType ) : bool
userId long
entityId long
dataId long
rightType RightType
Résultat bool

HasUserDataAccess() public méthode

public HasUserDataAccess ( string username, long entityId, long dataId, RightType rightType ) : bool
username string
entityId long
dataId long
rightType RightType
Résultat bool

PermissionManager() public méthode

public PermissionManager ( ) : System
Résultat System

UpdateDataPermission() public méthode

public UpdateDataPermission ( DataPermission dataPermission ) : DataPermission
dataPermission BExIS.Security.Entities.Authorization.DataPermission
Résultat BExIS.Security.Entities.Authorization.DataPermission

UpdateFeaturePermission() public méthode

public UpdateFeaturePermission ( FeaturePermission featurePermission ) : FeaturePermission
featurePermission BExIS.Security.Entities.Authorization.FeaturePermission
Résultat BExIS.Security.Entities.Authorization.FeaturePermission