![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Context information provided to an authorization rule when it is invoked. More...
Public Member Functions | |
| AuthorizationContext (ApplicationContext applicationContext, IAuthorizationRuleBase rule, object? target, Type targetType) | |
| Creates a AuthorizationContext instance for unit testing. | |
Properties | |
| IAuthorizationRuleBase | Rule [get] |
| Gets the rule object. | |
| object? | Target [get] |
| Gets a reference to the target business object. | |
| Type | TargetType [get] |
| Gets the type of the target business class. | |
| bool | HasPermission [get, set] |
| Gets or sets a value indicating whether the current user has permission to perform the requested action. | |
| object??[] | Criteria [get] |
| Gets an object which is the criteria specified in the data portal call, if any. | |
| ApplicationContext | ApplicationContext [get] |
| Gets a reference to the current ApplicationContext. | |
| IDataPortalFactory | DataPortalFactory [get] |
| Gets a data portal factory instance. | |
Context information provided to an authorization rule when it is invoked.
|
inline |
Creates a AuthorizationContext instance for unit testing.
| applicationContext | |
| rule | The rule. |
| target | The target. |
| targetType | Type of the target. |
| ArgumentNullException | applicationContext , rule or targetType is null. |
|
get |
Gets a reference to the current ApplicationContext.
Implements Csla.Rules.IAuthorizationContext.
|
get |
Gets an object which is the criteria specified in the data portal call, if any.
Implements Csla.Rules.IAuthorizationContext.
|
get |
Gets a data portal factory instance.
Implements Csla.Rules.IAuthorizationContext.
|
getset |
Gets or sets a value indicating whether the current user has permission to perform the requested action.
Implements Csla.Rules.IAuthorizationContext.
|
get |
Gets the rule object.
Implements Csla.Rules.IAuthorizationContext.
|
get |
Gets a reference to the target business object.
Implements Csla.Rules.IAuthorizationContext.
|
get |
Gets the type of the target business class.
Implements Csla.Rules.IAuthorizationContext.