C# 클래스 BExIS.Security.Services.Authorization.PermissionManager

상속: IPermissionManager
파일 보기 프로젝트 열기: BEXIS2/Core 1 사용 예제들

공개 메소드들

메소드 설명
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