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.Security.Principal;
namespace Csla.Security
{
/// <summary>
/// Base class from which custom principal
/// objects should inherit to operate
/// properly with the data portal.
/// </summary>
[Serializable()]
public class BusinessPrincipalBase : IPrincipal
{
private IIdentity _identity;
/// <summary>
/// Returns the user's identity object.
/// </summary>
public virtual IIdentity Identity
{
get { return _identity; }
}
/// <summary>
/// Returns a value indicating whether the
/// user is in a given role.
/// </summary>
/// <param name="role">Name of the role.</param>
public virtual bool IsInRole(string role)
{
return false;
}
/// <summary>
/// Creates an instance of the object.
/// </summary>
/// <param name="identity">Identity object for the user.</param>
protected BusinessPrincipalBase(IIdentity identity)
{
_identity = identity;
}
}
}