mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-20 02:37:55 +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:
@@ -1,6 +1,10 @@
|
|||||||
using Orchard.Security.Permissions;
|
using Orchard.Security.Permissions;
|
||||||
|
|
||||||
namespace Orchard.Security {
|
namespace Orchard.Security {
|
||||||
|
/// <summary>
|
||||||
|
/// Entry-point for configured authorization scheme. Role-based system
|
||||||
|
/// provided by default.
|
||||||
|
/// </summary>
|
||||||
public interface IAuthorizationService : IDependency {
|
public interface IAuthorizationService : IDependency {
|
||||||
bool CheckAccess(IUser user, Permission permission);
|
bool CheckAccess(IUser user, Permission permission);
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
using Orchard.Models;
|
using Orchard.Models;
|
||||||
|
|
||||||
namespace Orchard.Security {
|
namespace Orchard.Security {
|
||||||
|
/// <summary>
|
||||||
|
/// Interface provided by the "user" model.
|
||||||
|
/// </summary>
|
||||||
public interface IUser : IModel {
|
public interface IUser : IModel {
|
||||||
string Name { get; }
|
string Name { get; }
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Orchard.Security.Permissions {
|
namespace Orchard.Security.Permissions {
|
||||||
|
/// <summary>
|
||||||
|
/// Implemented by packages to enumerate the types of permissions
|
||||||
|
/// the which may be granted
|
||||||
|
/// </summary>
|
||||||
public interface IPermissionProvider {
|
public interface IPermissionProvider {
|
||||||
string PackageName { get; }
|
string PackageName { get; }
|
||||||
IEnumerable<Permission> GetPermissions();
|
IEnumerable<Permission> GetPermissions();
|
||||||
|
Reference in New Issue
Block a user