Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKB (trunk integration)/HeuristicLab.Services.OKB/3.3/Administration/IAdministrationService.cs @ 5479

Last change on this file since 5479 was 5479, checked in by swagner, 13 years ago

Worked on OKB (#1174)

File size: 4.2 KB
Line 
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
22using System;
23using System.Collections.Generic;
24using System.Net.Security;
25using System.ServiceModel;
26using HeuristicLab.Services.OKB.DataTransfer;
27
28namespace HeuristicLab.Services.OKB.Administration {
29  /// <summary>
30  /// Interface of the OKB administration service.
31  /// </summary>
32  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
33  public interface IAdministrationService {
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    long AddDataType(DataType dto);
52    #endregion
53
54    #region BinaryData Methods
55    [OperationContract]
56    long GetBinaryDataId(byte[] hash);
57    [OperationContract]
58    long AddBinaryData(BinaryData dto);
59    #endregion
60
61    #region AlgorithmClass Methods
62    [OperationContract]
63    AlgorithmClass GetAlgorithmClass(long id);
64    [OperationContract]
65    IEnumerable<AlgorithmClass> GetAlgorithmClasses();
66    [OperationContract]
67    long AddAlgorithmClass(AlgorithmClass dto);
68    [OperationContract]
69    void UpdateAlgorithmClass(AlgorithmClass dto);
70    [OperationContract]
71    void DeleteAlgorithmClass(long id);
72    #endregion
73
74    #region Algorithm Methods
75    [OperationContract]
76    Algorithm GetAlgorithm(long id);
77    [OperationContract]
78    IEnumerable<Algorithm> GetAlgorithms();
79    [OperationContract]
80    long AddAlgorithm(Algorithm dto);
81    [OperationContract]
82    void UpdateAlgorithm(Algorithm dto);
83    [OperationContract]
84    void DeleteAlgorithm(long id);
85    [OperationContract]
86    IEnumerable<Guid> GetAlgorithmUsers(long algorithmId);
87    [OperationContract]
88    void UpdateAlgorithmUsers(long algorithmId, IEnumerable<Guid> users);
89    [OperationContract]
90    BinaryData GetAlgorithmData(long algorithmId);
91    #endregion
92
93    #region ProblemClass Methods
94    [OperationContract]
95    ProblemClass GetProblemClass(long id);
96    [OperationContract]
97    IEnumerable<ProblemClass> GetProblemClasses();
98    [OperationContract]
99    long AddProblemClass(ProblemClass dto);
100    [OperationContract]
101    void UpdateProblemClass(ProblemClass dto);
102    [OperationContract]
103    void DeleteProblemClass(long id);
104    #endregion
105
106    #region Problem Methods
107    [OperationContract]
108    Problem GetProblem(long id);
109    [OperationContract]
110    IEnumerable<Problem> GetProblems();
111    [OperationContract]
112    long AddProblem(Problem dto);
113    [OperationContract]
114    void UpdateProblem(Problem dto);
115    [OperationContract]
116    void DeleteProblem(long id);
117    [OperationContract]
118    IEnumerable<Guid> GetProblemUsers(long problemId);
119    [OperationContract]
120    void UpdateProblemUsers(long problemId, IEnumerable<Guid> users);
121    [OperationContract]
122    BinaryData GetProblemData(long problemId);
123    #endregion
124
125    #region Run Methods
126    [OperationContract]
127    Run GetRun(long id);
128    [OperationContract]
129    IEnumerable<Run> GetRuns(long algorithmId, long problemId);
130    [OperationContract]
131    long AddRun(Run dto);
132    [OperationContract]
133    void DeleteRun(long id);
134    #endregion
135  }
136}
Note: See TracBrowser for help on using the repository browser.