CSLA.NET
6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
PermissionRootWithCriteria.cs
Go to the documentation of this file.
1
//-----------------------------------------------------------------------
2
// <copyright file="PermissionRootWithCriteria.cs" company="Marimer LLC">
3
// Copyright (c) Marimer LLC. All rights reserved.
4
// Website: https://cslanet.com
5
// </copyright>
6
// <summary>no summary</summary>
7
//-----------------------------------------------------------------------
8
using
System;
9
using
Csla
.
Rules
;
10
11
namespace
Csla.Test.Authorization
12
{
13
[
Serializable
()]
14
public
class
PermissionRootWithCriteria
:
BusinessBase
<PermissionRootWithCriteria>
15
{
16
public
static
void
AddObjectAuthorizationRules
() {
17
Csla
.
Rules
.
BusinessRules
.
AddRule
(
18
typeof(
PermissionRootWithCriteria
),
19
new
AuthRuleExpectsCriteria
(
AuthorizationActions
.CreateObject));
20
Csla
.
Rules
.
BusinessRules
.
AddRule
(
21
typeof(
PermissionRootWithCriteria
),
22
new
AuthRuleExpectsCriteria
(
AuthorizationActions
.GetObject));
23
Csla
.
Rules
.
BusinessRules
.
AddRule
(
24
typeof(
PermissionRootWithCriteria
),
25
new
AuthRuleExpectsCriteria
(
AuthorizationActions
.DeleteObject));
26
}
27
28
public
class
Criteria
{ }
29
}
30
}
Csla.BusinessBase
This is the base class from which most business objects will be derived.
Definition:
BusinessBase.cs:38
Csla.Rules.BusinessRules
Tracks the business rules for a business object.
Definition:
BusinessRules.cs:26
Csla.Rules.BusinessRules.AddRule
void AddRule(IBusinessRuleBase rule)
Associates a business rule with the business object.
Definition:
BusinessRules.cs:174
Csla.Test.Authorization.AuthRuleExpectsCriteria
Definition:
AuthRuleExpectsCriteria.cs:15
Csla.Test.Authorization.PermissionRootWithCriteria.Criteria
Definition:
PermissionRootWithCriteria.cs:28
Csla.Test.Authorization.PermissionRootWithCriteria
Definition:
PermissionRootWithCriteria.cs:15
Csla.Test.Authorization.PermissionRootWithCriteria.AddObjectAuthorizationRules
static void AddObjectAuthorizationRules()
Definition:
PermissionRootWithCriteria.cs:16
Csla.Rules
Definition:
AddObjectAuthorizationRulesContext.cs:11
Csla.Rules.AuthorizationActions
AuthorizationActions
Authorization actions.
Definition:
AuthorizationActions.cs:19
Csla.Test.Authorization
Definition:
AuthRuleExpectsCriteria.cs:13
Csla
Definition:
BusinessRuleCases.cs:5
Csla.TransactionIsolationLevel.Serializable
@ Serializable
Prevents updating or inserting until the transaction is complete.
Generated by
1.9.2