Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Server.Core/3.2/InternalInterfaces/IHivePermissionManager.cs @ 3155

Last change on this file since 3155 was 2065, checked in by mbecirov, 16 years ago

#586: Added authorization components.

File size: 715 bytes
Line 
1using System;
2namespace HeuristicLab.Hive.Server.Core.InternalInterfaces {
3  public interface IHivePermissionManager {
4    /// <summary>
5    /// Checks user permission against predefined policy in database.
6    /// </summary>
7    /// <param name="permission">the name of policy defined in xml-file</param>
8    /// <param name="sessionID">the users current session ID</param>
9    /// <param name="entityID"></param>
10    /// <exception cref="PermissionException">thrown when access denied</exception>
11    void Authorize(string policyName, Guid sessionID, Guid entityID);
12    bool CheckPermission(Guid sessionID, Guid actionID, Guid entityId);
13    Guid Login(string username, string password);
14  }
15}
Note: See TracBrowser for help on using the repository browser.