- Timestamp:
- 04/12/16 15:28:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/User/UserViewModel.cs
r13742 r13754 18 18 public Access.User SelectedUser { get; set; } 19 19 public List<Access.UserGroup> SelectedUserSubscriptions { get; set; } 20 public List<Access.Role> SelectedUserRoles { get; set; } 20 21 public Access.UserGroup SelectedGroup { get; set; } 21 22 public List<Access.UserGroupBase> SelectedGroupMembers { get; set; } 23 public Access.Role SelectedRole { get; set; } 24 public List<Access.UserGroupBase> SelectedRoleEnrolled { get; set; } 22 25 23 26 public UserViewModel(AccessAdministrationClient ac) … … 25 28 users = new List<Access.User>(); 26 29 accessClient = ac; 30 27 31 SelectedUser = new Access.User(); 28 32 SelectedGroup = new Access.UserGroup(); 33 SelectedRole = new Access.Role(); 34 SelectedRole.Name = ""; 35 29 36 SelectedUserSubscriptions = new List<Access.UserGroup>(); 37 SelectedUserRoles = new List<Access.Role>(); 30 38 SelectedGroupMembers = new List<Access.UserGroupBase>(); 31 39 32 40 41 } 42 public UserViewModel refreshAll() 43 { 44 refreshUsers(); 45 refreshGroups(); 46 refreshRoles(); 47 return this; 33 48 } 34 49 public UserViewModel refreshUsers() … … 58 73 return ugroups.Find(x => x.Id == id); 59 74 } 75 public Access.Role getRoleByName(string name) 76 { 77 return roles.Find(x => x.Name == name); 78 } 60 79 } 61 80 }
Note: See TracChangeset
for help on using the changeset viewer.