Property | Type | Description |
---|
Method | 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 ) : |
Used for login.
|
|
Logout ( ) : void |
Logs out the current user.
|
public static IsAllowed ( IAction action ) : bool | ||
action | IAction | Any action that implements IAction (such as ApplicationTask). |
return | bool |
public static IsAllowed ( string subject, IAction action ) : bool | ||
subject | string | |
action | IAction | Any action that implements IAction (such as ApplicationTask). |
return | bool |
public static IsInRole ( string role ) : bool | ||
role | string | Role name to check for. |
return | bool |
public static Login ( string name, string password ) : |
||
name | string | The user name. |
password | string | The Password (if required). |
return |