Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PersistenceOverhaul/HeuristicLab.Services.OKB/3.3/Administration/IAdministrationService.cs @ 16189

Last change on this file since 16189 was 14712, checked in by gkronber, 8 years ago

#2520 added GUIDs for (almost) all interface types (probably still too many) also added newlines at end of all files

File size: 3.9 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2015 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.Administration.DataTransfer;
27
28namespace HeuristicLab.Services.OKB.Administration {
29  /// <summary>
30  /// Interface of the OKB administration service.
31  /// </summary>
32  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
33  [HeuristicLab.Persistence.Default.CompositeSerializers.Storable.StorableType("8C0FF59B-CFDE-4E16-B851-F07C90C12EAD")]
34  public interface IAdministrationService {
35    #region Platform Methods
36    [OperationContract]
37    Platform GetPlatform(long id);
38    [OperationContract]
39    IEnumerable<Platform> GetPlatforms();
40    [OperationContract]
41    long AddPlatform(Platform dto);
42    [OperationContract]
43    void UpdatePlatform(Platform dto);
44    [OperationContract]
45    void DeletePlatform(long id);
46    #endregion
47
48    #region AlgorithmClass Methods
49    [OperationContract]
50    AlgorithmClass GetAlgorithmClass(long id);
51    [OperationContract]
52    IEnumerable<AlgorithmClass> GetAlgorithmClasses();
53    [OperationContract]
54    long AddAlgorithmClass(AlgorithmClass dto);
55    [OperationContract]
56    void UpdateAlgorithmClass(AlgorithmClass dto);
57    [OperationContract]
58    void DeleteAlgorithmClass(long id);
59    #endregion
60
61    #region Algorithm Methods
62    [OperationContract]
63    Algorithm GetAlgorithm(long id);
64    [OperationContract]
65    IEnumerable<Algorithm> GetAlgorithms();
66    [OperationContract]
67    long AddAlgorithm(Algorithm dto);
68    [OperationContract]
69    void UpdateAlgorithm(Algorithm dto);
70    [OperationContract]
71    void DeleteAlgorithm(long id);
72    [OperationContract]
73    IEnumerable<Guid> GetAlgorithmUsers(long algorithmId);
74    [OperationContract]
75    void UpdateAlgorithmUsers(long algorithmId, IEnumerable<Guid> users);
76    [OperationContract]
77    byte[] GetAlgorithmData(long algorithmId);
78    [OperationContract]
79    void UpdateAlgorithmData(long algorithmId, byte[] data);
80    #endregion
81
82    #region ProblemClass Methods
83    [OperationContract]
84    ProblemClass GetProblemClass(long id);
85    [OperationContract]
86    IEnumerable<ProblemClass> GetProblemClasses();
87    [OperationContract]
88    long AddProblemClass(ProblemClass dto);
89    [OperationContract]
90    void UpdateProblemClass(ProblemClass dto);
91    [OperationContract]
92    void DeleteProblemClass(long id);
93    #endregion
94
95    #region Problem Methods
96    [OperationContract]
97    Problem GetProblem(long id);
98    [OperationContract]
99    IEnumerable<Problem> GetProblems();
100    [OperationContract]
101    long AddProblem(Problem dto);
102    [OperationContract]
103    void UpdateProblem(Problem dto);
104    [OperationContract]
105    void DeleteProblem(long id);
106    [OperationContract]
107    IEnumerable<Guid> GetProblemUsers(long problemId);
108    [OperationContract]
109    void UpdateProblemUsers(long problemId, IEnumerable<Guid> users);
110    [OperationContract]
111    byte[] GetProblemData(long problemId);
112    [OperationContract]
113    void UpdateProblemData(long problemId, byte[] data);
114    #endregion
115  }
116}
Note: See TracBrowser for help on using the repository browser.