CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
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 (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.

Detailed Description

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

Constructor & Destructor Documentation

◆ AuthorizationContext()

Csla.Rules.AuthorizationContext.AuthorizationContext ( ApplicationContext applicationContext,
IAuthorizationRuleBase rule,
object? target,
Type targetType )
inline

Creates a AuthorizationContext instance for unit testing.

Parameters
applicationContext
ruleThe rule.
targetThe target.
targetTypeType of the target.
Exceptions
ArgumentNullExceptionapplicationContext , rule or targetType is null.

Property Documentation

◆ ApplicationContext

ApplicationContext Csla.Rules.AuthorizationContext.ApplicationContext
get

Gets a reference to the current ApplicationContext.

Implements Csla.Rules.IAuthorizationContext.

◆ Criteria

object?? [] Csla.Rules.AuthorizationContext.Criteria
get

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

Implements Csla.Rules.IAuthorizationContext.

◆ DataPortalFactory

IDataPortalFactory Csla.Rules.AuthorizationContext.DataPortalFactory
get

Gets a data portal factory instance.

Implements Csla.Rules.IAuthorizationContext.

◆ HasPermission

bool Csla.Rules.AuthorizationContext.HasPermission
getset

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

Implements Csla.Rules.IAuthorizationContext.

◆ Rule

IAuthorizationRuleBase Csla.Rules.AuthorizationContext.Rule
get

Gets the rule object.

Implements Csla.Rules.IAuthorizationContext.

◆ Target

object? Csla.Rules.AuthorizationContext.Target
get

Gets a reference to the target business object.

Implements Csla.Rules.IAuthorizationContext.

◆ TargetType

Type Csla.Rules.AuthorizationContext.TargetType
get

Gets the type of the target business class.

Implements Csla.Rules.IAuthorizationContext.


The documentation for this class was generated from the following file: