Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Server.Core/ServerConsoleFacade.cs @ 885

Last change on this file since 885 was 842, checked in by msteinbi, 16 years ago

Login implemented with db (#399)

File size: 1.5 KB
RevLine 
[800]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Hive.Contracts.Interfaces;
6using HeuristicLab.Hive.Contracts.BusinessObjects;
7
8namespace HeuristicLab.Hive.Server.Core {
9  public class ServerConsoleFacade: IServerConsoleFacade {
10    private IClientManager clientManager = new ClientManager();
[821]11    private IJobManager jobManager = new JobManager();
12    private IUserRoleManager userRoleManager = new UserRoleManager();
[800]13   
14    #region IClientManager Members
15
16    public List<ClientInfo> GetAllClients() {
17      return clientManager.GetAllClients();
18    }
19
20    public List<ClientGroup> GetAllClientGroups() {
21      return clientManager.GetAllClientGroups();
22    }
23
24    public List<UpTimeStatistics> GetAllUpTimeStatistics() {
25      return clientManager.GetAllUpTimeStatistics();
26    }
27
28    #endregion
29
30    #region IJobManager Members
31
32    public List<HeuristicLab.Hive.Contracts.BusinessObjects.Job> GetAllJobs() {
[821]33      return jobManager.GetAllJobs();
[800]34    }
35
36    #endregion
37
38    #region IUserRoleManager Members
39
40    public List<HeuristicLab.Hive.Contracts.BusinessObjects.User> GetAllUsers() {
[821]41      return userRoleManager.GetAllUsers();
[800]42    }
43
[842]44    public void AddNewUser(User user) {
45      userRoleManager.AddNewUser(user);
46    }
47
[800]48    public List<HeuristicLab.Hive.Contracts.BusinessObjects.UserGroup> GetAllUserGroups() {
[821]49      return userRoleManager.GetAllUserGroups();
[800]50    }
51
52    #endregion
53  }
54}
Note: See TracBrowser for help on using the repository browser.