Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6800


Ignore:
Timestamp:
09/19/11 17:21:28 (11 years ago)
Author:
ascheibe
Message:

#1648 started working on user management service

Location:
branches/ClientUserManagement
Files:
9 added
5 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/ClientUserManagement/HeuristicLab.ClientUserManagement.sln

    r6799 r6800  
    1010EndProject
    1111Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.ClientManagement", "HeuristicLab.Services.ClientManagement\3.3\HeuristicLab.Services.ClientManagement.csproj", "{63D4C87A-030B-4578-8E9E-DAE6F3E39C90}"
     12EndProject
     13Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.UserManagement", "HeuristicLab.Services.UserManagement\3.3\HeuristicLab.Services.UserManagement.csproj", "{7FAF6FD7-F5C4-42AA-BA32-E89B563BDF60}"
    1214EndProject
    1315Global
     
    2527    {63D4C87A-030B-4578-8E9E-DAE6F3E39C90}.Release|Any CPU.ActiveCfg = Release|Any CPU
    2628    {63D4C87A-030B-4578-8E9E-DAE6F3E39C90}.Release|Any CPU.Build.0 = Release|Any CPU
     29    {7FAF6FD7-F5C4-42AA-BA32-E89B563BDF60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     30    {7FAF6FD7-F5C4-42AA-BA32-E89B563BDF60}.Debug|Any CPU.Build.0 = Debug|Any CPU
     31    {7FAF6FD7-F5C4-42AA-BA32-E89B563BDF60}.Release|Any CPU.ActiveCfg = Release|Any CPU
     32    {7FAF6FD7-F5C4-42AA-BA32-E89B563BDF60}.Release|Any CPU.Build.0 = Release|Any CPU
    2733  EndGlobalSection
    2834  GlobalSection(SolutionProperties) = preSolution
  • branches/ClientUserManagement/HeuristicLab.Services.ClientManagement/3.3/DataTransfer/ClientLog.cs

    r6799 r6800  
    2424namespace HeuristicLab.Services.ClientManagement.DataTransfer {
    2525  [DataContract]
    26   public class ClientLog {
     26  public class ClientLog : ClientManagementItem {
    2727    [DataMember]
    2828    public DateTime Timestamp { get; set; }
  • branches/ClientUserManagement/HeuristicLab.Services.ClientManagement/3.3/DataTransfer/Resource.cs

    r6799 r6800  
    2222using System;
    2323using System.Runtime.Serialization;
     24
    2425namespace HeuristicLab.Services.ClientManagement.DataTransfer {
    2526  [DataContract]
    26   public class Resource {
     27  public class Resource : ClientManagementItem {
    2728    [DataMember]
    2829    public Guid Id { get; set; }
  • branches/ClientUserManagement/HeuristicLab.Services.ClientManagement/3.3/HeuristicLab.Services.ClientManagement.csproj

    r6799 r6800  
    5353    <Compile Include="DataTransfer\Client.cs" />
    5454    <Compile Include="DataTransfer\ClientLog.cs" />
     55    <Compile Include="DataTransfer\ClientManagementItem.cs" />
    5556    <Compile Include="DataTransfer\Group.cs" />
    5657    <Compile Include="DataTransfer\Resource.cs" />
  • branches/ClientUserManagement/HeuristicLab.Services.ClientManagement/3.3/IClientManagementService.cs

    r6799 r6800  
    3131
    3232    #region Client
     33    [OperationContract]
    3334    Client GetClient(Guid id);
    3435
     36    [OperationContract]
    3537    IEnumerable<Client> GetClients();
    3638
     39    [OperationContract]
    3740    IEnumerable<Client> GetClientsOfGroup(Guid id);
    3841
     42    [OperationContract]
    3943    Guid AddClient(Client dto);
    4044
     45    [OperationContract]
    4146    void UpdateClient(Client dto);
    4247
     48    [OperationContract]
    4349    void DeleteClient(Client dto);
    4450    #endregion
    4551
    4652    #region Group
     53    [OperationContract]
    4754    Group GetGroup(Guid id);
    4855
     56    [OperationContract]
    4957    IEnumerable<Group> GetGroups();
    5058
     59    [OperationContract]
    5160    IEnumerable<Group> GetGroupsOf(Guid clientId);
    5261
     62    [OperationContract]
    5363    Guid AddGroup(Group dto);
    5464
     65    [OperationContract]
    5566    void UpdateGroup(Group dto);
    5667
     68    [OperationContract]
    5769    void DeleteGroup(Group dto);
    5870    #endregion
    5971
    6072    #region Resource
     73    [OperationContract]
    6174    IEnumerable<Resource> GetResources();
    6275
     76    [OperationContract]
    6377    IEnumerable<Resource> GetMembers(Guid groupId);
    6478    #endregion
    6579
    6680    #region ClientLog
     81    [OperationContract]
    6782    ClientLog GetLastClientLog(Guid clientId);
    6883
     84    [OperationContract]
    6985    IEnumerable<ClientLog> GetClientLogs(Guid clientId);
    7086
     87    [OperationContract]
    7188    IEnumerable<ClientLog> GetClientLogsSince(DateTime startDate);
    7289
     90    [OperationContract]
    7391    void AddClientLogEntry(ClientLog log);
    7492
     93    [OperationContract]
    7594    void DeleteClientLogEntry(DateTime timeStamp, Guid resourceId);
    7695    #endregion
  • branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/DataTransfer/Role.cs

    r6697 r6800  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    1919 */
    2020#endregion
     21
    2122using System;
    22 using System.Collections.Generic;
    23 using System.Linq;
    24 using System.Text;
    2523using System.Runtime.Serialization;
    2624
    27 namespace HeuristicLab.Services.Authentication.DataTransfer {
     25namespace HeuristicLab.Services.UserManagement.DataTransfer {
    2826
    2927  [DataContract]
    30   public class Role : AuthenticationItem {
    31 
    32     public Role() {
    33       ApplicationId = Guid.Empty;
    34     }
    35 
     28  public class Role : UserManagementItem {
    3629    [DataMember]
    3730    public Guid ApplicationId { get; set; }
  • branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/DataTransfer/User.cs

    r6697 r6800  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    1919 */
    2020#endregion
     21
    2122using System;
    22 using System.Collections.Generic;
    23 using System.Linq;
    24 using System.Text;
    2523using System.Runtime.Serialization;
    2624
    27 namespace HeuristicLab.Services.Authentication.DataTransfer {
    28 
     25namespace HeuristicLab.Services.UserManagement.DataTransfer {
    2926  [DataContract]
    30   public class User : AuthenticationItem {
    31 
    32     public User() {
    33       Name = string.Empty;
    34       Email = string.Empty;
    35       ApplicationId = Guid.Empty;
    36       CreateDate = DateTime.Now;
    37       LastActivityDate = DateTime.Now;
    38       LastLoginDate = DateTime.Now;
    39       LastLockoutDate = DateTime.Now;
    40       LastPasswordChangeDate = DateTime.Now;
    41     }
    42 
     27  public class User : UserManagementItem {
    4328    [DataMember]
    4429    public Guid ApplicationId { get; set; }
     
    5136
    5237    [DataMember]
    53     public bool IsLookedOut { get; set; }
     38    public bool IsLockedOut { get; set; }
    5439
    5540    [DataMember]
Note: See TracChangeset for help on using the changeset viewer.