C# Класс Adf.Core.Authorization.AuthorizationManager

Represents manager for authorization activities. Provides methods to login, logout etc.
Показать файл Открыть проект

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