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 | class UserRoleManager: IUserRoleManager {
|
---|
[820] | 10 |
|
---|
| 11 | List<User> users;
|
---|
| 12 | List<UserGroup> userGroups;
|
---|
| 13 |
|
---|
| 14 | public UserRoleManager() {
|
---|
| 15 | users = new List<User>();
|
---|
| 16 | userGroups = new List<UserGroup>();
|
---|
| 17 |
|
---|
[845] | 18 | users.Add(new User { PermissionOwnerId = 1, Name = "Hugo", Password = "hUg0" });
|
---|
| 19 | users.Add(new User { PermissionOwnerId = 2, Name = "Seppl", Password = "seppl" });
|
---|
| 20 | users.Add(new User { PermissionOwnerId = 3, Name = "Greg", Password = "greg" });
|
---|
[820] | 21 |
|
---|
| 22 | userGroups.Add(new UserGroup { UserGroupId = 1 });
|
---|
| 23 | userGroups.Add(new UserGroup { UserGroupId = 2 });
|
---|
| 24 | }
|
---|
| 25 |
|
---|
[800] | 26 | #region IUserRoleManager Members
|
---|
| 27 |
|
---|
| 28 | public List<User> GetAllUsers() {
|
---|
[820] | 29 | return users;
|
---|
[800] | 30 | }
|
---|
| 31 |
|
---|
[842] | 32 | public void AddNewUser(User user) {
|
---|
| 33 |
|
---|
| 34 | }
|
---|
| 35 |
|
---|
[800] | 36 | public List<UserGroup> GetAllUserGroups() {
|
---|
[820] | 37 | return userGroups;
|
---|
[800] | 38 | }
|
---|
| 39 |
|
---|
| 40 | #endregion
|
---|
| 41 | }
|
---|
| 42 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.