Context information provided to an authorization rule when it is invoked. More...
Public Member Functions | |
AuthorizationContext (ApplicationContext applicationContext, IAuthorizationRule rule, object target, Type targetType) | |
Creates a AuthorizationContext instance for unit testing. More... | |
Properties | |
IAuthorizationRule | Rule [getset] |
Gets the rule object. More... | |
object | Target [getset] |
Gets a reference to the target business object. More... | |
Type | TargetType [getset] |
Gets the type of the target business class. More... | |
bool | HasPermission [getset] |
Gets or sets a value indicating whether the current user has permission to perform the requested action. More... | |
object[] | Criteria [getset] |
Gets an object which is the criteria specified in the data portal call, if any. More... | |
ApplicationContext | ApplicationContext [get] |
Gets a reference to the current ApplicationContext. More... | |
IDataPortalFactory | DataPortalFactory [get] |
Gets a data portal factory instance More... | |
Properties inherited from Csla.Rules.IAuthorizationContext | |
IAuthorizationRule | Rule [get] |
Gets the rule object. More... | |
object | Target [get] |
Gets a reference to the target business object. More... | |
Type | TargetType [get] |
Gets the type of the target business class. More... | |
bool | HasPermission [getset] |
Gets or sets a value indicating whether the current user has permission to perform the requested action. More... | |
object[] | Criteria [get] |
Gets an object which is the criteria specified in the data portal call, if any. More... | |
ApplicationContext | ApplicationContext [get] |
Gets a reference to the current ApplicationContext. More... | |
IDataPortalFactory | DataPortalFactory [get] |
Gets a data portal factory instance More... | |
Context information provided to an authorization rule when it is invoked.
Definition at line 20 of file AuthorizationContext.cs.
Csla.Rules.AuthorizationContext.AuthorizationContext | ( | ApplicationContext | applicationContext, |
IAuthorizationRule | rule, | ||
object | target, | ||
Type | targetType | ||
) |
Creates a AuthorizationContext instance for unit testing.
applicationContext | |
rule | The rule. |
target | The target. |
targetType | Type of the target. |
Definition at line 54 of file AuthorizationContext.cs.
|
get |
Gets a reference to the current ApplicationContext.
Definition at line 65 of file AuthorizationContext.cs.
|
getset |
Gets an object which is the criteria specified in the data portal call, if any.
Definition at line 45 of file AuthorizationContext.cs.
|
get |
Gets a data portal factory instance
Definition at line 70 of file AuthorizationContext.cs.
|
getset |
Gets or sets a value indicating whether the current user has permission to perform the requested action.
Definition at line 40 of file AuthorizationContext.cs.
|
getset |
Gets the rule object.
Definition at line 26 of file AuthorizationContext.cs.
|
getset |
Gets a reference to the target business object.
Definition at line 30 of file AuthorizationContext.cs.
|
getset |
Gets the type of the target business class.
Definition at line 34 of file AuthorizationContext.cs.