Changeset 4333 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/ClientFacade.cs
- Timestamp:
- 08/27/10 08:35:43 (14 years ago)
- 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 62 62 public Response RequestSnapshot(Guid jobId) { 63 63 using (contextFactory.GetContext()) { 64 ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId); 64 65 return jobManager.RequestSnapshot(jobId); 65 66 } … … 70 71 public ResponseObject<SerializedJob> GetLastSerializedResult(Guid jobId, bool requested, bool snapshot) { 71 72 using (contextFactory.GetContext(false)) { 73 ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId); 72 74 return jobManager.GetLastSerializedResult(jobId, requested, snapshot); 73 75 } … … 78 80 public ResponseObject<JobDto> GetJobById(Guid jobId) { 79 81 using (contextFactory.GetContext(false)) { 82 ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId); 80 83 return jobManager.GetJobById(jobId); 81 84 } … … 86 89 public Response AbortJob(Guid jobId) { 87 90 using (contextFactory.GetContext()) { 91 ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobId); 88 92 return jobManager.AbortJob(jobId); 89 93 } … … 94 98 public ResponseObject<JobResultList> GetJobResults(IEnumerable<Guid> jobIds) { 95 99 using (contextFactory.GetContext(false)) { 100 ServiceLocator.GetAuthorizationManager().AuthorizeForJobs(jobIds.ToArray()); 96 101 return jobManager.GetJobResults(jobIds); 97 102 }
Note: See TracChangeset
for help on using the changeset viewer.