C# 클래스 Adf.Base.Authorization.AllAuthorizationProvider

Represents an Authorization service which will not allow any user to login to the system.
상속: IAuthorizationProvider
파일 보기 프로젝트 열기: NLADP/ADF

공개 메소드들

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

Checks whether the current user is allowed to performs the IAction.

IsAllowed ( string subject, IAction action ) : bool

Checks whether the current user is allowed to performs the IAction.

IsInRole ( string role ) : bool

Checks whether the current user belongs to a certain role.

Login ( string name, string password ) : LoginResult

Tries to log in using user credential.

Logout ( ) : void

Logs out the current user. Here no action is taken.

메소드 상세

IsAllowed() 공개 메소드

Checks whether the current user is allowed to performs the IAction.
public 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 IAction.
public IsAllowed ( string subject, IAction action ) : bool
subject string The subject for which authentication is requested.
action IAction Any action that implements IAction (such as ApplicationTask).
리턴 bool

IsInRole() 공개 메소드

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

Login() 공개 메소드

Tries to log in using user credential.
public Login ( string name, string password ) : LoginResult
name string Login name.
password string Password (if required).
리턴 Adf.Core.Authorization.LoginResult

Logout() 공개 메소드

Logs out the current user. Here no action is taken.
public Logout ( ) : void
리턴 void