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 | using HeuristicLab.Hive.Contracts;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.Hive.Server.Core {
|
---|
10 | public class ServerConsoleFacade: IServerConsoleFacade {
|
---|
11 | private IClientManager clientManager = new ClientManager();
|
---|
12 | private IJobManager jobManager = new JobManager();
|
---|
13 | private IUserRoleManager userRoleManager = new UserRoleManager();
|
---|
14 |
|
---|
15 | #region IClientManager Members
|
---|
16 |
|
---|
17 | public ResponseList<ClientInfo> GetAllClients() {
|
---|
18 | return clientManager.GetAllClients();
|
---|
19 | }
|
---|
20 |
|
---|
21 | public ResponseList<ClientGroup> GetAllClientGroups() {
|
---|
22 | return clientManager.GetAllClientGroups();
|
---|
23 | }
|
---|
24 |
|
---|
25 | public ResponseList<UpTimeStatistics> GetAllUpTimeStatistics() {
|
---|
26 | return clientManager.GetAllUpTimeStatistics();
|
---|
27 | }
|
---|
28 |
|
---|
29 | #endregion
|
---|
30 |
|
---|
31 | #region IJobManager Members
|
---|
32 |
|
---|
33 | public ResponseList<HeuristicLab.Hive.Contracts.BusinessObjects.Job> GetAllJobs() {
|
---|
34 | return jobManager.GetAllJobs();
|
---|
35 | }
|
---|
36 |
|
---|
37 | #endregion
|
---|
38 |
|
---|
39 | #region IUserRoleManager Members
|
---|
40 |
|
---|
41 | public ResponseList<HeuristicLab.Hive.Contracts.BusinessObjects.User> GetAllUsers() {
|
---|
42 | return userRoleManager.GetAllUsers();
|
---|
43 | }
|
---|
44 |
|
---|
45 | public Response AddNewUser(User user) {
|
---|
46 | return userRoleManager.AddNewUser(user);
|
---|
47 | }
|
---|
48 |
|
---|
49 | public ResponseList<HeuristicLab.Hive.Contracts.BusinessObjects.UserGroup> GetAllUserGroups() {
|
---|
50 | return userRoleManager.GetAllUserGroups();
|
---|
51 | }
|
---|
52 |
|
---|
53 | public Response RemoveUser(long userId) {
|
---|
54 | throw new NotImplementedException();
|
---|
55 | }
|
---|
56 |
|
---|
57 | public Response AddNewUserGroup(UserGroup userGroup) {
|
---|
58 | throw new NotImplementedException();
|
---|
59 | }
|
---|
60 |
|
---|
61 | public Response RemoveUserGroup(long groupId) {
|
---|
62 | throw new NotImplementedException();
|
---|
63 | }
|
---|
64 |
|
---|
65 | public Response AddUserToGroup(long groupId, long userId) {
|
---|
66 | throw new NotImplementedException();
|
---|
67 | }
|
---|
68 |
|
---|
69 | public Response RemoveUserFromGroup(long groupId, long userId) {
|
---|
70 | throw new NotImplementedException();
|
---|
71 | }
|
---|
72 |
|
---|
73 | #endregion
|
---|
74 |
|
---|
75 | }
|
---|
76 | }
|
---|