Base class providing basic authorization rule implementation. More...
Public Member Functions | |
AuthorizationRule (AuthorizationActions action) | |
Creates an instance of the rule. More... | |
AuthorizationRule (AuthorizationActions action, Csla.Core.IMemberInfo element) | |
Creates an instance of the rule. More... | |
Protected Member Functions | |
abstract void | Execute (IAuthorizationContext context) |
Authorization rule implementation. More... | |
object | ReadProperty (object obj, Csla.Core.IPropertyInfo propertyInfo) |
Reads a property's field value. More... | |
Properties | |
bool | CacheResult [getprotected set] |
Gets a value indicating whether the results of this rule can be cached at the business object level. More... | |
Csla.Core.IMemberInfo | Element [getset] |
Gets the name of the element (property/method) to which this rule is associated. More... | |
AuthorizationActions | Action [getset] |
Gets the authorization action this rule will enforce. More... | |
Properties inherited from Csla.Rules.IAuthorizationRule | |
Csla.Core.IMemberInfo | Element [get] |
Gets the element (property/method) to which this rule is associated. More... | |
AuthorizationActions | Action [get] |
Gets the authorization action this rule will enforce. More... | |
bool | CacheResult [get] |
Gets a value indicating whether the results of this rule can be cached at the business object level. More... | |
Base class providing basic authorization rule implementation.
Definition at line 20 of file AuthorizationRule.cs.
Csla.Rules.AuthorizationRule.AuthorizationRule | ( | AuthorizationActions | action | ) |
Creates an instance of the rule.
action | Action this rule will enforce. |
Definition at line 31 of file AuthorizationRule.cs.
Csla.Rules.AuthorizationRule.AuthorizationRule | ( | AuthorizationActions | action, |
Csla.Core.IMemberInfo | element | ||
) |
Creates an instance of the rule.
action | Action this rule will enforce. |
element | Method or property. |
Definition at line 40 of file AuthorizationRule.cs.
|
protectedpure virtual |
Authorization rule implementation.
context | Rule context object. |
Implements Csla.Rules.IAuthorizationRule.
Implemented in Csla.Rules.CommonRules.IsInRole, and Csla.Rules.CommonRules.IsNotInRole.
|
protected |
Reads a property's field value.
obj | Object on which to call the method. |
propertyInfo | PropertyInfo object containing property metadata. |
No authorization checks occur when this method is called.
Definition at line 138 of file AuthorizationRule.cs.
|
getset |
Gets the authorization action this rule will enforce.
Definition at line 85 of file AuthorizationRule.cs.
|
getprotected set |
Gets a value indicating whether the results of this rule can be cached at the business object level.
Definition at line 58 of file AuthorizationRule.cs.
|
getsetprotected |
Gets the name of the element (property/method) to which this rule is associated.
Definition at line 72 of file AuthorizationRule.cs.