C# Class Adf.Core.Authorization.AuthorizationManager

Represents manager for authorization activities. Provides methods to login, logout etc.
Afficher le fichier Open project: NLADP/ADF

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

IsAllowed() public static méthode

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).
Résultat bool

IsAllowed() public static méthode

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).
Résultat bool

IsInRole() public static méthode

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

Login() public static méthode

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

Logout() public static méthode

Logs out the current user.
public static Logout ( ) : void
Résultat void