1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Collections.Generic;
|
---|
24 | using System.Net.Security;
|
---|
25 | using System.ServiceModel;
|
---|
26 | using HeuristicLab.Services.ClientManagement.DataTransfer;
|
---|
27 |
|
---|
28 | namespace HeuristicLab.Services.ClientManagement {
|
---|
29 | [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
|
---|
30 | public interface IClientManagementService {
|
---|
31 |
|
---|
32 | #region Client
|
---|
33 | [OperationContract]
|
---|
34 | Client GetClient(Guid id);
|
---|
35 |
|
---|
36 | [OperationContract]
|
---|
37 | IEnumerable<Client> GetClients();
|
---|
38 |
|
---|
39 | [OperationContract]
|
---|
40 | IEnumerable<Client> GetClientsOfGroup(Guid id);
|
---|
41 |
|
---|
42 | [OperationContract]
|
---|
43 | Guid AddClient(Client dto);
|
---|
44 |
|
---|
45 | [OperationContract]
|
---|
46 | void UpdateClient(Client dto);
|
---|
47 |
|
---|
48 | [OperationContract]
|
---|
49 | void DeleteClient(Client dto);
|
---|
50 | #endregion
|
---|
51 |
|
---|
52 | #region Group
|
---|
53 | [OperationContract]
|
---|
54 | Group GetGroup(Guid id);
|
---|
55 |
|
---|
56 | [OperationContract]
|
---|
57 | IEnumerable<Group> GetGroups();
|
---|
58 |
|
---|
59 | [OperationContract]
|
---|
60 | IEnumerable<Group> GetGroupsOf(Guid clientId);
|
---|
61 |
|
---|
62 | [OperationContract]
|
---|
63 | Guid AddGroup(Group dto);
|
---|
64 |
|
---|
65 | [OperationContract]
|
---|
66 | void UpdateGroup(Group dto);
|
---|
67 |
|
---|
68 | [OperationContract]
|
---|
69 | void DeleteGroup(Group dto);
|
---|
70 | #endregion
|
---|
71 |
|
---|
72 | #region Resource
|
---|
73 | [OperationContract]
|
---|
74 | IEnumerable<Resource> GetResources();
|
---|
75 |
|
---|
76 | [OperationContract]
|
---|
77 | IEnumerable<Resource> GetMembers(Guid groupId);
|
---|
78 | #endregion
|
---|
79 |
|
---|
80 | #region ClientLog
|
---|
81 | [OperationContract]
|
---|
82 | ClientLog GetLastClientLog(Guid clientId);
|
---|
83 |
|
---|
84 | [OperationContract]
|
---|
85 | IEnumerable<ClientLog> GetClientLogs(Guid clientId);
|
---|
86 |
|
---|
87 | [OperationContract]
|
---|
88 | IEnumerable<ClientLog> GetClientLogsSince(DateTime startDate);
|
---|
89 |
|
---|
90 | [OperationContract]
|
---|
91 | void AddClientLogEntry(ClientLog log);
|
---|
92 |
|
---|
93 | [OperationContract]
|
---|
94 | void DeleteClientLogEntry(DateTime timeStamp, Guid resourceId);
|
---|
95 | #endregion
|
---|
96 | }
|
---|
97 | }
|
---|