Changeset 6810 for branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/UserManagementService.cs
- Timestamp:
- 09/20/11 17:53:27 (13 years ago)
- 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 1 HeuristicLab.Services.UserManagement.csproj.user 1 2 bin 2 3 obj
-
- Property svn:ignore
-
branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/UserManagementService.cs
r6800 r6810 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Net.Security;25 22 using System.ServiceModel; 26 using HeuristicLab.Services.UserManagement.DataTransfer;27 23 28 24 namespace 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 { 34 27 35 [OperationContract] 36 IEnumerable<User> GetUsers(); 28 #region IUserManagementService Members 37 29 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 } 40 33 41 [OperationContract] 42 Guid AddUser(User user); 34 public DataTransfer.User AddUser(DataTransfer.User user) { 35 throw new System.NotImplementedException(); 36 } 43 37 44 [OperationContract] 45 void DeleteUser(Guid id); 38 public void DeleteUser(DataTransfer.User user) { 39 throw new System.NotImplementedException(); 40 } 46 41 47 [OperationContract] 48 void UpdateUser(User user); 42 public void UpdateUser(DataTransfer.User user) { 43 throw new System.NotImplementedException(); 44 } 49 45 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 } 52 49 53 [OperationContract] 54 IEnumerable<User> GetUsersWithRole(Guid roleId); 50 public void RemoveUserFromRole(DataTransfer.Role role, DataTransfer.User user) { 51 throw new System.NotImplementedException(); 52 } 55 53 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 } 58 57 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 } 61 61 62 [OperationContract]63 User ResetPassword(string applicationName, string userName, string password);64 #endregion62 public System.Collections.Generic.IEnumerable<DataTransfer.Role> GetRoles(DataTransfer.Application application) { 63 throw new System.NotImplementedException(); 64 } 65 65 66 #region Role67 [OperationContract]68 Role GetRole(Guid id);66 public DataTransfer.Role AddRole(DataTransfer.Role role) { 67 throw new System.NotImplementedException(); 68 } 69 69 70 [OperationContract] 71 IEnumerable<Role> GetRoles(); 70 public void UpdateRole(DataTransfer.Role role) { 71 throw new System.NotImplementedException(); 72 } 72 73 73 [OperationContract] 74 IEnumerable<Role> GetRolesForApplication(Guid applicationId); 74 public void DeleteRole(DataTransfer.Role role) { 75 throw new System.NotImplementedException(); 76 } 75 77 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 } 78 81 79 [OperationContract] 80 void UpdateRole(Role role); 82 public System.Collections.Generic.IEnumerable<DataTransfer.Application> GetApplications() { 83 throw new System.NotImplementedException(); 84 } 81 85 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 } 84 89 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 87 110 #endregion 88 111 }
Note: See TracChangeset
for help on using the changeset viewer.