C# 클래스 Adf.Core.Authorization.AuthorizationManager

Represents manager for authorization activities. Provides methods to login, logout etc.
파일 보기 프로젝트 열기: NLADP/ADF

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
IsAllowed ( IAction action ) : bool

Checks whether the current user is allowed to performs the specified action.

IsAllowed ( string subject, IAction action ) : bool

Checks whether the current user is allowed to performs the specified action.

IsInRole ( string role ) : bool

Checks whether the current user belongs to the specified role.

Login ( string name, string password ) : LoginResult

Used for login.

Logout ( ) : void

Logs out the current user.

메소드 상세

IsAllowed() 공개 정적인 메소드

Checks whether the current user is allowed to performs the specified action.
public static IsAllowed ( IAction action ) : bool
action IAction Any action that implements IAction (such as ApplicationTask).
리턴 bool

IsAllowed() 공개 정적인 메소드

Checks whether the current user is allowed to performs the specified action.
public static IsAllowed ( string subject, IAction action ) : bool
subject string
action IAction Any action that implements IAction (such as ApplicationTask).
리턴 bool

IsInRole() 공개 정적인 메소드

Checks whether the current user belongs to the specified role.
public static IsInRole ( string role ) : bool
role string Role name to check for.
리턴 bool

Login() 공개 정적인 메소드

Used for login.
public static Login ( string name, string password ) : LoginResult
name string The user name.
password string The Password (if required).
리턴 LoginResult

Logout() 공개 정적인 메소드

Logs out the current user.
public static Logout ( ) : void
리턴 void