- Timestamp:
- 12/10/08 15:33:57 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj
r948 r952 84 84 <Compile Include="BusinessObjects\User.cs" /> 85 85 <Compile Include="BusinessObjects\UserGroup.cs" /> 86 <Compile Include="ResponseObject.cs" /> 86 87 <Compile Include="Interfaces\IJob.cs" /> 87 88 <Compile Include="Interfaces\IClientManager.cs" /> -
trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IUserRoleManager.cs
r945 r952 15 15 ResponseList<User> GetAllUsers(); 16 16 [OperationContract] 17 Response AddNewUser(User user);17 ResponseObject<User> AddNewUser(User user); 18 18 [OperationContract] 19 19 Response RemoveUser(long userId); 20 20 [OperationContract] 21 Response AddNewUserGroup(UserGroup userGroup);21 ResponseObject<UserGroup> AddNewUserGroup(UserGroup userGroup); 22 22 [OperationContract] 23 23 Response RemoveUserGroup(long groupId); -
trunk/sources/HeuristicLab.Hive.Server.Core/ServerConsoleFacade.cs
r945 r952 76 76 } 77 77 78 public Response AddNewUser(User user) {78 public ResponseObject<User> AddNewUser(User user) { 79 79 return userRoleManager.AddNewUser(user); 80 80 } 81 81 82 public ResponseList< HeuristicLab.Hive.Contracts.BusinessObjects.UserGroup> GetAllUserGroups() {82 public ResponseList<UserGroup> GetAllUserGroups() { 83 83 return userRoleManager.GetAllUserGroups(); 84 84 } … … 88 88 } 89 89 90 public Response AddNewUserGroup(UserGroup userGroup) {90 public ResponseObject<UserGroup> AddNewUserGroup(UserGroup userGroup) { 91 91 return userRoleManager.AddNewUserGroup(userGroup); 92 92 } -
trunk/sources/HeuristicLab.Hive.Server.Core/UserRoleManager.cs
r947 r952 35 35 } 36 36 37 public Response AddNewUser(User user) {38 Response response = new Response();37 public ResponseObject<User> AddNewUser(User user) { 38 ResponseObject<User> response = new ResponseObject<User>(); 39 39 40 40 if (user.PermissionOwnerId != 0) { … … 44 44 } 45 45 userAdapter.UpdateUser(user); 46 response.Obj = user; 46 47 response.Success = true; 47 48 response.StatusMessage = ApplicationConstants.RESPONSE_USERROLE_USER_SUCCESSFULLY_ADDED; … … 75 76 } 76 77 77 public Response AddNewUserGroup(UserGroup userGroup) {78 Response response = new Response();78 public ResponseObject<UserGroup> AddNewUserGroup(UserGroup userGroup) { 79 ResponseObject<UserGroup> response = new ResponseObject<UserGroup>(); 79 80 80 81 if (userGroup.PermissionOwnerId != 0) { … … 84 85 } 85 86 userGroupAdapter.UpdateUserGroup(userGroup); 87 response.Obj = userGroup; 86 88 response.Success = false; 87 89 response.StatusMessage = ApplicationConstants.RESPONSE_USERROLE_USERGROUP_ADDED;
Note: See TracChangeset
for help on using the changeset viewer.