Changeset 12926 for trunk/sources/HeuristicLab.Services.Hive/3.3
- Timestamp:
- 09/01/15 14:10:37 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive/3.3/Converter.cs
r12878 r12926 44 44 Command = source.Command.ToDto(), 45 45 JobId = source.JobId, 46 IsPrivileged = source.IsPrivileged,47 46 PluginsNeededIds = source.RequiredPlugins.Select(x => x.PluginId).ToList(), 48 47 StateLog = source.StateLogs.Select(x => x.ToDto()).OrderBy(x => x.DateTime).ToList(), … … 72 71 target.Command = source.Command.ToEntity(); 73 72 target.JobId = source.JobId; 74 target.IsPrivileged = source.IsPrivileged;75 73 var ids = target.RequiredPlugins.Select(x => x.PluginId); 76 74 target.RequiredPlugins.AddRange(source.PluginsNeededIds -
trunk/sources/HeuristicLab.Services.Hive/3.3/DataTransfer/Task.cs
r12012 r12926 44 44 [DataMember] 45 45 public Guid JobId { get; set; } 46 [DataMember]47 public bool IsPrivileged { get; set; }48 46 49 47 public Task() { -
trunk/sources/HeuristicLab.Services.Hive/3.3/HiveRoles.cs
r12012 r12926 25 25 public const string Slave = "Hive Slave"; 26 26 public const string Client = "Hive User"; 27 public const string IsAllowedPrivileged = "Hive IsAllowedPrivileged";28 27 } 29 28 } -
trunk/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r12878 r12926 469 469 } 470 470 471 // BackwardsCompatibility3.3 472 #region Backwards compatible code, remove with 3.4 471 473 public bool IsAllowedPrivileged() { 472 RoleVerifier.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Client);473 return RoleVerifier.IsInRole(HiveRoles.IsAllowedPrivileged);474 }474 return true; 475 } 476 #endregion 475 477 #endregion 476 478 -
trunk/sources/HeuristicLab.Services.Hive/3.3/ServiceContracts/IHiveService.cs
r12878 r12926 97 97 IEnumerable<JobPermission> GetJobPermissions(Guid jobId); 98 98 99 // BackwardsCompatibility3.3 100 #region Backwards compatible code, remove with 3.4 99 101 [OperationContract] 100 102 bool IsAllowedPrivileged(); // current user may execute privileged task 103 #endregion 101 104 #endregion 102 105
Note: See TracChangeset
for help on using the changeset viewer.