- Timestamp:
- 04/27/16 16:48:35 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/User/UserViewModel.cs
r13754 r13805 7 7 namespace HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User 8 8 { 9 /// <summary> 10 /// ViewModel containing User/Group/Role data 11 /// </summary> 9 12 public class UserViewModel 10 13 { … … 24 27 public List<Access.UserGroupBase> SelectedRoleEnrolled { get; set; } 25 28 29 /// <summary> 30 /// Initialize viewmodel and set up connection 31 /// </summary> 32 /// <param name="ac">AccessAdminClient for connection</param> 26 33 public UserViewModel(AccessAdministrationClient ac) 27 34 { … … 40 47 41 48 } 49 /// <summary> 50 /// Refreshes Users, Groups and Roles 51 /// </summary> 52 /// <returns></returns> 42 53 public UserViewModel refreshAll() 43 54 { … … 47 58 return this; 48 59 } 60 /// <summary> 61 /// Refreshes only the Users 62 /// </summary> 63 /// <returns></returns> 49 64 public UserViewModel refreshUsers() 50 65 { … … 53 68 return this; 54 69 } 70 /// <summary> 71 /// Refreshes only the Roles 72 /// </summary> 73 /// <returns></returns> 55 74 public UserViewModel refreshRoles() 56 75 { … … 59 78 return this; 60 79 } 80 /// <summary> 81 /// Refreshes only the User Groups 82 /// </summary> 83 /// <returns></returns> 61 84 public UserViewModel refreshGroups() 62 85 { … … 65 88 return this; 66 89 } 90 /// <summary> 91 /// Returns a user by its Id 92 /// </summary> 93 /// <param name="id">User Id</param> 94 /// <returns></returns> 67 95 public Access.User getUserById(Guid id) 68 96 { 69 97 return users.Find(x => x.Id == id); 70 98 } 99 /// <summary> 100 /// Returns a group by its Id 101 /// </summary> 102 /// <param name="id">Group id</param> 103 /// <returns></returns> 71 104 public Access.UserGroup getGroupById(Guid id) 72 105 { 73 106 return ugroups.Find(x => x.Id == id); 74 107 } 108 /// <summary> 109 /// Returns a role by its name 110 /// </summary> 111 /// <param name="name">Role name</param> 112 /// <returns></returns> 75 113 public Access.Role getRoleByName(string name) 76 114 {
Note: See TracChangeset
for help on using the changeset viewer.