Commit for development environment setup

This commit is contained in:
2023-06-19 16:12:33 -04:00
parent be72063a3c
commit bbce2ad0a6
2209 changed files with 1171775 additions and 625 deletions

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace Csla.Security
{
/// <summary>
/// Maintains authorization roles for a business object
/// or business object type.
/// </summary>
public class AuthorizationRulesManager
{
private Dictionary<string, RolesForProperty> _rules;
internal Dictionary<string, RolesForProperty> RulesList
{
get
{
if (_rules == null)
_rules = new Dictionary<string, RolesForProperty>();
return _rules;
}
}
#region Get Roles
internal RolesForProperty GetRolesForProperty(string propertyName)
{
RolesForProperty currentRoles = null;
if (!RulesList.ContainsKey(propertyName))
{
currentRoles = new RolesForProperty();
RulesList.Add(propertyName, currentRoles);
}
else
currentRoles = RulesList[propertyName];
return currentRoles;
}
#endregion
}
}