Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1825


Ignore:
Timestamp:
05/15/09 13:26:07 (16 years ago)
Author:
msteinbi
Message:

changed signature of addClientGroup method (#599)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/Interfaces/IClientManager.cs

    r1824 r1825  
    4343    ResponseObject<List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId);
    4444    [OperationContract]
    45     Response AddClientGroup(ClientGroup clientGroup);
     45    ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup);
    4646    [OperationContract]
    4747    Response DeleteClientGroup(Guid clientGroupId);
    4848    [OperationContract]
     49    [ServiceKnownType(typeof(Resource))]
     50    [ServiceKnownType(typeof(ClientInfo))]
     51    [ServiceKnownType(typeof(ClientGroup))]
    4952    Response AddResourceToGroup(Guid clientGroupId, Resource resource);
    5053    [OperationContract]
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientManager.cs

    r1824 r1825  
    117117    /// <param name="clientGroup"></param>
    118118    /// <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>();
    127127
    128128        if (clientGroup.Id != Guid.Empty) {
     
    131131        } else {
    132132          clientGroupAdapter.Update(clientGroup);
     133          response.Obj = clientGroup;
    133134          response.Success = true;
    134135          response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_ADDED;
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServerConsoleFacade.cs

    r1824 r1825  
    8484    }
    8585
    86     public Response AddClientGroup(ClientGroup clientGroup) {
     86    public ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup) {
    8787      if (HasPermission(PermissiveSecurityAction.Add_ClientGroup))
    8888        return clientManager.AddClientGroup(clientGroup);
Note: See TracChangeset for help on using the changeset viewer.