Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/16 16:48:35 (9 years ago)
Author:
jlodewyc
Message:

#2582 Bugfixing, email setup password and code commenting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/User/UserViewModel.cs

    r13754 r13805  
    77namespace HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User
    88{
     9    /// <summary>
     10    /// ViewModel containing User/Group/Role data
     11    /// </summary>
    912    public class UserViewModel
    1013    {
     
    2427        public List<Access.UserGroupBase> SelectedRoleEnrolled { get; set; }
    2528
     29        /// <summary>
     30        /// Initialize viewmodel and set up connection
     31        /// </summary>
     32        /// <param name="ac">AccessAdminClient for connection</param>
    2633        public UserViewModel(AccessAdministrationClient ac)
    2734        {
     
    4047           
    4148        }
     49        /// <summary>
     50        /// Refreshes Users, Groups and Roles
     51        /// </summary>
     52        /// <returns></returns>
    4253        public UserViewModel refreshAll()
    4354        {
     
    4758            return this;
    4859        }
     60        /// <summary>
     61        /// Refreshes only the Users
     62        /// </summary>
     63        /// <returns></returns>
    4964        public UserViewModel refreshUsers()
    5065        {
     
    5368            return this;
    5469        }
     70        /// <summary>
     71        /// Refreshes only the Roles
     72        /// </summary>
     73        /// <returns></returns>
    5574        public UserViewModel refreshRoles()
    5675        {
     
    5978            return this;
    6079        }
     80        /// <summary>
     81        /// Refreshes only the User Groups
     82        /// </summary>
     83        /// <returns></returns>
    6184        public UserViewModel refreshGroups()
    6285        {
     
    6588            return this;
    6689        }
     90        /// <summary>
     91        /// Returns a user by its Id
     92        /// </summary>
     93        /// <param name="id">User Id</param>
     94        /// <returns></returns>
    6795        public Access.User getUserById(Guid id)
    6896        {
    6997            return users.Find(x => x.Id == id);
    7098        }
     99        /// <summary>
     100        /// Returns a group by its Id
     101        /// </summary>
     102        /// <param name="id">Group id</param>
     103        /// <returns></returns>
    71104        public Access.UserGroup getGroupById(Guid id)
    72105        {
    73106            return ugroups.Find(x => x.Id == id);
    74107        }
     108        /// <summary>
     109        /// Returns a role by its name
     110        /// </summary>
     111        /// <param name="name">Role name</param>
     112        /// <returns></returns>
    75113        public Access.Role getRoleByName(string name)
    76114        {
Note: See TracChangeset for help on using the changeset viewer.