[4279] | 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 |
|
---|
[4467] | 22 | using System;
|
---|
[4426] | 23 | using System.Collections.Generic;
|
---|
[4279] | 24 | using System.Net.Security;
|
---|
| 25 | using System.ServiceModel;
|
---|
[5482] | 26 | using HeuristicLab.Services.OKB.Administration.DataTransfer;
|
---|
[4279] | 27 |
|
---|
[5479] | 28 | namespace HeuristicLab.Services.OKB.Administration {
|
---|
[4279] | 29 | /// <summary>
|
---|
[5299] | 30 | /// Interface of the OKB administration service.
|
---|
[4455] | 31 | /// </summary>
|
---|
[4279] | 32 | [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
|
---|
[5299] | 33 | public interface IAdministrationService {
|
---|
[4467] | 34 | #region Platform Methods
|
---|
[4407] | 35 | [OperationContract]
|
---|
[4442] | 36 | IEnumerable<Platform> GetPlatforms();
|
---|
| 37 | [OperationContract]
|
---|
[4481] | 38 | long AddPlatform(Platform dto);
|
---|
[4442] | 39 | [OperationContract]
|
---|
[4481] | 40 | void UpdatePlatform(Platform dto);
|
---|
| 41 | [OperationContract]
|
---|
[4455] | 42 | void DeletePlatform(long id);
|
---|
[4467] | 43 | #endregion
|
---|
[4442] | 44 |
|
---|
[4467] | 45 | #region AlgorithmClass Methods
|
---|
[4442] | 46 | [OperationContract]
|
---|
[4426] | 47 | IEnumerable<AlgorithmClass> GetAlgorithmClasses();
|
---|
[4407] | 48 | [OperationContract]
|
---|
[4481] | 49 | long AddAlgorithmClass(AlgorithmClass dto);
|
---|
[4407] | 50 | [OperationContract]
|
---|
[4481] | 51 | void UpdateAlgorithmClass(AlgorithmClass dto);
|
---|
| 52 | [OperationContract]
|
---|
[4455] | 53 | void DeleteAlgorithmClass(long id);
|
---|
[4467] | 54 | #endregion
|
---|
[4279] | 55 |
|
---|
[4467] | 56 | #region Algorithm Methods
|
---|
[4407] | 57 | [OperationContract]
|
---|
[4426] | 58 | IEnumerable<Algorithm> GetAlgorithms();
|
---|
[4407] | 59 | [OperationContract]
|
---|
[4481] | 60 | long AddAlgorithm(Algorithm dto);
|
---|
[4407] | 61 | [OperationContract]
|
---|
[4481] | 62 | void UpdateAlgorithm(Algorithm dto);
|
---|
| 63 | [OperationContract]
|
---|
[4455] | 64 | void DeleteAlgorithm(long id);
|
---|
[4467] | 65 | [OperationContract]
|
---|
| 66 | IEnumerable<Guid> GetAlgorithmUsers(long algorithmId);
|
---|
| 67 | [OperationContract]
|
---|
[4481] | 68 | void UpdateAlgorithmUsers(long algorithmId, IEnumerable<Guid> users);
|
---|
[4467] | 69 | [OperationContract]
|
---|
[5482] | 70 | byte[] GetAlgorithmData(long algorithmId);
|
---|
| 71 | [OperationContract]
|
---|
| 72 | void UpdateAlgorithmData(long algorithmId, byte[] data);
|
---|
[4467] | 73 | #endregion
|
---|
| 74 |
|
---|
[4481] | 75 | #region ProblemClass Methods
|
---|
[4467] | 76 | [OperationContract]
|
---|
[4481] | 77 | IEnumerable<ProblemClass> GetProblemClasses();
|
---|
[4467] | 78 | [OperationContract]
|
---|
[4481] | 79 | long AddProblemClass(ProblemClass dto);
|
---|
[4467] | 80 | [OperationContract]
|
---|
[4481] | 81 | void UpdateProblemClass(ProblemClass dto);
|
---|
| 82 | [OperationContract]
|
---|
| 83 | void DeleteProblemClass(long id);
|
---|
[4467] | 84 | #endregion
|
---|
[4481] | 85 |
|
---|
| 86 | #region Problem Methods
|
---|
| 87 | [OperationContract]
|
---|
| 88 | IEnumerable<Problem> GetProblems();
|
---|
| 89 | [OperationContract]
|
---|
| 90 | long AddProblem(Problem dto);
|
---|
| 91 | [OperationContract]
|
---|
| 92 | void UpdateProblem(Problem dto);
|
---|
| 93 | [OperationContract]
|
---|
| 94 | void DeleteProblem(long id);
|
---|
| 95 | [OperationContract]
|
---|
| 96 | IEnumerable<Guid> GetProblemUsers(long problemId);
|
---|
| 97 | [OperationContract]
|
---|
| 98 | void UpdateProblemUsers(long problemId, IEnumerable<Guid> users);
|
---|
| 99 | [OperationContract]
|
---|
[5482] | 100 | byte[] GetProblemData(long problemId);
|
---|
[4591] | 101 | [OperationContract]
|
---|
[5482] | 102 | void UpdateProblemData(long problemId, byte[] data);
|
---|
[4591] | 103 | #endregion
|
---|
[4279] | 104 | }
|
---|
| 105 | }
|
---|