C# 클래스 ToSic.SexyContent.Security.PermissionController

Permissions object which checks if the user is allowed to do soemthing based on specific permission This checks permissions based on EAV data related to an entity - so pure EAV, no DNN
파일 보기 프로젝트 열기: 2sic/2sxc 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CustomPermissionKey string

공개 메소드들

메소드 설명
PermissionController ( int zoneId, int appId, System.Guid typeGuid, IEntity targetItem, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System
PermissionController ( int zoneId, int appId, System.Guid typeGuid, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System

Initialize this object so it can then give information regarding the permissions of an entity. Uses a GUID as identifier because that survives export/import.

UserMay ( PermissionGrant action ) : bool
UserMay ( char actionCode ) : bool

Check if a user may do something based on the permissions in the background.

비공개 메소드들

메소드 설명
DoesPermissionAllow ( IEntity permissionEntity, char desiredActionCode ) : bool

Check if a specific permission entity allows for the desired permission

DoesPermissionsListAllow ( char desiredActionCode ) : bool

Check if the permission-list would allow such an action

메소드 상세

PermissionController() 공개 메소드

public PermissionController ( int zoneId, int appId, System.Guid typeGuid, IEntity targetItem, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System
zoneId int
appId int
typeGuid System.Guid
targetItem IEntity
module DotNetNuke.Entities.Modules.ModuleInfo
리턴 System

PermissionController() 공개 메소드

Initialize this object so it can then give information regarding the permissions of an entity. Uses a GUID as identifier because that survives export/import.
public PermissionController ( int zoneId, int appId, System.Guid typeGuid, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System
zoneId int EAV Zone
appId int EAV APP
typeGuid System.Guid Entity GUID to check permissions against
module DotNetNuke.Entities.Modules.ModuleInfo DNN Module - necessary for SecurityAccessLevel checks
리턴 System

UserMay() 공개 메소드

public UserMay ( PermissionGrant action ) : bool
action PermissionGrant
리턴 bool

UserMay() 공개 메소드

Check if a user may do something based on the permissions in the background.
public UserMay ( char actionCode ) : bool
actionCode char Short-code for r=read, u=update etc.
리턴 bool

프로퍼티 상세

CustomPermissionKey 공개적으로 프로퍼티

public string CustomPermissionKey
리턴 string