Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4390


Ignore:
Timestamp:
09/14/10 17:24:54 (14 years ago)
Author:
swagner
Message:

Worked on OKB data model and services (#1174)

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.Designer.cs

    r4388 r4390  
    4747      this.components = new System.ComponentModel.Container();
    4848      this.dataGridView1 = new System.Windows.Forms.DataGridView();
     49      this.idDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     50      this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     51      this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     52      this.algorithmClassBindingSource = new System.Windows.Forms.BindingSource(this.components);
    4953      this.refreshButton = new System.Windows.Forms.Button();
    5054      this.saveButton = new System.Windows.Forms.Button();
    5155      this.tabControl1 = new System.Windows.Forms.TabControl();
    5256      this.tabPage1 = new System.Windows.Forms.TabPage();
     57      this.populateButton = new System.Windows.Forms.Button();
    5358      this.tabPage2 = new System.Windows.Forms.TabPage();
    5459      this.dataGridView2 = new System.Windows.Forms.DataGridView();
    55       this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    56       this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    57       this.algorithmClassBindingSource = new System.Windows.Forms.BindingSource(this.components);
    5860      this.idDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    5961      this.algorithmClassIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     
    6668      this.algorithmBindingSource = new System.Windows.Forms.BindingSource(this.components);
    6769      ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     70      ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).BeginInit();
    6871      this.tabControl1.SuspendLayout();
    6972      this.tabPage1.SuspendLayout();
    7073      this.tabPage2.SuspendLayout();
    7174      ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
    72       ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).BeginInit();
    7375      ((System.ComponentModel.ISupportInitialize)(this.algorithmBindingSource)).BeginInit();
    7476      this.SuspendLayout();
     
    8385      this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    8486      this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     87            this.idDataGridViewTextBoxColumn1,
    8588            this.nameDataGridViewTextBoxColumn,
    8689            this.descriptionDataGridViewTextBoxColumn});
     
    9093      this.dataGridView1.Size = new System.Drawing.Size(707, 368);
    9194      this.dataGridView1.TabIndex = 0;
    92       this.dataGridView1.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_ColumnHeaderMouseClick);
     95      this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
     96      this.dataGridView1.UserAddedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserAddedRow);
     97      this.dataGridView1.UserDeletedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserDeletedRow);
     98      //
     99      // idDataGridViewTextBoxColumn1
     100      //
     101      this.idDataGridViewTextBoxColumn1.DataPropertyName = "Id";
     102      this.idDataGridViewTextBoxColumn1.HeaderText = "Id";
     103      this.idDataGridViewTextBoxColumn1.Name = "idDataGridViewTextBoxColumn1";
     104      this.idDataGridViewTextBoxColumn1.ReadOnly = true;
     105      this.idDataGridViewTextBoxColumn1.Width = 41;
     106      //
     107      // nameDataGridViewTextBoxColumn
     108      //
     109      this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
     110      this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
     111      this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
     112      this.nameDataGridViewTextBoxColumn.Width = 60;
     113      //
     114      // descriptionDataGridViewTextBoxColumn
     115      //
     116      this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
     117      this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";
     118      this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
     119      this.descriptionDataGridViewTextBoxColumn.Width = 85;
     120      //
     121      // algorithmClassBindingSource
     122      //
     123      this.algorithmClassBindingSource.DataSource = typeof(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass);
     124      this.algorithmClassBindingSource.Sort = "";
    93125      //
    94126      // refreshButton
     
    129161      this.tabPage1.Controls.Add(this.dataGridView1);
    130162      this.tabPage1.Controls.Add(this.refreshButton);
     163      this.tabPage1.Controls.Add(this.populateButton);
    131164      this.tabPage1.Controls.Add(this.saveButton);
    132165      this.tabPage1.Location = new System.Drawing.Point(4, 22);
     
    137170      this.tabPage1.Text = "tabPage1";
    138171      this.tabPage1.UseVisualStyleBackColor = true;
     172      //
     173      // populateButton
     174      //
     175      this.populateButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     176      this.populateButton.Location = new System.Drawing.Point(168, 380);
     177      this.populateButton.Name = "populateButton";
     178      this.populateButton.Size = new System.Drawing.Size(75, 23);
     179      this.populateButton.TabIndex = 1;
     180      this.populateButton.Text = "&Populate";
     181      this.populateButton.UseVisualStyleBackColor = true;
     182      this.populateButton.Click += new System.EventHandler(this.populateButton_Click);
    139183      //
    140184      // tabPage2
     
    168212      this.dataGridView2.TabIndex = 0;
    169213      //
    170       // nameDataGridViewTextBoxColumn
    171       //
    172       this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
    173       this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
    174       this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
    175       this.nameDataGridViewTextBoxColumn.Width = 60;
    176       //
    177       // descriptionDataGridViewTextBoxColumn
    178       //
    179       this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
    180       this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";
    181       this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
    182       this.descriptionDataGridViewTextBoxColumn.Width = 85;
    183       //
    184       // algorithmClassBindingSource
    185       //
    186       this.algorithmClassBindingSource.DataSource = typeof(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass);
    187       this.algorithmClassBindingSource.Sort = "";
    188       //
    189214      // idDataGridViewTextBoxColumn
    190215      //
     
    247272      this.Size = new System.Drawing.Size(727, 435);
    248273      ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     274      ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).EndInit();
    249275      this.tabControl1.ResumeLayout(false);
    250276      this.tabPage1.ResumeLayout(false);
    251277      this.tabPage2.ResumeLayout(false);
    252278      ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
    253       ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).EndInit();
    254279      ((System.ComponentModel.ISupportInitialize)(this.algorithmBindingSource)).EndInit();
    255280      this.ResumeLayout(false);
     
    262287    private System.Windows.Forms.Button refreshButton;
    263288    private System.Windows.Forms.Button saveButton;
    264     private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
    265     private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;
    266289    private System.Windows.Forms.BindingSource algorithmClassBindingSource;
    267290    private System.Windows.Forms.TabControl tabControl1;
     
    278301    private System.Windows.Forms.DataGridViewTextBoxColumn platformDataGridViewTextBoxColumn;
    279302    private System.Windows.Forms.BindingSource algorithmBindingSource;
     303    private System.Windows.Forms.Button populateButton;
     304    private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn1;
     305    private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
     306    private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;
    280307
    281308  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.cs

    r4388 r4390  
    2626using System.ComponentModel;
    2727using System.Collections.Generic;
     28using System.Data;
     29using System;
    2830
    2931namespace HeuristicLab.Clients.OKB {
    3032  [View("OKB Administration")]
    3133  public partial class AdministrationView : HeuristicLab.MainForm.WindowsForms.View {
     34    List<AlgorithmClass> data;
     35
    3236    public AdministrationView() {
    3337      InitializeComponent();
     
    3640    private void refreshButton_Click(object sender, System.EventArgs e) {
    3741      IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    38       algorithmClassBindingSource.DataSource = adminService.GetAlgorithmClasses();
     42      data = adminService.GetAlgorithmClasses();
     43      algorithmClassBindingSource.DataSource = data;
    3944    }
    4045
    4146    private void saveButton_Click(object sender, System.EventArgs e) {
    4247      IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    43       adminService.UpdateAlgorithmClasses((List<AlgorithmClass>)algorithmClassBindingSource.DataSource);
    4448    }
    4549
    46     private void dataGridView1_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) {
    47       if (dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection == SortOrder.None) {
    48         dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = SortOrder.Ascending;
    49         dataGridView1.Sort(dataGridView1.Columns[e.ColumnIndex], ListSortDirection.Ascending);
    50       } else if (dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection == SortOrder.Ascending) {
    51         dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = SortOrder.Descending;
    52         dataGridView1.Sort(dataGridView1.Columns[e.ColumnIndex], ListSortDirection.Descending);
    53       } else {
    54         dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = SortOrder.Ascending;
    55         dataGridView1.Sort(dataGridView1.Columns[e.ColumnIndex], ListSortDirection.Ascending);
    56       }
     50    private void populateButton_Click(object sender, System.EventArgs e) {
     51      IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
     52      for (int i = 0; i < 100; i++)
     53        adminService.AddAlgorithmClass(new AlgorithmClass() { Name = Guid.NewGuid().ToString() });
     54    }
     55
     56    private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) {
     57      IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
     58      adminService.UpdateAlgorithmClass(data[e.RowIndex]);
     59    }
     60
     61    private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e) {
     62      IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
     63      adminService.AddAlgorithmClass(new AlgorithmClass() {
     64        Name = (string)e.Row.Cells["Name"].Value,
     65        Description = (string)e.Row.Cells["Description"].Value
     66      });
     67    }
     68
     69    private void dataGridView1_UserDeletedRow(object sender, DataGridViewRowEventArgs e) {
     70      IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
     71      adminService.DeleteAlgorithmClass((long)e.Row.Cells["Id"].Value);
    5772    }
    5873  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.resx

    r4388 r4390  
    124124    <value>228, 17</value>
    125125  </metadata>
     126  <metadata name="algorithmBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     127    <value>228, 17</value>
     128  </metadata>
    126129</root>
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/Reference.cs

    r4388 r4390  
    50075007        void UpdateCompleteProblem(HeuristicLab.Clients.OKB.OKBAdmin.Problem problem);
    50085008       
     5009        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/AddAlgorithmClass", ReplyAction="http://tempuri.org/IAdminService/AddAlgorithmClassResponse")]
     5010        void AddAlgorithmClass(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass algorithmClass);
     5011       
    50095012        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/GetAlgorithmClasses", ReplyAction="http://tempuri.org/IAdminService/GetAlgorithmClassesResponse")]
    50105013        System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> GetAlgorithmClasses();
     
    50135016        void UpdateAlgorithmClass(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass algorithmClass);
    50145017       
    5015         [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/UpdateAlgorithmClasses", ReplyAction="http://tempuri.org/IAdminService/UpdateAlgorithmClassesResponse")]
    5016         void UpdateAlgorithmClasses(System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> algorithmClasses);
     5018        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/DeleteAlgorithmClass", ReplyAction="http://tempuri.org/IAdminService/DeleteAlgorithmClassResponse")]
     5019        void DeleteAlgorithmClass(long algorithmClassId);
    50175020    }
    50185021   
     
    50645067        }
    50655068       
     5069        public void AddAlgorithmClass(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass algorithmClass) {
     5070            base.Channel.AddAlgorithmClass(algorithmClass);
     5071        }
     5072       
    50665073        public System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> GetAlgorithmClasses() {
    50675074            return base.Channel.GetAlgorithmClasses();
     
    50725079        }
    50735080       
    5074         public void UpdateAlgorithmClasses(System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> algorithmClasses) {
    5075             base.Channel.UpdateAlgorithmClasses(algorithmClasses);
     5081        public void DeleteAlgorithmClass(long algorithmClassId) {
     5082            base.Channel.DeleteAlgorithmClass(algorithmClassId);
    50765083        }
    50775084    }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/configuration.svcinfo

    r4388 r4390  
    66  </bindings>
    77  <endpoints>
    8     <endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://localhost:8733/OKB-3.3/AdminService&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IAdminService&quot; contract=&quot;OKBAdmin.IAdminService&quot; name=&quot;NetTcpBinding_IAdminService&quot;&gt;&lt;identity&gt;&lt;certificate encodedValue=&quot;AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://localhost:8733/OKB-3.3/AdminService&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IAdminService&quot; contract=&quot;OKBAdmin.IAdminService&quot; name=&quot;NetTcpBinding_IAdminService&quot;&gt;&lt;identity&gt;&lt;certificate encodedValue=&quot;AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" contractName="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService" />
     8    <endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://localhost:8733/OKB-3.3/AdminService&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IAdminService&quot; contract=&quot;OKBAdmin.IAdminService&quot; name=&quot;NetTcpBinding_IAdminService&quot;&gt;&lt;identity&gt;&lt;certificate encodedValue=&quot;AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://localhost:8733/OKB-3.3/AdminService&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IAdminService&quot; contract=&quot;OKBAdmin.IAdminService&quot; name=&quot;NetTcpBinding_IAdminService&quot;&gt;&lt;identity&gt;&lt;certificate encodedValue=&quot;AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" contractName="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService" />
    99  </endpoints>
    1010</configurationSnapshot>
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/configuration91.svcinfo

    r4388 r4390  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="digIaTjAqc6HskPS0J94jCaee/o=">
     2<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="4Q9UIc8RISg0ikRDnE1RUiHj51c=">
    33  <bindingConfigurations>
    44    <bindingConfiguration bindingType="netTcpBinding" name="NetTcpBinding_IAdminService">
     
    173173        </property>
    174174        <property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    175           <serializedValue>AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=</serializedValue>
     175          <serializedValue>AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=</serializedValue>
    176176        </property>
    177177        <property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/service.wsdl

    r4388 r4390  
    297297    </wsp:ExactlyOne>
    298298  </wsp:Policy>
     299  <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_AddAlgorithmClass_Input_policy">
     300    <wsp:ExactlyOne>
     301      <wsp:All>
     302        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
     303          <sp:Body />
     304          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />
     305          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />
     306          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />
     307          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />
     308          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />
     309          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />
     310          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />
     311        </sp:SignedParts>
     312        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
     313          <sp:Body />
     314        </sp:EncryptedParts>
     315      </wsp:All>
     316    </wsp:ExactlyOne>
     317  </wsp:Policy>
     318  <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_AddAlgorithmClass_output_policy">
     319    <wsp:ExactlyOne>
     320      <wsp:All>
     321        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
     322          <sp:Body />
     323          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />
     324          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />
     325          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />
     326          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />
     327          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />
     328          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />
     329          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />
     330        </sp:SignedParts>
     331        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
     332          <sp:Body />
     333        </sp:EncryptedParts>
     334      </wsp:All>
     335    </wsp:ExactlyOne>
     336  </wsp:Policy>
    299337  <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_GetAlgorithmClasses_Input_policy">
    300338    <wsp:ExactlyOne>
     
    373411    </wsp:ExactlyOne>
    374412  </wsp:Policy>
    375   <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_UpdateAlgorithmClasses_Input_policy">
    376     <wsp:ExactlyOne>
    377       <wsp:All>
    378         <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
    379           <sp:Body />
    380           <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />
    381           <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />
    382           <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />
    383           <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />
    384           <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />
    385           <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />
    386           <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />
    387         </sp:SignedParts>
    388         <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
    389           <sp:Body />
    390         </sp:EncryptedParts>
    391       </wsp:All>
    392     </wsp:ExactlyOne>
    393   </wsp:Policy>
    394   <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_UpdateAlgorithmClasses_output_policy">
     413  <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_DeleteAlgorithmClass_Input_policy">
     414    <wsp:ExactlyOne>
     415      <wsp:All>
     416        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
     417          <sp:Body />
     418          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />
     419          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />
     420          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />
     421          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />
     422          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />
     423          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />
     424          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />
     425        </sp:SignedParts>
     426        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
     427          <sp:Body />
     428        </sp:EncryptedParts>
     429      </wsp:All>
     430    </wsp:ExactlyOne>
     431  </wsp:Policy>
     432  <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_DeleteAlgorithmClass_output_policy">
    395433    <wsp:ExactlyOne>
    396434      <wsp:All>
     
    449487    <wsdl:part name="parameters" element="tns:UpdateCompleteProblemResponse" />
    450488  </wsdl:message>
     489  <wsdl:message name="IAdminService_AddAlgorithmClass_InputMessage">
     490    <wsdl:part name="parameters" element="tns:AddAlgorithmClass" />
     491  </wsdl:message>
     492  <wsdl:message name="IAdminService_AddAlgorithmClass_OutputMessage">
     493    <wsdl:part name="parameters" element="tns:AddAlgorithmClassResponse" />
     494  </wsdl:message>
    451495  <wsdl:message name="IAdminService_GetAlgorithmClasses_InputMessage">
    452496    <wsdl:part name="parameters" element="tns:GetAlgorithmClasses" />
     
    461505    <wsdl:part name="parameters" element="tns:UpdateAlgorithmClassResponse" />
    462506  </wsdl:message>
    463   <wsdl:message name="IAdminService_UpdateAlgorithmClasses_InputMessage">
    464     <wsdl:part name="parameters" element="tns:UpdateAlgorithmClasses" />
    465   </wsdl:message>
    466   <wsdl:message name="IAdminService_UpdateAlgorithmClasses_OutputMessage">
    467     <wsdl:part name="parameters" element="tns:UpdateAlgorithmClassesResponse" />
     507  <wsdl:message name="IAdminService_DeleteAlgorithmClass_InputMessage">
     508    <wsdl:part name="parameters" element="tns:DeleteAlgorithmClass" />
     509  </wsdl:message>
     510  <wsdl:message name="IAdminService_DeleteAlgorithmClass_OutputMessage">
     511    <wsdl:part name="parameters" element="tns:DeleteAlgorithmClassResponse" />
    468512  </wsdl:message>
    469513  <wsdl:portType name="IAdminService">
     
    488532      <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/UpdateCompleteProblemResponse" message="tns:IAdminService_UpdateCompleteProblem_OutputMessage" />
    489533    </wsdl:operation>
     534    <wsdl:operation name="AddAlgorithmClass">
     535      <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/AddAlgorithmClass" message="tns:IAdminService_AddAlgorithmClass_InputMessage" />
     536      <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/AddAlgorithmClassResponse" message="tns:IAdminService_AddAlgorithmClass_OutputMessage" />
     537    </wsdl:operation>
    490538    <wsdl:operation name="GetAlgorithmClasses">
    491539      <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/GetAlgorithmClasses" message="tns:IAdminService_GetAlgorithmClasses_InputMessage" />
     
    496544      <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/UpdateAlgorithmClassResponse" message="tns:IAdminService_UpdateAlgorithmClass_OutputMessage" />
    497545    </wsdl:operation>
    498     <wsdl:operation name="UpdateAlgorithmClasses">
    499       <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/UpdateAlgorithmClasses" message="tns:IAdminService_UpdateAlgorithmClasses_InputMessage" />
    500       <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/UpdateAlgorithmClassesResponse" message="tns:IAdminService_UpdateAlgorithmClasses_OutputMessage" />
     546    <wsdl:operation name="DeleteAlgorithmClass">
     547      <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/DeleteAlgorithmClass" message="tns:IAdminService_DeleteAlgorithmClass_InputMessage" />
     548      <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/DeleteAlgorithmClassResponse" message="tns:IAdminService_DeleteAlgorithmClass_OutputMessage" />
    501549    </wsdl:operation>
    502550  </wsdl:portType>
     
    559607      </wsdl:output>
    560608    </wsdl:operation>
     609    <wsdl:operation name="AddAlgorithmClass">
     610      <soap12:operation soapAction="http://tempuri.org/IAdminService/AddAlgorithmClass" style="document" />
     611      <wsdl:input>
     612        <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_AddAlgorithmClass_Input_policy" />
     613        <soap12:body use="literal" />
     614      </wsdl:input>
     615      <wsdl:output>
     616        <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_AddAlgorithmClass_output_policy" />
     617        <soap12:body use="literal" />
     618      </wsdl:output>
     619    </wsdl:operation>
    561620    <wsdl:operation name="GetAlgorithmClasses">
    562621      <soap12:operation soapAction="http://tempuri.org/IAdminService/GetAlgorithmClasses" style="document" />
     
    581640      </wsdl:output>
    582641    </wsdl:operation>
    583     <wsdl:operation name="UpdateAlgorithmClasses">
    584       <soap12:operation soapAction="http://tempuri.org/IAdminService/UpdateAlgorithmClasses" style="document" />
    585       <wsdl:input>
    586         <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_UpdateAlgorithmClasses_Input_policy" />
    587         <soap12:body use="literal" />
    588       </wsdl:input>
    589       <wsdl:output>
    590         <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_UpdateAlgorithmClasses_output_policy" />
     642    <wsdl:operation name="DeleteAlgorithmClass">
     643      <soap12:operation soapAction="http://tempuri.org/IAdminService/DeleteAlgorithmClass" style="document" />
     644      <wsdl:input>
     645        <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_DeleteAlgorithmClass_Input_policy" />
     646        <soap12:body use="literal" />
     647      </wsdl:input>
     648      <wsdl:output>
     649        <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_DeleteAlgorithmClass_output_policy" />
    591650        <soap12:body use="literal" />
    592651      </wsdl:output>
     
    601660          <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
    602661            <X509Data>
    603               <X509Certificate>MIIB7jCCAVugAwIBAgIQHRM04rGn9rBGca6mGX2LQjAJBgUrDgMCHQUAMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDA4MjAyMjMyMDhaFw0zOTEyMzEyMzU5NTlaMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAz5Hwki0V/P+BfmeMrON8meDDM4weOHDGpD8+Da4vphAeZ9s/9BhWrQmM5CNn/554lqlawWIx5I7GcthGYqB7uMGvfXNVxBiZxTQ7jZ+hEpHxMochePjqihp6SvRza8OzljLqp9qDodIhXfX5ehUwJvmNKdyz/t/AbmM6Qp4qqncCAwEAAaNJMEcwRQYDVR0BBD4wPIAQ74vEYIqPb/pq+fE4gL6heaEWMBQxEjAQBgNVBAMTCWxvY2FsaG9zdIIQHRM04rGn9rBGca6mGX2LQjAJBgUrDgMCHQUAA4GBADXRpbxynlKbXzbvSNMIAOao5lQfiQ5XTgJK3zNEfuCHFUNOsuSuz9O7sUAFe/q4Zwy4C8hSbp1B4M2347Ixcu748LaInlwOY9AGJZuAB0e3R7eB1YJCDGLfFzgqjMOY4xV/dcSfPbQu5jPc2EePDfU+UEnjBqPn/ic8m3i1sZzb</X509Certificate>
     662              <X509Certificate>MIIB7jCCAVugAwIBAgIQSA/NgVsCBrNLaqTPr3nVJDAJBgUrDgMCHQUAMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDA4MjQxMTE2MTlaFw0zOTEyMzEyMzU5NTlaMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1ipeNqaz1pWNm660HWg9YUOWDJQcftilQoVVuQOL/hcL+0bIm4RyomaqQqnBo8+eicitvBR2tnvavyNBEVA98B6dIOzMw/xsqItX2Ph1UTEphNvGo8v9TwgibivlHdDi3sAfeZAHWWTwJ9a6Doq1iBny1YJmqAcvx3u9Al9VrsECAwEAAaNJMEcwRQYDVR0BBD4wPIAQxLjporYErnIwWYkc2YnPpKEWMBQxEjAQBgNVBAMTCWxvY2FsaG9zdIIQSA/NgVsCBrNLaqTPr3nVJDAJBgUrDgMCHQUAA4GBAENEPa8/QTKur4A7dfrQ5MlcUmg/U7T9OKMZHYrzRulXcy0OJv0MwIcQL0+hahZkseJtCnbX1Xb4la8bvL29CWOHYoWIgmfH8ReNTGzg7U6SoTHqTo/tdJBe5M3FWoFm0pSzDZbFDsyc5WgaKv3AwuO0Mhd77eMbhaE0itw1ILZ5</X509Certificate>
    604663            </X509Data>
    605664          </KeyInfo>
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/service.xsd

    r4388 r4390  
    6666    </xs:complexType>
    6767  </xs:element>
     68  <xs:element name="AddAlgorithmClass">
     69    <xs:complexType>
     70      <xs:sequence>
     71        <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClass" nillable="true" type="q6:AlgorithmClass" />
     72      </xs:sequence>
     73    </xs:complexType>
     74  </xs:element>
     75  <xs:element name="AddAlgorithmClassResponse">
     76    <xs:complexType>
     77      <xs:sequence />
     78    </xs:complexType>
     79  </xs:element>
    6880  <xs:element name="GetAlgorithmClasses">
    6981    <xs:complexType>
     
    7486    <xs:complexType>
    7587      <xs:sequence>
    76         <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="GetAlgorithmClassesResult" nillable="true" type="q6:ArrayOfAlgorithmClass" />
     88        <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="GetAlgorithmClassesResult" nillable="true" type="q7:ArrayOfAlgorithmClass" />
    7789      </xs:sequence>
    7890    </xs:complexType>
     
    8193    <xs:complexType>
    8294      <xs:sequence>
    83         <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClass" nillable="true" type="q7:AlgorithmClass" />
     95        <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClass" nillable="true" type="q8:AlgorithmClass" />
    8496      </xs:sequence>
    8597    </xs:complexType>
     
    90102    </xs:complexType>
    91103  </xs:element>
    92   <xs:element name="UpdateAlgorithmClasses">
     104  <xs:element name="DeleteAlgorithmClass">
    93105    <xs:complexType>
    94106      <xs:sequence>
    95         <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClasses" nillable="true" type="q8:ArrayOfAlgorithmClass" />
     107        <xs:element minOccurs="0" name="algorithmClassId" type="xs:long" />
    96108      </xs:sequence>
    97109    </xs:complexType>
    98110  </xs:element>
    99   <xs:element name="UpdateAlgorithmClassesResponse">
     111  <xs:element name="DeleteAlgorithmClassResponse">
    100112    <xs:complexType>
    101113      <xs:sequence />
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/app.config

    r4388 r4390  
    2626                contract="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService">
    2727                <identity>
    28                     <certificate encodedValue="AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" />
     28                    <certificate encodedValue="AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=" />
    2929                </identity>
    3030            </endpoint>
  • trunk/sources/HeuristicLab.Services.OKB/3.3/AdminService.cs

    r4388 r4390  
    209209
    210210
     211    public void AddAlgorithmClass(AlgorithmClass algorithmClass) {
     212      using (OKBDataContext okb = new OKBDataContext()) {
     213        okb.AlgorithmClasses.InsertOnSubmit(new AlgorithmClass() { Name = algorithmClass.Name, Description = algorithmClass.Description });
     214        okb.SubmitChanges();
     215      }
     216    }
     217
    211218    public AlgorithmClass[] GetAlgorithmClasses() {
    212219      using (OKBDataContext okb = new OKBDataContext()) {
     
    217224    public void UpdateAlgorithmClass(AlgorithmClass algorithmClass) {
    218225      using (OKBDataContext okb = new OKBDataContext()) {
    219         okb.AlgorithmClasses.Attach(algorithmClass);
    220         okb.SubmitChanges();
    221       }
    222     }
    223 
    224     public void UpdateAlgorithmClasses(AlgorithmClass[] algorithmClasses) {
    225       using (OKBDataContext okb = new OKBDataContext()) {
    226         foreach (AlgorithmClass a in algorithmClasses) {
    227           AlgorithmClass original = okb.AlgorithmClasses.FirstOrDefault(x => x.Id == a.Id);
    228           if (original != null) {
    229             original.Name = a.Name;
    230             original.Description = a.Description;
    231           } else {
    232             okb.AlgorithmClasses.InsertOnSubmit(a);
    233           }
    234         }
     226        AlgorithmClass original = okb.AlgorithmClasses.First(a => a.Id == algorithmClass.Id);
     227        original.Name = algorithmClass.Name;
     228        original.Description = algorithmClass.Description;
     229        okb.SubmitChanges();
     230      }
     231    }
     232
     233    public void DeleteAlgorithmClass(long algorithmClassId) {
     234      using (OKBDataContext okb = new OKBDataContext()) {
     235        okb.AlgorithmClasses.DeleteOnSubmit(okb.AlgorithmClasses.First(a => a.Id == algorithmClassId));
    235236        okb.SubmitChanges();
    236237      }
  • trunk/sources/HeuristicLab.Services.OKB/3.3/Interfaces/IAdminService.cs

    r4388 r4390  
    112112
    113113    [OperationContract]
     114    void AddAlgorithmClass(AlgorithmClass algorithmClass);
     115
     116    [OperationContract]
    114117    AlgorithmClass[] GetAlgorithmClasses();
    115118
     
    118121
    119122    [OperationContract]
    120     void UpdateAlgorithmClasses(AlgorithmClass[] algorithmClasses);
    121 
     123    void DeleteAlgorithmClass(long algorithmClassId);
    122124
    123125  }
Note: See TracChangeset for help on using the changeset viewer.