- Timestamp:
- 04/26/18 16:33:53 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/HiveClient.cs
r15913 r15922 239 239 } 240 240 241 public IEnumerable<Project> GetAvailableParentProjects(Guid id) { 242 return projects.Where(x => projectAncestors[id].Contains(x.Id)); 243 } 244 245 public IEnumerable<Project> GetAvailableChildProjects(Guid id) { 246 return projects.Where(x => projectDescendants[id].Contains(x.Id)); 247 } 248 249 public IEnumerable<Resource> GetAvailableParentResources(Guid id) { 250 return resources.Where(x => resourceAncestors[id].Contains(x.Id)); 251 } 252 253 public IEnumerable<Resource> GetAvailableChildResources(Guid id) { 254 return resources.Where(x => resourceDescendants[id].Contains(x.Id)); 255 } 256 241 public IEnumerable<Project> GetAvailableProjectAncestors(Guid id) { 242 if (projectAncestors.ContainsKey(id)) return projects.Where(x => projectAncestors[id].Contains(x.Id)); 243 else return Enumerable.Empty<Project>(); 244 } 245 246 public IEnumerable<Project> GetAvailableProjectDescendants(Guid id) { 247 if (projectDescendants.ContainsKey(id)) return projects.Where(x => projectDescendants[id].Contains(x.Id)); 248 else return Enumerable.Empty<Project>(); 249 } 250 251 public IEnumerable<Resource> GetAvailableResourceAncestors(Guid id) { 252 if (resourceAncestors.ContainsKey(id)) return resources.Where(x => resourceAncestors[id].Contains(x.Id)); 253 else return Enumerable.Empty<Resource>(); 254 } 255 256 public IEnumerable<Resource> GetAvailableResourceDescendants(Guid id) { 257 if (resourceDescendants.ContainsKey(id)) return resources.Where(x => resourceDescendants[id].Contains(x.Id)); 258 else return Enumerable.Empty<Resource>(); 259 } 257 260 #endregion 258 261
Note: See TracChangeset
for help on using the changeset viewer.