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.CommonRules.IsNotInRole Class Reference

IsNotInRole authorization rule. More...

Inheritance diagram for Csla.Rules.CommonRules.IsNotInRole:
Csla.Rules.AuthorizationRule Csla.Rules.IAuthorizationRule

Public Member Functions

 IsNotInRole (AuthorizationActions action, List< string > roles)
 Creates an instance of the rule. More...
 
 IsNotInRole (AuthorizationActions action, params string[] roles)
 Creates an instance of the rule. More...
 
 IsNotInRole (AuthorizationActions action, Csla.Core.IMemberInfo element, List< string > roles)
 Creates an instance of the rule. More...
 
 IsNotInRole (AuthorizationActions action, Csla.Core.IMemberInfo element, params string[] roles)
 Creates an instance of the rule. More...
 
- Public Member Functions inherited from Csla.Rules.AuthorizationRule
 AuthorizationRule (AuthorizationActions action)
 Creates an instance of the rule. More...
 
 AuthorizationRule (AuthorizationActions action, Csla.Core.IMemberInfo element)
 Creates an instance of the rule. More...
 

Protected Member Functions

override void Execute (IAuthorizationContext context)
 Rule implementation. More...
 
- Protected Member Functions inherited from Csla.Rules.AuthorizationRule
object ReadProperty (object obj, Csla.Core.IPropertyInfo propertyInfo)
 Reads a property's field value. More...
 

Additional Inherited Members

- Properties inherited from Csla.Rules.AuthorizationRule
bool CacheResult [getprotected set]
 Gets a value indicating whether the results of this rule can be cached at the business object level. More...
 
Csla.Core.IMemberInfo Element [getset]
 Gets the name of the element (property/method) to which this rule is associated. More...
 
AuthorizationActions Action [getset]
 Gets the authorization action this rule will enforce. More...
 
- Properties inherited from Csla.Rules.IAuthorizationRule
Csla.Core.IMemberInfo Element [get]
 Gets the element (property/method) to which this rule is associated. More...
 
AuthorizationActions Action [get]
 Gets the authorization action this rule will enforce. More...
 
bool CacheResult [get]
 Gets a value indicating whether the results of this rule can be cached at the business object level. More...
 

Detailed Description

IsNotInRole authorization rule.

Definition at line 96 of file Csla/Rules/AuthorizationRules.cs.

Constructor & Destructor Documentation

◆ IsNotInRole() [1/4]

Csla.Rules.CommonRules.IsNotInRole.IsNotInRole ( AuthorizationActions  action,
List< string >  roles 
)

Creates an instance of the rule.

Parameters
actionAction this rule will enforce.
rolesList of disallowed roles.

Definition at line 105 of file Csla/Rules/AuthorizationRules.cs.

◆ IsNotInRole() [2/4]

Csla.Rules.CommonRules.IsNotInRole.IsNotInRole ( AuthorizationActions  action,
params string[]  roles 
)

Creates an instance of the rule.

Parameters
actionAction this rule will enforce.
rolesList of disallowed roles.

Definition at line 116 of file Csla/Rules/AuthorizationRules.cs.

◆ IsNotInRole() [3/4]

Csla.Rules.CommonRules.IsNotInRole.IsNotInRole ( AuthorizationActions  action,
Csla.Core.IMemberInfo  element,
List< string >  roles 
)

Creates an instance of the rule.

Parameters
actionAction this rule will enforce.
elementMember to be authorized.
rolesList of disallowed roles.

Definition at line 128 of file Csla/Rules/AuthorizationRules.cs.

◆ IsNotInRole() [4/4]

Csla.Rules.CommonRules.IsNotInRole.IsNotInRole ( AuthorizationActions  action,
Csla.Core.IMemberInfo  element,
params string[]  roles 
)

Creates an instance of the rule.

Parameters
actionAction this rule will enforce.
elementMember to be authorized.
rolesList of disallowed roles.

Definition at line 140 of file Csla/Rules/AuthorizationRules.cs.

Member Function Documentation

◆ Execute()

override void Csla.Rules.CommonRules.IsNotInRole.Execute ( IAuthorizationContext  context)
protectedvirtual

Rule implementation.

Parameters
contextRule context.

Implements Csla.Rules.AuthorizationRule.

Definition at line 150 of file Csla/Rules/AuthorizationRules.cs.