Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/20/11 17:53:27 (13 years ago)
Author:
ascheibe
Message:

#1648

  • added a db layer for user management
  • added a user management clients project
  • worked on user management service
Location:
branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3

    • Property svn:ignore
      •  

        old new  
         1HeuristicLab.Services.UserManagement.csproj.user
        12bin
        23obj
  • branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/UserManagementService.cs

    r6800 r6810  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Net.Security;
    2522using System.ServiceModel;
    26 using HeuristicLab.Services.UserManagement.DataTransfer;
    2723
    2824namespace HeuristicLab.Services.UserManagement {
    29   [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
    30   public interface IUserManagementService {
    31     #region User
    32     [OperationContract]
    33     User GetUser(Guid id);
     25  [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
     26  public class UserManagementService : IUserManagementService {
    3427
    35     [OperationContract]
    36     IEnumerable<User> GetUsers();
     28    #region IUserManagementService Members
    3729
    38     [OperationContract]
    39     IEnumerable<User> GetUsersForApplication(Guid applicationId);
     30    public System.Collections.Generic.IEnumerable<DataTransfer.User> GetUsers(DataTransfer.Application application) {
     31      throw new System.NotImplementedException();
     32    }
    4033
    41     [OperationContract]
    42     Guid AddUser(User user);
     34    public DataTransfer.User AddUser(DataTransfer.User user) {
     35      throw new System.NotImplementedException();
     36    }
    4337
    44     [OperationContract]
    45     void DeleteUser(Guid id);
     38    public void DeleteUser(DataTransfer.User user) {
     39      throw new System.NotImplementedException();
     40    }
    4641
    47     [OperationContract]
    48     void UpdateUser(User user);
     42    public void UpdateUser(DataTransfer.User user) {
     43      throw new System.NotImplementedException();
     44    }
    4945
    50     [OperationContract]
    51     void SetRoleForUser(Guid roleId, Guid userId);
     46    public void AddUserToRole(DataTransfer.Role role, DataTransfer.User user) {
     47      throw new System.NotImplementedException();
     48    }
    5249
    53     [OperationContract]
    54     IEnumerable<User> GetUsersWithRole(Guid roleId);
     50    public void RemoveUserFromRole(DataTransfer.Role role, DataTransfer.User user) {
     51      throw new System.NotImplementedException();
     52    }
    5553
    56     [OperationContract]
    57     void RemoveRoleFromUser(Guid roleId, Guid userId);
     54    public bool IsUserInRole(DataTransfer.User user, DataTransfer.Role role) {
     55      throw new System.NotImplementedException();
     56    }
    5857
    59     [OperationContract]
    60     bool HasUserRole(Guid userId, Guid roleId);
     58    public DataTransfer.User ResetPassword(string applicationName, string userName, string password) {
     59      throw new System.NotImplementedException();
     60    }
    6161
    62     [OperationContract]
    63     User ResetPassword(string applicationName, string userName, string password);
    64     #endregion
     62    public System.Collections.Generic.IEnumerable<DataTransfer.Role> GetRoles(DataTransfer.Application application) {
     63      throw new System.NotImplementedException();
     64    }
    6565
    66     #region Role
    67     [OperationContract]
    68     Role GetRole(Guid id);
     66    public DataTransfer.Role AddRole(DataTransfer.Role role) {
     67      throw new System.NotImplementedException();
     68    }
    6969
    70     [OperationContract]
    71     IEnumerable<Role> GetRoles();
     70    public void UpdateRole(DataTransfer.Role role) {
     71      throw new System.NotImplementedException();
     72    }
    7273
    73     [OperationContract]
    74     IEnumerable<Role> GetRolesForApplication(Guid applicationId);
     74    public void DeleteRole(DataTransfer.Role role) {
     75      throw new System.NotImplementedException();
     76    }
    7577
    76     [OperationContract]
    77     Guid AddRole(Role role);
     78    public System.Collections.Generic.IEnumerable<DataTransfer.Role> GetUserRoles(DataTransfer.User user) {
     79      throw new System.NotImplementedException();
     80    }
    7881
    79     [OperationContract]
    80     void UpdateRole(Role role);
     82    public System.Collections.Generic.IEnumerable<DataTransfer.Application> GetApplications() {
     83      throw new System.NotImplementedException();
     84    }
    8185
    82     [OperationContract]
    83     void DeleteRole(Guid id);
     86    public System.Collections.Generic.IEnumerable<DataTransfer.User> GetApplicationUsers(DataTransfer.Application application) {
     87      throw new System.NotImplementedException();
     88    }
    8489
    85     [OperationContract]
    86     IEnumerable<Role> GetUserRoles(Guid userId);
     90    public DataTransfer.Application AddApplication(DataTransfer.Application application) {
     91      throw new System.NotImplementedException();
     92    }
     93
     94    public void UpdateApplication(DataTransfer.Application application) {
     95      throw new System.NotImplementedException();
     96    }
     97
     98    public void DeleteApplication(DataTransfer.Application application) {
     99      throw new System.NotImplementedException();
     100    }
     101
     102    public bool CheckUserExists(string application, string userName, string password) {
     103      throw new System.NotImplementedException();
     104    }
     105
     106    public bool GetUser(string application, string userName, string password) {
     107      throw new System.NotImplementedException();
     108    }
     109
    87110    #endregion
    88111  }
Note: See TracChangeset for help on using the changeset viewer.