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.
Csla.Rules Namespace Reference

Namespaces

namespace  CommonRules
 

Classes

class  AddObjectAuthorizationRulesContext
 Context for the AddObjectAuthorizationRulesContext method. More...
 
class  AuthorizationContext
 Context information provided to an authorization rule when it is invoked. More...
 
class  AuthorizationRule
 Base class providing basic authorization rule implementation. More...
 
class  AuthorizationRuleManager
 Manages the list of authorization rules for a business type. More...
 
class  BrokenRule
 Stores details about a specific broken business rule. More...
 
class  BrokenRulesCollection
 A collection of currently broken rules. More...
 
class  BrokenRulesNode
 Holds broken rules for an Node in the BrokenRulesTree. More...
 
class  BrokenRulesTree
 Holds a list of broken rules tree list More...
 
class  BusinessRule
 Base class used to create business and validation rules. More...
 
class  BusinessRuleAsync
 Base class used to create async business and validation rules. More...
 
class  BusinessRuleBase
 Base class used to create business and validation rules. More...
 
class  BusinessRuleManager
 Manages the list of rules for a business type. More...
 
class  BusinessRules
 Tracks the business rules for a business object. More...
 
class  BusinessRulesExtensions
 Rule extensions for creating rules with a fluent coding style.
 
interface  IAddObjectAuthorizationRulesContext
 Context for the AddObjectAuthorizationRulesContext method. More...
 
interface  IAuthorizationContext
 Implemented by objects which provide context information to an authorization rule when it is invoked. More...
 
interface  IAuthorizationRule
 Interface defining an authorization rule implementation. More...
 
interface  IBusinessRule
 Interface defining a business/validation rule implementation. More...
 
interface  IBusinessRuleAsync
 Interface defining a business/validation rule implementation. More...
 
interface  IBusinessRuleBase
 Interface defining a business/validation rule implementation. More...
 
interface  IBusinessRules
 Public interfacefor IBusinessRules More...
 
interface  IHostRules
 Defines the interaction between the rules engine and a business object that hosts the rules. More...
 
interface  IRuleContext
 Context information provided to a business rule when it is invoked. More...
 
class  ObjectRule
 Base class for object level rules. More...
 
class  ObjectRuleAsync
 Base class for object level rules. More...
 
class  PropertyRule
 Base class for a property rule More...
 
class  PropertyRuleAsync
 Base class for a property rule More...
 
class  RuleContext
 Context information provided to a business rule when it is invoked. More...
 
class  RuleResult
 Contains information about the result of a rule. More...
 
class  RuleUri
 Parses a rule:// URI to provide easy access to the parts of the URI. More...
 
class  UriExtensions
 Extension methods for System.Uri.
 
class  ValidationException
 Exception class indicating that there was a validation problem with a business object. More...
 

Enumerations

enum  AuthorizationActions {
  WriteProperty , ReadProperty , ExecuteMethod , CreateObject ,
  GetObject , EditObject , DeleteObject
}
 Authorization actions. More...
 
enum  RunModes { Default =0 , DenyCheckRules = 1 , DenyAsAffectedProperty = 2 , DenyOnServerSidePortal = 4 }
 Flags enum to define when rule is allowed or denied to run More...
 
enum  RuleContextModes {
  Any = 247 , CheckRules = 1 , CheckObjectRules = 2 , PropertyChanged = 4 ,
  AsAffectedPoperty = 8
}
 RuleContext mode flags More...
 
enum  RuleSeverity { Error , Warning , Information , Success }
 Values for validation rule severities. More...
 

Enumeration Type Documentation

◆ AuthorizationActions

Authorization actions.

Enumerator
WriteProperty 

Request to write or set a property value.

ReadProperty 

Request to read a property value.

ExecuteMethod 

Request to execute a method.

CreateObject 

Request to create an object.

GetObject 

Request to get or fetch an object.

EditObject 

Request to save or edit an object.

DeleteObject 

Request to delete an object.

Definition at line 18 of file AuthorizationActions.cs.

◆ RuleContextModes

RuleContext mode flags

Enumerator
Any 

Default value, rule can run in any context

CheckRules 

Called from CheckRules

CheckObjectRules 

Called from CheckObjectRules

PropertyChanged 

Called from PropertyHasChanged event on BO but not including cascade calls by AffectedProperties

AsAffectedPoperty 

Include cascaded calls by AffectedProperties

Definition at line 22 of file RuleContext.cs.

◆ RuleSeverity

Values for validation rule severities.

Enumerator
Error 

Represents a serious business rule violation that should cause an object to be considered invalid.

Warning 

Represents a business rule violation that should be displayed to the user, but which should not make an object be invalid.

Information 

Represents a business rule result that should be displayed to the user, but which is less severe than a warning.

Success 

Represents a business rule result that should not be displayed to the user, and where the rule was successful.

Definition at line 15 of file RuleSeverity.cs.

◆ RunModes

Flags enum to define when rule is allowed or denied to run

Enumerator
Default 

Default value, rule can run in any context

DenyCheckRules 

Deny rule from running in CheckRules

DenyAsAffectedProperty 

Deny rule from running as AffectedProperties from another rule.

DenyOnServerSidePortal 

Deny rule from running on serverside portal

Definition at line 18 of file IBusinessRule.cs.