CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Rules.AuthorizationContext Class Reference

Context information provided to an authorization rule when it is invoked. More...

Inheritance diagram for Csla.Rules.AuthorizationContext:
Csla.Rules.IAuthorizationContext

Public Member Functions

 AuthorizationContext ()
 Initializes a new instance of the AuthorizationContext class. More...
 
 AuthorizationContext (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...
 
- 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...
 

Detailed Description

Context information provided to an authorization rule when it is invoked.

Definition at line 17 of file AuthorizationContext.cs.

Constructor & Destructor Documentation

◆ AuthorizationContext() [1/2]

Csla.Rules.AuthorizationContext.AuthorizationContext ( )

Initializes a new instance of the AuthorizationContext class.

Definition at line 47 of file AuthorizationContext.cs.

◆ AuthorizationContext() [2/2]

Csla.Rules.AuthorizationContext.AuthorizationContext ( IAuthorizationRule  rule,
object  target,
Type  targetType 
)

Creates a AuthorizationContext instance for unit testing.

Parameters
ruleThe rule.
targetThe target.
targetTypeType of the target.

Definition at line 57 of file AuthorizationContext.cs.

Property Documentation

◆ Criteria

object [] Csla.Rules.AuthorizationContext.Criteria
getset

Gets an object which is the criteria specified in the data portal call, if any.

Definition at line 42 of file AuthorizationContext.cs.

◆ HasPermission

bool Csla.Rules.AuthorizationContext.HasPermission
getset

Gets or sets a value indicating whether the current user has permission to perform the requested action.

Definition at line 37 of file AuthorizationContext.cs.

◆ Rule

IAuthorizationRule Csla.Rules.AuthorizationContext.Rule
getset

Gets the rule object.

Definition at line 23 of file AuthorizationContext.cs.

◆ Target

object Csla.Rules.AuthorizationContext.Target
getset

Gets a reference to the target business object.

Definition at line 27 of file AuthorizationContext.cs.

◆ TargetType

Type Csla.Rules.AuthorizationContext.TargetType
getset

Gets the type of the target business class.

Definition at line 31 of file AuthorizationContext.cs.