1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2010 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.OKB.DataTransfer;
|
---|
27 |
|
---|
28 | namespace HeuristicLab.Services.OKB {
|
---|
29 | /// <summary>
|
---|
30 | /// Interface of the OKB administration service.
|
---|
31 | /// </summary>
|
---|
32 | [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
|
---|
33 | public interface IAdminService {
|
---|
34 | #region Platform Methods
|
---|
35 | [OperationContract]
|
---|
36 | Platform GetPlatform(long id);
|
---|
37 | [OperationContract]
|
---|
38 | IEnumerable<Platform> GetPlatforms();
|
---|
39 | [OperationContract]
|
---|
40 | long AddPlatform(Platform dto);
|
---|
41 | [OperationContract]
|
---|
42 | void UpdatePlatform(Platform dto);
|
---|
43 | [OperationContract]
|
---|
44 | void DeletePlatform(long id);
|
---|
45 | #endregion
|
---|
46 |
|
---|
47 | #region DataType Methods
|
---|
48 | [OperationContract]
|
---|
49 | DataType GetDataType(long id);
|
---|
50 | [OperationContract]
|
---|
51 | IEnumerable<DataType> GetDataTypes();
|
---|
52 | [OperationContract]
|
---|
53 | long AddDataType(DataType dto);
|
---|
54 | [OperationContract]
|
---|
55 | void UpdateDataType(DataType dto);
|
---|
56 | [OperationContract]
|
---|
57 | void DeleteDataType(long id);
|
---|
58 | #endregion
|
---|
59 |
|
---|
60 | #region AlgorithmClass Methods
|
---|
61 | [OperationContract]
|
---|
62 | AlgorithmClass GetAlgorithmClass(long id);
|
---|
63 | [OperationContract]
|
---|
64 | IEnumerable<AlgorithmClass> GetAlgorithmClasses();
|
---|
65 | [OperationContract]
|
---|
66 | long AddAlgorithmClass(AlgorithmClass dto);
|
---|
67 | [OperationContract]
|
---|
68 | void UpdateAlgorithmClass(AlgorithmClass dto);
|
---|
69 | [OperationContract]
|
---|
70 | void DeleteAlgorithmClass(long id);
|
---|
71 | #endregion
|
---|
72 |
|
---|
73 | #region Algorithm Methods
|
---|
74 | [OperationContract]
|
---|
75 | Algorithm GetAlgorithm(long id);
|
---|
76 | [OperationContract]
|
---|
77 | IEnumerable<Algorithm> GetAlgorithms();
|
---|
78 | [OperationContract]
|
---|
79 | long AddAlgorithm(Algorithm dto);
|
---|
80 | [OperationContract]
|
---|
81 | void UpdateAlgorithm(Algorithm dto);
|
---|
82 | [OperationContract]
|
---|
83 | void DeleteAlgorithm(long id);
|
---|
84 | [OperationContract]
|
---|
85 | IEnumerable<Guid> GetAlgorithmUsers(long algorithmId);
|
---|
86 | [OperationContract]
|
---|
87 | void UpdateAlgorithmUsers(long algorithmId, IEnumerable<Guid> users);
|
---|
88 | #endregion
|
---|
89 |
|
---|
90 | #region AlgorithmData Methods
|
---|
91 | [OperationContract]
|
---|
92 | AlgorithmData GetAlgorithmData(long algorithmId);
|
---|
93 | [OperationContract]
|
---|
94 | void UpdateAlgorithmData(AlgorithmData dto);
|
---|
95 | #endregion
|
---|
96 |
|
---|
97 | #region ProblemClass Methods
|
---|
98 | [OperationContract]
|
---|
99 | ProblemClass GetProblemClass(long id);
|
---|
100 | [OperationContract]
|
---|
101 | IEnumerable<ProblemClass> GetProblemClasses();
|
---|
102 | [OperationContract]
|
---|
103 | long AddProblemClass(ProblemClass dto);
|
---|
104 | [OperationContract]
|
---|
105 | void UpdateProblemClass(ProblemClass dto);
|
---|
106 | [OperationContract]
|
---|
107 | void DeleteProblemClass(long id);
|
---|
108 | #endregion
|
---|
109 |
|
---|
110 | #region Problem Methods
|
---|
111 | [OperationContract]
|
---|
112 | Problem GetProblem(long id);
|
---|
113 | [OperationContract]
|
---|
114 | IEnumerable<Problem> GetProblems();
|
---|
115 | [OperationContract]
|
---|
116 | long AddProblem(Problem dto);
|
---|
117 | [OperationContract]
|
---|
118 | void UpdateProblem(Problem dto);
|
---|
119 | [OperationContract]
|
---|
120 | void DeleteProblem(long id);
|
---|
121 | [OperationContract]
|
---|
122 | IEnumerable<Guid> GetProblemUsers(long problemId);
|
---|
123 | [OperationContract]
|
---|
124 | void UpdateProblemUsers(long problemId, IEnumerable<Guid> users);
|
---|
125 | #endregion
|
---|
126 |
|
---|
127 | #region ProblemData Methods
|
---|
128 | [OperationContract]
|
---|
129 | ProblemData GetProblemData(long problemId);
|
---|
130 | [OperationContract]
|
---|
131 | void UpdateProblemData(ProblemData dto);
|
---|
132 | #endregion
|
---|
133 | }
|
---|
134 | }
|
---|