Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/21/11 16:51:03 (14 years ago)
Author:
cneumuel
Message:

#1233

  • created user interface for experiment sharing
  • created UserManager which provides access to the users
  • inserted a lot of security and authorization checks serverside
  • minor fixes in experiment manager
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/Interfaces
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/Interfaces/IAuthorizationManager.cs

    r6372 r6463  
    2121
    2222using System;
     23using HeuristicLab.Services.Hive.Common.DataTransfer;
    2324namespace HeuristicLab.Services.Hive {
    2425  public interface IAuthorizationManager {
    25     /// <summary>
    26     /// Returns the UserId of the currently authenticated user
    27     /// </summary>
    28     Guid UserId { get; }
    29 
    3026    /// <summary>
    3127    /// Compares the current UserId with the given userId and takes appropriate actions if the mismatch
    3228    /// </summary>
    3329    void Authorize(Guid userId);
     30
     31    void AuthorizeForJob(Guid jobId, Permission requiredPermission);
     32
     33    void AuthorizeForExperiment(Guid experimentId, Permission requiredPermission);
    3434  }
    3535}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/Interfaces/IServiceLocator.cs

    r6452 r6463  
    2929    ILifecycleManager LifecycleManager { get; }
    3030    ITransactionManager TransactionManager { get; }
     31    IUserManager UserManager { get; }
    3132    HeartbeatManager HeartbeatManager { get; }
    3233  }
Note: See TracChangeset for help on using the changeset viewer.