mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-24 19:08:18 +08:00
Added some comments about the intent of interfaces
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4039268
This commit is contained in:
parent
4cf9d06e51
commit
d9291cc379
@ -1,6 +1,10 @@
|
||||
using Orchard.Security.Permissions;
|
||||
|
||||
namespace Orchard.Security {
|
||||
/// <summary>
|
||||
/// Entry-point for configured authorization scheme. Role-based system
|
||||
/// provided by default.
|
||||
/// </summary>
|
||||
public interface IAuthorizationService : IDependency {
|
||||
bool CheckAccess(IUser user, Permission permission);
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
using Orchard.Models;
|
||||
|
||||
namespace Orchard.Security {
|
||||
/// <summary>
|
||||
/// Interface provided by the "user" model.
|
||||
/// </summary>
|
||||
public interface IUser : IModel {
|
||||
string Name { get; }
|
||||
}
|
||||
|
@ -1,6 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Orchard.Security.Permissions {
|
||||
/// <summary>
|
||||
/// Implemented by packages to enumerate the types of permissions
|
||||
/// the which may be granted
|
||||
/// </summary>
|
||||
public interface IPermissionProvider {
|
||||
string PackageName { get; }
|
||||
IEnumerable<Permission> GetPermissions();
|
||||
|
Loading…
Reference in New Issue
Block a user