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.
IAuthorizationContext.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IAuthorizationContext.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Interface defining an authorization context</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Rules
11{
16 public interface IAuthorizationContext
17 {
22
26 object Target { get; }
27
31 Type TargetType { get; }
32
38 bool HasPermission { get; set; }
39
43 object[] Criteria { get; }
44 }
45}
Implemented by objects which provide context information to an authorization rule when it is invoked.
bool HasPermission
Gets or sets a value indicating whether the current user has permission to perform the requested acti...
IAuthorizationRule Rule
Gets the rule object.
object Target
Gets a reference to the target business object.
object[] Criteria
Gets an object which is the criteria specified in the data portal call, if any.
Type TargetType
Gets the type of the target business class.
Interface defining an authorization rule implementation.