Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 902 was 902, checked in by msteinbi, 15 years ago

Implementation of UserRoleManager (#417)

File size: 2.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Hive.Contracts.Interfaces;
6using HeuristicLab.Hive.Contracts.BusinessObjects;
7using HeuristicLab.Hive.Contracts;
8
9namespace 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}
Note: See TracBrowser for help on using the repository browser.