Changeset 6810 for branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/IUserManagementService.cs
- Timestamp:
- 09/20/11 17:53:27 (13 years ago)
- Location:
- branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3
- Files:
-
- 2 edited
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/IUserManagementService.cs
r6800 r6810 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Net.Security; … … 29 28 [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)] 30 29 public interface IUserManagementService { 30 31 31 #region User 32 32 [OperationContract] 33 User GetUser(Guid id);33 IEnumerable<User> GetUsers(Application application); 34 34 35 35 [OperationContract] 36 IEnumerable<User> GetUsers();36 User AddUser(User user); 37 37 38 38 [OperationContract] 39 IEnumerable<User> GetUsersForApplication(Guid applicationId); 40 41 [OperationContract] 42 Guid AddUser(User user); 43 44 [OperationContract] 45 void DeleteUser(Guid id); 39 void DeleteUser(User user); 46 40 47 41 [OperationContract] … … 49 43 50 44 [OperationContract] 51 void SetRoleForUser(Guid roleId, Guid userId);45 void AddUserToRole(Role role, User user); 52 46 53 47 [OperationContract] 54 IEnumerable<User> GetUsersWithRole(Guid roleId);48 void RemoveUserFromRole(Role role, User user); 55 49 56 50 [OperationContract] 57 void RemoveRoleFromUser(Guid roleId, Guid userId); 58 59 [OperationContract] 60 bool HasUserRole(Guid userId, Guid roleId); 51 bool IsUserInRole(User user, Role role); 61 52 62 53 [OperationContract] … … 66 57 #region Role 67 58 [OperationContract] 68 Role GetRole(Guid id);59 IEnumerable<Role> GetRoles(Application application); 69 60 70 61 [OperationContract] 71 IEnumerable<Role> GetRoles(); 72 73 [OperationContract] 74 IEnumerable<Role> GetRolesForApplication(Guid applicationId); 75 76 [OperationContract] 77 Guid AddRole(Role role); 62 Role AddRole(Role role); 78 63 79 64 [OperationContract] … … 81 66 82 67 [OperationContract] 83 void DeleteRole( Guid id);68 void DeleteRole(Role role); 84 69 85 70 [OperationContract] 86 IEnumerable<Role> GetUserRoles(Guid userId); 71 IEnumerable<Role> GetUserRoles(User user); 72 #endregion 73 74 #region Application 75 [OperationContract] 76 IEnumerable<Application> GetApplications(); 77 78 [OperationContract] 79 IEnumerable<User> GetApplicationUsers(Application application); 80 81 [OperationContract] 82 Application AddApplication(Application application); 83 84 [OperationContract] 85 void UpdateApplication(Application application); 86 87 [OperationContract] 88 void DeleteApplication(Application application); 89 #endregion 90 91 #region Client specific methods 92 [OperationContract] 93 bool CheckUserExists(string application, string userName, string password); 94 95 [OperationContract] 96 bool GetUser(string application, string userName, string password); 87 97 #endregion 88 98 }
Note: See TracChangeset
for help on using the changeset viewer.