1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Collections.Generic;
|
---|
24 | using System.Linq;
|
---|
25 | using System.Text;
|
---|
26 | using HeuristicLab.Hive.Contracts.Interfaces;
|
---|
27 | using HeuristicLab.Hive.Contracts.BusinessObjects;
|
---|
28 | using HeuristicLab.Hive.Contracts;
|
---|
29 |
|
---|
30 | namespace HeuristicLab.Hive.Server.Core {
|
---|
31 | public class ServerConsoleFacade: IServerConsoleFacade {
|
---|
32 | private IClientManager clientManager = new ClientManager();
|
---|
33 | private IJobManager jobManager = new JobManager();
|
---|
34 | private IUserRoleManager userRoleManager = new UserRoleManager();
|
---|
35 |
|
---|
36 | #region IClientManager Members
|
---|
37 |
|
---|
38 | public ResponseList<ClientInfo> GetAllClients() {
|
---|
39 | return clientManager.GetAllClients();
|
---|
40 | }
|
---|
41 |
|
---|
42 | public ResponseList<ClientGroup> GetAllClientGroups() {
|
---|
43 | return clientManager.GetAllClientGroups();
|
---|
44 | }
|
---|
45 |
|
---|
46 | public ResponseList<UpTimeStatistics> GetAllUpTimeStatistics() {
|
---|
47 | return clientManager.GetAllUpTimeStatistics();
|
---|
48 | }
|
---|
49 |
|
---|
50 | #endregion
|
---|
51 |
|
---|
52 | #region IJobManager Members
|
---|
53 |
|
---|
54 | public ResponseList<HeuristicLab.Hive.Contracts.BusinessObjects.Job> GetAllJobs() {
|
---|
55 | return jobManager.GetAllJobs();
|
---|
56 | }
|
---|
57 |
|
---|
58 | #endregion
|
---|
59 |
|
---|
60 | #region IUserRoleManager Members
|
---|
61 |
|
---|
62 | public ResponseList<HeuristicLab.Hive.Contracts.BusinessObjects.User> GetAllUsers() {
|
---|
63 | return userRoleManager.GetAllUsers();
|
---|
64 | }
|
---|
65 |
|
---|
66 | public Response AddNewUser(User user) {
|
---|
67 | return userRoleManager.AddNewUser(user);
|
---|
68 | }
|
---|
69 |
|
---|
70 | public ResponseList<HeuristicLab.Hive.Contracts.BusinessObjects.UserGroup> GetAllUserGroups() {
|
---|
71 | return userRoleManager.GetAllUserGroups();
|
---|
72 | }
|
---|
73 |
|
---|
74 | public Response RemoveUser(long userId) {
|
---|
75 | throw new NotImplementedException();
|
---|
76 | }
|
---|
77 |
|
---|
78 | public Response AddNewUserGroup(UserGroup userGroup) {
|
---|
79 | throw new NotImplementedException();
|
---|
80 | }
|
---|
81 |
|
---|
82 | public Response RemoveUserGroup(long groupId) {
|
---|
83 | throw new NotImplementedException();
|
---|
84 | }
|
---|
85 |
|
---|
86 | public Response AddUserToGroup(long groupId, long userId) {
|
---|
87 | throw new NotImplementedException();
|
---|
88 | }
|
---|
89 |
|
---|
90 | public Response RemoveUserFromGroup(long groupId, long userId) {
|
---|
91 | throw new NotImplementedException();
|
---|
92 | }
|
---|
93 |
|
---|
94 | #endregion
|
---|
95 |
|
---|
96 | }
|
---|
97 | }
|
---|