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.IsInRole Class Reference

IsInRole authorization rule. More...

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

Public Member Functions

 IsInRole (AuthorizationActions action, List< string > roles)
 Creates an instance of the rule. More...
 
 IsInRole (AuthorizationActions action, params string[] roles)
 Creates an instance of the rule. More...
 
 IsInRole (AuthorizationActions action, Csla.Core.IMemberInfo element, List< string > roles)
 Creates an instance of the rule. More...
 
 IsInRole (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

IsInRole authorization rule.

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

Constructor & Destructor Documentation

◆ IsInRole() [1/4]

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

Creates an instance of the rule.

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

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

◆ IsInRole() [2/4]

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

Creates an instance of the rule.

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

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

◆ IsInRole() [3/4]

Csla.Rules.CommonRules.IsInRole.IsInRole ( 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 allowed roles.

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

◆ IsInRole() [4/4]

Csla.Rules.CommonRules.IsInRole.IsInRole ( 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 allowed roles.

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

Member Function Documentation

◆ Execute()

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

Rule implementation.

Parameters
contextRule context.

Implements Csla.Rules.AuthorizationRule.

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