9using System.Collections.Generic;
20 private List<string> _roles;
41 _roles =
new List<string>(roles);
51 : base(action, element)
63 : base(action, element)
65 _roles =
new List<string>(roles);
78 foreach (var item
in _roles)
98 private List<string> _roles;
119 _roles =
new List<string>(roles);
129 : base(action, element)
141 : base(action, element)
143 _roles =
new List<string>(roles);
155 foreach (var item
in _roles)
Base class providing basic authorization rule implementation.
IsInRole authorization rule.
IsInRole(AuthorizationActions action, List< string > roles)
Creates an instance of the rule.
IsInRole(AuthorizationActions action, Csla.Core.IMemberInfo element, params string[] roles)
Creates an instance of the rule.
IsInRole(AuthorizationActions action, params string[] roles)
Creates an instance of the rule.
IsInRole(AuthorizationActions action, Csla.Core.IMemberInfo element, List< string > roles)
Creates an instance of the rule.
override void Execute(IAuthorizationContext context)
Rule implementation.
IsNotInRole authorization rule.
IsNotInRole(AuthorizationActions action, List< string > roles)
Creates an instance of the rule.
override void Execute(IAuthorizationContext context)
Rule implementation.
IsNotInRole(AuthorizationActions action, Csla.Core.IMemberInfo element, List< string > roles)
Creates an instance of the rule.
IsNotInRole(AuthorizationActions action, params string[] roles)
Creates an instance of the rule.
IsNotInRole(AuthorizationActions action, Csla.Core.IMemberInfo element, params string[] roles)
Creates an instance of the rule.
Maintains metadata about a method or property.
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...
AuthorizationActions
Authorization actions.