Changeset 1825
- Timestamp:
- 05/15/09 13:26:07 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/3.2/Interfaces/IClientManager.cs
r1824 r1825 43 43 ResponseObject<List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId); 44 44 [OperationContract] 45 Response AddClientGroup(ClientGroup clientGroup);45 ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup); 46 46 [OperationContract] 47 47 Response DeleteClientGroup(Guid clientGroupId); 48 48 [OperationContract] 49 [ServiceKnownType(typeof(Resource))] 50 [ServiceKnownType(typeof(ClientInfo))] 51 [ServiceKnownType(typeof(ClientGroup))] 49 52 Response AddResourceToGroup(Guid clientGroupId, Resource resource); 50 53 [OperationContract] -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientManager.cs
r1824 r1825 117 117 /// <param name="clientGroup"></param> 118 118 /// <returns></returns> 119 public Response AddClientGroup(ClientGroup clientGroup) {120 ISession session = factory.GetSessionForCurrentThread(); 121 122 try { 123 IClientGroupAdapter clientGroupAdapter = 124 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>(); 125 126 Response response = new Response();119 public ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup) { 120 ISession session = factory.GetSessionForCurrentThread(); 121 122 try { 123 IClientGroupAdapter clientGroupAdapter = 124 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>(); 125 126 ResponseObject<ClientGroup> response = new ResponseObject<ClientGroup>(); 127 127 128 128 if (clientGroup.Id != Guid.Empty) { … … 131 131 } else { 132 132 clientGroupAdapter.Update(clientGroup); 133 response.Obj = clientGroup; 133 134 response.Success = true; 134 135 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_ADDED; -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServerConsoleFacade.cs
r1824 r1825 84 84 } 85 85 86 public Response AddClientGroup(ClientGroup clientGroup) {86 public ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup) { 87 87 if (HasPermission(PermissiveSecurityAction.Add_ClientGroup)) 88 88 return clientManager.AddClientGroup(clientGroup);
Note: See TracChangeset
for help on using the changeset viewer.