Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/18 13:37:32 (6 years ago)
Author:
jzenisek
Message:

#2839: adapted illustration of project and resource ancestry in HiveAdministrator and HiveJobAdministrator

Location:
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive/3.3/HiveService.cs

    r15992 r15995  
    15371537    }
    15381538
     1539    public IDictionary<Guid, string> GetResourceNames() {
     1540      RoleVerifier.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Client);
     1541      var pm = PersistenceManager;
     1542      using (new PerformanceLogger("GetResourceNames")) {
     1543        var resourceDao = pm.ResourceDao;
     1544        var resourceNames = new Dictionary<Guid, string>();
     1545        return pm.UseTransaction(() => {
     1546          resourceDao
     1547            .GetAll().ToList()
     1548            .ForEach(p => resourceNames.Add(p.ResourceId, p.Name));
     1549          return resourceNames;
     1550        });
     1551      }
     1552    }
     1553
    15391554    public void UpdateSlave(DT.Slave slaveDto) {
    15401555      RoleVerifier.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Client);
  • branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive/3.3/ServiceContracts/IHiveService.cs

    r15978 r15995  
    231231
    232232    [OperationContract]
     233    IDictionary<Guid, string> GetResourceNames();
     234
     235    [OperationContract]
    233236    void UpdateSlave(Slave slave);
    234237
Note: See TracChangeset for help on using the changeset viewer.