Ignore:
Timestamp:
01/14/09 16:16:21 (12 years ago)
Author:
msteinbi
Message:

Add licencse information where missing, added method description comments (#466)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/UserRoleManager.cs

    r995 r1121  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223using System.Collections.Generic;
    324using System.Linq;
     
    2445    #region IUserRoleManager Members
    2546
     47    /// <summary>
     48    /// returns all users from the database
     49    /// </summary>
     50    /// <returns></returns>
    2651    public ResponseList<User> GetAllUsers() {
    2752      ResponseList<User> response = new ResponseList<User>();
     
    3560    }
    3661
     62    /// <summary>
     63    /// Adds a new user to the database
     64    /// </summary>
     65    /// <param name="user"></param>
     66    /// <returns></returns>
    3767    public ResponseObject<User> AddNewUser(User user) {
    3868      ResponseObject<User> response = new ResponseObject<User>();
     
    5787    }
    5888
     89    /// <summary>
     90    /// returns all usergroups from the database
     91    /// </summary>
     92    /// <returns></returns>
    5993    public ResponseList<UserGroup> GetAllUserGroups() {
    6094      ResponseList<UserGroup> response = new ResponseList<UserGroup>();
     
    67101    }
    68102
     103    /// <summary>
     104    /// Removes a user from the database
     105    /// </summary>
     106    /// <param name="userId"></param>
     107    /// <returns></returns>
    69108    public Response RemoveUser(long userId) {
    70109      Response response = new Response();
     
    82121    }
    83122
     123    /// <summary>
     124    /// Adds a new usergroup to the database
     125    /// </summary>
     126    /// <param name="userGroup"></param>
     127    /// <returns></returns>
    84128    public ResponseObject<UserGroup> AddNewUserGroup(UserGroup userGroup) {
    85129      ResponseObject<UserGroup> response = new ResponseObject<UserGroup>();
     
    99143    }
    100144
     145    /// <summary>
     146    /// Removes a user group from the database
     147    /// </summary>
     148    /// <param name="groupId"></param>
     149    /// <returns></returns>
    101150    public Response RemoveUserGroup(long groupId) {
    102151      Response response = new Response();
     
    115164    }
    116165
     166    /// <summary>
     167    /// Adds a user into a user group
     168    /// </summary>
     169    /// <param name="groupId"></param>
     170    /// <param name="userId"></param>
     171    /// <returns></returns>
    117172    public Response AddUserToGroup(long groupId, long userId) {
    118173      Response response = new Response();
     
    140195    }
    141196
     197    /// <summary>
     198    /// Adds a user group to a user group
     199    /// </summary>
     200    /// <param name="groupId"></param>
     201    /// <param name="groupToAddId"></param>
     202    /// <returns></returns>
    142203    public Response AddUserGroupToGroup(long groupId, long groupToAddId) {
    143204      Response response = new Response();
     
    158219    }
    159220
     221    /// <summary>
     222    /// Removes a permission owner (user, user group) from a user group
     223    /// </summary>
     224    /// <param name="groupId"></param>
     225    /// <param name="permissionOwnerId"></param>
     226    /// <returns></returns>
    160227    public Response RemovePermissionOwnerFromGroup(long groupId, long permissionOwnerId) {
    161228      Response response = new Response();
Note: See TracChangeset for help on using the changeset viewer.