Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/27/10 08:35:43 (14 years ago)
Author:
cneumuel
Message:

added authorizationManager which checks for permission to specific jobs (#1168)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/ClientFacade.cs

    r4302 r4333  
    6262    public Response RequestSnapshot(Guid jobId) {
    6363      using (contextFactory.GetContext()) {
     64        ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId);
    6465        return jobManager.RequestSnapshot(jobId);
    6566      }
     
    7071    public ResponseObject<SerializedJob> GetLastSerializedResult(Guid jobId, bool requested, bool snapshot) {
    7172      using (contextFactory.GetContext(false)) {
     73        ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId);
    7274        return jobManager.GetLastSerializedResult(jobId, requested, snapshot);
    7375      }
     
    7880    public ResponseObject<JobDto> GetJobById(Guid jobId) {
    7981      using (contextFactory.GetContext(false)) {
     82        ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId);
    8083        return jobManager.GetJobById(jobId);
    8184      }
     
    8689    public Response AbortJob(Guid jobId) {
    8790      using (contextFactory.GetContext()) {
     91        ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId);
    8892        return jobManager.AbortJob(jobId);
    8993      }
     
    9498    public ResponseObject<JobResultList> GetJobResults(IEnumerable<Guid> jobIds) {
    9599      using (contextFactory.GetContext(false)) {
     100        ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobIds.ToArray());
    96101        return jobManager.GetJobResults(jobIds);
    97102      }
Note: See TracChangeset for help on using the changeset viewer.