Rev | Line | |
---|
[800] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using HeuristicLab.Hive.Contracts.Interfaces;
|
---|
| 6 | using HeuristicLab.Hive.Contracts.BusinessObjects;
|
---|
| 7 |
|
---|
| 8 | namespace 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.