Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/08 11:35:34 (16 years ago)
Author:
msteinbi
Message:

Implementation of UserRoleManager (#417)

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

Legend:

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

    r929 r934  
    1212    public static string RESPONSE_USERROLE_USER_DOESNT_EXIST = "UserRole.UserDoesntExist";
    1313    public static string RESPONSE_USERROLE_USER_REMOVED = "UserRole.UserRemoved";
     14    public static string RESPONSE_USERROLE_USERGROUP_EXISTS_ALLREADY = "UserRole.UsergroupExistsAllready";
     15    public static string RESPONSE_USERROLE_USERGROUP_ADDED = "UserRole.UserGroupAdded";
     16    public static string RESPONSE_USERROLE_USERGROUP_DOESNT_EXIST = "UserRole.UserGroupDoesntExist";
     17    public static string RESPONSE_USERROLE_PERMISSIONOWNER_DOESNT_EXIST = "UserRole.PermissionOwnerDoesntExist";
     18    public static string RESPONSE_USERROLE_PERMISSIONOWNER_REMOVED = "UserRole.PermissionOwnerRemoved";
     19    public static string RESPONSE_USERROLE_PERMISSIONOWNER_ADDED = "UserRole.PermissionOwnerAdded";
     20    public static string RESPONSE_USERROLE_GET_ALL_USERGROUPS = "UserRole.AllUserGroupsReturned";
    1421
    1522    public static string RESPONSE_CLIENT_GET_ALL_CLIENTS = "Client.GetAllClients";
     23    public static string RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS = "Client.GetAllClientGroups";
    1624
    1725    public static string RESPONSE_COMMUNICATOR_HARDBEAT_RECEIVED = "Communicator.HeardbeatReceived";
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/ClientGroup.cs

    r827 r934  
    3434    [DataMember]
    3535    public List<Resource> Resources { get; set; }
     36
     37    public ClientGroup() {
     38      Resources = new List<Resource>();
     39    }
    3640  }
    3741}
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/UserGroup.cs

    r930 r934  
    3232    [DataMember]
    3333    public IList<PermissionOwner> Members { get; set; }
     34
     35    public UserGroup() {
     36      Members = new List<PermissionOwner>();
     37    }
    3438  }
    3539}
  • trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj

    r925 r934  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    6     <ProductVersion>9.0.21022</ProductVersion>
     6    <ProductVersion>9.0.30729</ProductVersion>
    77    <SchemaVersion>2.0</SchemaVersion>
    88    <ProjectGuid>{134F93D7-E7C8-4ECD-9923-7F63259A60D8}</ProjectGuid>
     
    116116    <None Include="Properties\AssemblyInfo.frame" />
    117117  </ItemGroup>
     118  <ItemGroup>
     119    <EmbeddedResource Include="HiveServerMessages.resx" />
     120  </ItemGroup>
    118121  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    119122  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientManager.cs

    r902 r934  
    1919    ResponseList<ClientGroup> GetAllClientGroups();
    2020    [OperationContract]
     21    Response AddClientGroup(ClientGroup clientGroup);
     22    [OperationContract]
     23    Response AddResourceToGroup(long clientGroupId, Resource resource);
     24    [OperationContract]
     25    Response DeleteResourceFromGroup(long clientGroupId, long resourceId);
     26    [OperationContract]
    2127    ResponseList<UpTimeStatistics> GetAllUpTimeStatistics();
    2228  }
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IUserRoleManager.cs

    r902 r934  
    2525    ResponseList<UserGroup> GetAllUserGroups();
    2626    [OperationContract]
    27     Response AddUserToGroup(long groupId, long userId);
     27    Response AddPermissionOwnerToGroup(long groupId, PermissionOwner permissionOwner);
    2828    [OperationContract]
    29     Response RemoveUserFromGroup(long groupId, long userId);
     29    Response RemovePermissionOwnerFromGroup(long groupId, long userId);
    3030  }
    3131}
Note: See TracChangeset for help on using the changeset viewer.