Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/08 16:35:24 (16 years ago)
Author:
msteinbi
Message:

Implementation of UserRoleManager (#417)

Location:
trunk/sources/HeuristicLab.Hive.Contracts
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/UserGroup.cs

    r795 r902  
    2929
    3030  [DataContract]
    31   public class UserGroup {
     31  public class UserGroup : PermissionOwner {
    3232    [DataMember]
    3333    public long UserGroupId { get; set; }
  • trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj

    r858 r902  
    7070  </ItemGroup>
    7171  <ItemGroup>
     72    <Compile Include="ApplicationConstants.cs" />
    7273    <Compile Include="BusinessObjects\GrantedPermissions.cs" />
    7374    <Compile Include="BusinessObjects\ClientGroup.cs" />
     
    9697    <Compile Include="Response.cs" />
    9798    <Compile Include="ResponseHB.cs" />
     99    <Compile Include="ResponseList.cs" />
    98100    <Compile Include="ResponseResultReceived.cs" />
    99101    <Compile Include="TestJob.cs" />
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientManager.cs

    r839 r902  
    1313  public interface IClientManager {
    1414    [OperationContract]
    15     List<ClientInfo> GetAllClients();
     15    ResponseList<ClientInfo> GetAllClients();
    1616    [OperationContract]
    1717    [ServiceKnownType(typeof (Resource))]
    1818    [ServiceKnownType(typeof(ClientInfo))]
    19     List<ClientGroup> GetAllClientGroups();
     19    ResponseList<ClientGroup> GetAllClientGroups();
    2020    [OperationContract]
    21     List<UpTimeStatistics> GetAllUpTimeStatistics();
     21    ResponseList<UpTimeStatistics> GetAllUpTimeStatistics();
    2222  }
    2323}
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IJobManager.cs

    r796 r902  
    1313  public interface IJobManager {
    1414    [OperationContract]
    15     List<Job> GetAllJobs();
     15    ResponseList<Job> GetAllJobs();
    1616  }
    1717}
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IUserRoleManager.cs

    r842 r902  
    1313  public interface IUserRoleManager {
    1414    [OperationContract]
    15     List<User> GetAllUsers();
     15    ResponseList<User> GetAllUsers();
    1616    [OperationContract]
    17     void AddNewUser(User user);
     17    Response AddNewUser(User user);
    1818    [OperationContract]
    19     List<UserGroup> GetAllUserGroups();
     19    Response RemoveUser(long userId);
     20    [OperationContract]
     21    Response AddNewUserGroup(UserGroup userGroup);
     22    [OperationContract]
     23    Response RemoveUserGroup(long groupId);
     24    [OperationContract]
     25    ResponseList<UserGroup> GetAllUserGroups();
     26    [OperationContract]
     27    Response AddUserToGroup(long groupId, long userId);
     28    [OperationContract]
     29    Response RemoveUserFromGroup(long groupId, long userId);
    2030  }
    2131}
  • trunk/sources/HeuristicLab.Hive.Contracts/ResponseJob.cs

    r823 r902  
    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;
Note: See TracChangeset for help on using the changeset viewer.