Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3022


Ignore:
Timestamp:
03/14/10 20:59:36 (15 years ago)
Author:
kgrading
Message:

added the calendar in the dal and the server console. Works on every Resource (Group / Client) (#908)

Location:
trunk/sources
Files:
11 added
2 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Common/3.2/HeuristicLab.Hive.Client.Common-3.2.csproj

    r2006 r3022  
    6767  </PropertyGroup>
    6868  <ItemGroup>
    69     <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    70       <SpecificVersion>False</SpecificVersion>
    71       <HintPath>.\Calendar.DayView.dll</HintPath>
    72     </Reference>
    7369    <Reference Include="System" />
    7470    <Reference Include="System.Core">
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/HeuristicLab.Hive.Client.Console-3.2.csproj

    r2069 r3022  
    7070    <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    7171      <SpecificVersion>False</SpecificVersion>
    72       <HintPath>..\..\HeuristicLab.Hive.Client.Common\3.2\Calendar.DayView.dll</HintPath>
     72      <HintPath>..\..\HeuristicLab.Hive.Contracts\3.2\Calendar.DayView.dll</HintPath>
    7373    </Reference>
    7474    <Reference Include="System" />
     
    144144      <DependentUpon>Recurrence.cs</DependentUpon>
    145145    </Compile>
    146     <Compile Include="RecurrentEvent.cs" />
    147146    <Compile Include="Service References\ClientService\Reference.cs">
    148147      <AutoGen>True</AutoGen>
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs

    r3011 r3022  
    104104        DetermineAction(container);
    105105      }
    106       Console.WriteLine("ended!");
     106      System.Console.WriteLine("ended");
    107107    }
    108108
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/HeuristicLab.Hive.Client.Core-3.2.csproj

    r2009 r3022  
    6868    <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    6969      <SpecificVersion>False</SpecificVersion>
    70       <HintPath>..\..\HeuristicLab.Hive.Client.Common\3.2\Calendar.DayView.dll</HintPath>
     70      <HintPath>..\..\HeuristicLab.Hive.Contracts\3.2\Calendar.DayView.dll</HintPath>
    7171    </Reference>
    7272    <Reference Include="System" />
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/HeuristicLab.Hive.Contracts-3.2.csproj

    r3011 r3022  
    8787  <ItemGroup>
    8888    <Compile Include="ApplicationConstants.cs" />
     89    <Compile Include="BusinessObjects\AppointmentDto.cs" />
    8990    <Compile Include="BusinessObjects\CachedHivePluginInfoDto.cs" />
    9091    <Compile Include="BusinessObjects\ClientGroupDto.cs" />
     
    100101    <Compile Include="BusinessObjects\ClientDto.cs" />
    101102    <Compile Include="BusinessObjects\ClientConfigDto.cs" />
     103    <Compile Include="RecurrentEvent.cs" />
    102104    <Compile Include="ResponseSerializedJob.cs" />
    103105    <Compile Include="MultiStream.cs" />
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/Interfaces/IClientManager.cs

    r3011 r3022  
    5555    [OperationContract]
    5656    ResponseList<UpTimeStatisticsDto> GetAllUpTimeStatistics();
     57    [OperationContract]
     58    ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid);
     59
     60    [OperationContract]
     61    Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments);
    5762  }
    5863}
  • trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HeuristicLab.Hive.Server.Console-3.2.csproj

    r2065 r3022  
    6868  </PropertyGroup>
    6969  <ItemGroup>
     70    <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     71      <SpecificVersion>False</SpecificVersion>
     72      <HintPath>..\..\HeuristicLab.Hive.Contracts\3.2\Calendar.DayView.dll</HintPath>
     73    </Reference>
    7074    <Reference Include="System" />
    7175    <Reference Include="System.Core">
     
    107111      <DependentUpon>AddProject.cs</DependentUpon>
    108112    </Compile>
     113    <Compile Include="CgCalendar.cs">
     114      <SubType>Form</SubType>
     115    </Compile>
     116    <Compile Include="CgCalendar.Designer.cs">
     117      <DependentUpon>CgCalendar.cs</DependentUpon>
     118    </Compile>
    109119    <Compile Include="Changes.cs" />
    110120    <Compile Include="HiveServerConsole.cs">
     
    139149      <DependentUpon>AddProject.cs</DependentUpon>
    140150    </EmbeddedResource>
     151    <EmbeddedResource Include="CgCalendar.resx">
     152      <DependentUpon>CgCalendar.cs</DependentUpon>
     153    </EmbeddedResource>
    141154    <EmbeddedResource Include="HiveServerConsole.resx">
    142155      <DependentUpon>HiveServerConsole.cs</DependentUpon>
     
    153166      <Generator>ResXFileCodeGenerator</Generator>
    154167      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     168      <SubType>Designer</SubType>
     169    </EmbeddedResource>
     170    <EmbeddedResource Include="Recurrence.resx">
     171      <DependentUpon>Recurrence.cs</DependentUpon>
    155172      <SubType>Designer</SubType>
    156173    </EmbeddedResource>
     
    170187      <DependentUpon>Settings.settings</DependentUpon>
    171188      <DesignTimeSharedInput>True</DesignTimeSharedInput>
     189    </Compile>
     190    <Compile Include="Recurrence.cs">
     191      <SubType>Form</SubType>
     192    </Compile>
     193    <Compile Include="Recurrence.Designer.cs">
     194      <DependentUpon>Recurrence.cs</DependentUpon>
    172195    </Compile>
    173196    <Compile Include="ServiceLocator.cs" />
  • trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.Designer.cs

    r2007 r3022  
    8888      this.tcManagementConsole = new System.Windows.Forms.TabControl();
    8989      this.checkBox1 = new System.Windows.Forms.CheckBox();
     90      this.menuItemOpenCalendar = new System.Windows.Forms.ToolStripMenuItem();
    9091      this.menuStrip1.SuspendLayout();
    9192      this.plClientDetails.SuspendLayout();
     
    130131            this.closeToolStripMenuItem});
    131132      this.informationToolStripMenuItem.Name = "informationToolStripMenuItem";
    132       this.informationToolStripMenuItem.Size = new System.Drawing.Size(81, 20);
     133      this.informationToolStripMenuItem.Size = new System.Drawing.Size(90, 20);
    133134      this.informationToolStripMenuItem.Text = "Management";
    134135      //
     
    137138      this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
    138139      this.refreshToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R)));
    139       this.refreshToolStripMenuItem.Size = new System.Drawing.Size(162, 22);
     140      this.refreshToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
    140141      this.refreshToolStripMenuItem.Text = "Refresh";
    141142      this.refreshToolStripMenuItem.Click += new System.EventHandler(this.Refresh_Click);
     
    144145      //
    145146      this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
    146       this.closeToolStripMenuItem.Size = new System.Drawing.Size(162, 22);
     147      this.closeToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
    147148      this.closeToolStripMenuItem.Text = "Close";
    148149      this.closeToolStripMenuItem.Click += new System.EventHandler(this.Close_Click);
     
    155156            this.projectToolStripMenuItem});
    156157      this.addToolStripMenuItem.Name = "addToolStripMenuItem";
    157       this.addToolStripMenuItem.Size = new System.Drawing.Size(38, 20);
     158      this.addToolStripMenuItem.Size = new System.Drawing.Size(41, 20);
    158159      this.addToolStripMenuItem.Text = "Add";
    159160      //
     
    162163      this.jobToolStripMenuItem.Name = "jobToolStripMenuItem";
    163164      this.jobToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.J)));
    164       this.jobToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
     165      this.jobToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    165166      this.jobToolStripMenuItem.Text = "Job";
    166167      this.jobToolStripMenuItem.Click += new System.EventHandler(this.AddJob_Click);
     
    170171      this.groupToolStripMenuItem.Name = "groupToolStripMenuItem";
    171172      this.groupToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.G)));
    172       this.groupToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
     173      this.groupToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    173174      this.groupToolStripMenuItem.Text = "Group";
    174175      this.groupToolStripMenuItem.Click += new System.EventHandler(this.groupToolStripMenuItem_Click);
     
    178179      this.projectToolStripMenuItem.Name = "projectToolStripMenuItem";
    179180      this.projectToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
    180       this.projectToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
     181      this.projectToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    181182      this.projectToolStripMenuItem.Text = "Project";
    182183      this.projectToolStripMenuItem.Click += new System.EventHandler(this.projectToolStripMenuItem_Click);
     
    189190            this.listToolStripMenuItem});
    190191      this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
    191       this.viewToolStripMenuItem.Size = new System.Drawing.Size(41, 20);
     192      this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
    192193      this.viewToolStripMenuItem.Text = "View";
    193194      //
     
    198199      this.largeIconsToolStripMenuItem.Name = "largeIconsToolStripMenuItem";
    199200      this.largeIconsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D1)));
    200       this.largeIconsToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
     201      this.largeIconsToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
    201202      this.largeIconsToolStripMenuItem.Text = "Large Icons";
    202203      this.largeIconsToolStripMenuItem.Click += new System.EventHandler(this.largeIconsToolStripMenuItem_Click);
     
    206207      this.smallIconsToolStripMenuItem.Name = "smallIconsToolStripMenuItem";
    207208      this.smallIconsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D2)));
    208       this.smallIconsToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
     209      this.smallIconsToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
    209210      this.smallIconsToolStripMenuItem.Text = "Small Icons";
    210211      this.smallIconsToolStripMenuItem.Click += new System.EventHandler(this.smallIconsToolStripMenuItem_Click);
     
    214215      this.listToolStripMenuItem.Name = "listToolStripMenuItem";
    215216      this.listToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D3)));
    216       this.listToolStripMenuItem.Size = new System.Drawing.Size(179, 22);
     217      this.listToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
    217218      this.listToolStripMenuItem.Text = "List";
    218219      this.listToolStripMenuItem.Click += new System.EventHandler(this.listToolStripMenuItem_Click);
     
    547548            this.menuItemGetSnapshot});
    548549      this.contextMenuJob.Name = "contextMenuJob";
    549       this.contextMenuJob.Size = new System.Drawing.Size(151, 48);
     550      this.contextMenuJob.Size = new System.Drawing.Size(145, 48);
    550551      //
    551552      // menuItemAbortJob
    552553      //
    553554      this.menuItemAbortJob.Name = "menuItemAbortJob";
    554       this.menuItemAbortJob.Size = new System.Drawing.Size(150, 22);
     555      this.menuItemAbortJob.Size = new System.Drawing.Size(144, 22);
    555556      this.menuItemAbortJob.Text = "Abort";
    556557      //
     
    558559      //
    559560      this.menuItemGetSnapshot.Name = "menuItemGetSnapshot";
    560       this.menuItemGetSnapshot.Size = new System.Drawing.Size(150, 22);
     561      this.menuItemGetSnapshot.Size = new System.Drawing.Size(144, 22);
    561562      this.menuItemGetSnapshot.Text = "Get Snapshot";
    562563      //
     
    653654      this.contextMenuGroup.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    654655            this.menuItemAddGroup,
    655             this.menuItemDeleteGroup});
     656            this.menuItemDeleteGroup,
     657            this.menuItemOpenCalendar});
    656658      this.contextMenuGroup.Name = "contextMenuJob";
    657       this.contextMenuGroup.Size = new System.Drawing.Size(149, 48);
     659      this.contextMenuGroup.Size = new System.Drawing.Size(154, 92);
    658660      //
    659661      // menuItemAddGroup
    660662      //
    661663      this.menuItemAddGroup.Name = "menuItemAddGroup";
    662       this.menuItemAddGroup.Size = new System.Drawing.Size(148, 22);
     664      this.menuItemAddGroup.Size = new System.Drawing.Size(153, 22);
    663665      this.menuItemAddGroup.Text = "Add Group";
    664666      //
     
    666668      //
    667669      this.menuItemDeleteGroup.Name = "menuItemDeleteGroup";
    668       this.menuItemDeleteGroup.Size = new System.Drawing.Size(148, 22);
     670      this.menuItemDeleteGroup.Size = new System.Drawing.Size(153, 22);
    669671      this.menuItemDeleteGroup.Text = "Delete Group";
    670672      //
     
    703705      this.checkBox1.Text = "checkBox1";
    704706      this.checkBox1.UseVisualStyleBackColor = true;
     707      //
     708      // menuItemOpenCalendar
     709      //
     710      this.menuItemOpenCalendar.Name = "menuItemOpenCalendar";
     711      this.menuItemOpenCalendar.Size = new System.Drawing.Size(153, 22);
     712      this.menuItemOpenCalendar.Text = "Open Calendar";
    705713      //
    706714      // HiveServerManagementConsole
     
    810818    private System.Windows.Forms.ToolStripMenuItem groupToolStripMenuItem;
    811819    private System.Windows.Forms.ToolStripMenuItem projectToolStripMenuItem;
     820    private System.Windows.Forms.ToolStripMenuItem menuItemOpenCalendar;
    812821  }
    813822}
  • trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs

    r3013 r3022  
    129129      };
    130130
     131      menuItemOpenCalendar.Click += (s, e) => {
     132                                      if (tvClientControl.SelectedNode != null) {
     133                                        CgCalendar cal = new CgCalendar(((ClientGroupDto)tvClientControl.SelectedNode.Tag).Id);                                       
     134                                        cal.Show();
     135                                      }
     136                                    };
     137
     138
    131139      // drag item to treeview
    132140      lvClientControl.ItemDrag += delegate(object sender, ItemDragEventArgs e) {
     
    683691          contextMenuGroup.Items.Add(menuItemAddGroup);
    684692          contextMenuGroup.Items.Add(menuItemDeleteGroup);
     693          contextMenuGroup.Items.Add(menuItemOpenCalendar);
    685694        }
    686695      } else {
  • trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.resx

    r2007 r3022  
    129129        LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
    130130        ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABo
    131         FwAAAk1TRnQBSQFMAgEBBAEAAQkBAAEEAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
     131        FwAAAk1TRnQBSQFMAgEBBAEAAQwBAAEMAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
    132132        AwABgAMAAUADAAEBAQABCAYAASAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
    133133        AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
     
    239239        LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
    240240        ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAO
    241         DgAAAk1TRnQBSQFMAgEBAwEAAQQBAAEEAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
     241        DgAAAk1TRnQBSQFMAgEBAwEAAQwBAAEMAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
    242242        AwABgAMAASADAAEBAQABCAYAARAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
    243243        AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
     
    312312    <value>
    313313        iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
    314         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAABcQwAA
    315         XEMBOS4mtwAAA5dJREFUSEullslPU1EUxtVVSyeGoOgWYWViomGB0YUbE7fGxODGuPEfMHFjgpowaDQy
    316         KlAHlKlMKoNQKQomFUShDEKhtLSlkcgkiAMz9POcR1/7HlBotMmX3td77/m9c86953QvgD3ST2qrMo6e
    317         E0iHSftkk8EfvDQ1Quq8fnrRIVvGAFZKiyKGVEsCK/29AvfMypDEa8V9Phsxol3R+EGamEhtVcDQr4N5
    318         LBqW6QPono4JSbyW9/BetsG2SAeF6Pjevj6NJprdUWj7Fo2m0UjUO8NR51O9MwKvXRFocAdkpLFxdEMm
    319         TyRax6LQPh4NE9lgWwSoFwA0iGf3DANa1I6Eo2hAjef9ahQPaFBi1aB0UIMykmFIiwqbFpXDG6omvbDr
    320         8NKhwytSzYgOtfRCJk8Eyvq1YsjiGZDEbvGGwi9qPCPjDPgfiNEdLoYqiQHJGW1KPOlTC9oNUm7TkQes
    321         gCefxi+h2XNc5klmu5K9SGbAzdxPSjzuVe0IMbnPYHLejDXvPNa9S5hdtKBn6hrsP3Ip1MA7zylZuPQW
    322         FQNuCIAcAuh7VEEhH8auCEZ2+rz1nJTl5FF3WACQ3aFEQbdqW0idIxG/lp3ombyFJtcZ1DqOonPiKrxY
    323         lfGaCSBNvN4iAWQRIN8HeCQJ1VNKeoPzNJ2mKCHpRb6TZf1+f4szDKiSnKwCOUAhAIJBpCerxXMec8tD
    324         +Lk8LOjXigO/V5x4M5ogJF6EyACZHQrkEVGElAzEUkhuo3fyDn2nk9LQO5VGITor84TvCIvvSLnkjjCk
    325         oEsSosyPCjwggAiptp3YEoLphS4K1X7/HeFwVdgOCYDtIPmbAbn0gwjZDOCE1tgTwTnhcNXYj8E2o4f5
    326         62X/bd8MkQEyyAMGiJCqocQtHqx7lzGz2IeF1Qlhzj1XLSRdTPxmT2SA++0K5HRuAFiVPsCPJRsm/nTI
    327         YF6swTqdg2Jr5I4lJY/siRct+a5ZgazPSj+kYjARjtlKunjRQuIN1iMwuS5Qks/BMBgbUknJkJSKpBQq
    328         drmdAUhet07w5KEk8cEu4vbFUQ22yYXUX67zCJBNXkg9+RdIiVUNvcXf4eL9DYdLdml/GAr7+DQFwhUq
    329         pJj6SMWQGuVWlViqNxqOr6P5W+ZjqoI1wxoYXRoqE1q/Gmnc6JLLSM+sJrcGdXYNnlC+tm2ZwZr+XWr6
    330         rN2a/65NX/wH4APFUXIucrPgUh6ieC3viZPa4vFfU36gB1Ssto8AAAAASUVORK5CYII=
     314        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAABcQgAA
     315        XEIB62nEUwAAA3hJREFUSEu1ls1PE2EQxj229ouPVNErgZOJicZDjR68mHg1JgYvxov/gIlHxARBoxGU
     316        KlJUVJDypVIQKkXBpIootoC0tLS0pZEIiILfikAfZ5Zuu9sWaDQ2edLt7vvOrzPzzsxuALBBquIeRR7p
     317        CKmQVJSmeC3vyUu0FzNOD3NIFhJYpU8VuGBXpiVeK+6L2sgRQQKAbm4hTZ/pVcA8ooN9Ug/H7GY4Z3PS
     318        Eq/lPbyXbbAttsm2RUB7CT3oDmXj+Ts9uiay0B7IQFtU7YFMPAxmoiMUl5WurRMrsoWz0DuZjb4pPWxk
     319        g20RoF0A0EU+u2d2aWEZz8Adlxq3R9SodWlQ59bg7qgG9SSzR4tGrxZNYytqId3z6XDfr8MDUuu4Dhb6
     320        Q7ZwJupHtGLI8hlQwG7xhpo3atwi4wz4F4g1lCGGqoABhWXPlbgxrBa0HqTBqyMPWHFPXk4dRXd4p8yT
     321        8j4le1HIgCLjSyWuD6nWhNhC+zHz3Y6lyHcsR35h7qcDg+9PwjdvpFADT8J7ZeEyOVQMOCUAKghgGlSt
     322        Cnk2eVwwstbncXiPLCfVzo1xwOV+JaqcqpSQNr8BXxYCGJw5ja7gflj82zEwfQIRLMp43QSQJt7kkAAu
     323        EeBaFFAtCdVNSnpHYB+dpmwh6XeiJ8v94WKSMwxolpysKjlAIQBWg0hPVk/4ED4tePB5YUzQl99+fP0d
     324        wKOJXULiRYgMUN6vQCURRUidK5dCchZDM+fou5RUgqH3JRSiAzJPuEZYXCMNkhphSNVrSYjKXyhwhQAi
     325        pMW7OykEsz9eU6g2xWqEw9Xo3SoAUkGuJQKMdEOEJAI4oa0+AzgnHK5W3w54P5pgf3ssVu2JEBmgjDxg
     326        gAhp9hiSPFiOLODjz2H8WJwWnoU+tQhJFxOf6IkMcLFPgYqBFQCrKQqY/+XF9Ld+GSyCJbhnK1Drzlqz
     327        pVSSPbHQCs/bFbj0ShmDNI4a4J9rosLTC4k3u7fBFjxMST4I82huWi2lTNIqCoqp2RkH4pBKp07w5Kok
     328        8asVYurmqAbb5EYaa9eVBLhMXkg9+RtInVsNkyM24fJjA4db9t2RjagZ5tMUD1e6kFqaI40eNRrcKrFV
     329        rwycxJF5nbpg65gG1qCG2oQ2pk667gzKZaXfrK6QBm0+DW5QvlKOzCgkaeifp6HPWm/4rzv0/+dryx8H
     330        ysmLkjulowAAAABJRU5ErkJggg==
    331331</value>
    332332  </data>
     
    342342        LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
    343343        ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABy
    344         DAAAAk1TRnQBSQFMAgEBBAEAAQkBAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
     344        DAAAAk1TRnQBSQFMAgEBBAEAAQwBAAEMAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
    345345        AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
    346346        AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
     
    398398</value>
    399399  </data>
    400   <metadata name="updaterWoker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    401     <value>388, 41</value>
    402   </metadata>
    403400  <metadata name="contextMenuJob.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    404401    <value>246, 40</value>
     
    412409        LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
    413410        ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABq
    414         CQAAAk1TRnQBSQFMAgEBAwEAAQQBAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
     411        CQAAAk1TRnQBSQFMAgEBAwEAAQwBAAEMAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
    415412        AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
    416413        AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
     
    455452</value>
    456453  </data>
     454  <metadata name="updaterWoker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     455    <value>388, 41</value>
     456  </metadata>
    457457</root>
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientManager.cs

    r3011 r3022  
    11#region License Information
     2
    23/* HeuristicLab
    34 * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     
    1819 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
    1920 */
     21
    2022#endregion
    2123
     
    3335
    3436namespace HeuristicLab.Hive.Server.Core {
    35   class ClientManager: IClientManager {
    36    
    37     //ISessionFactory factory;
    38     List<ClientGroup> clientGroups;
     37  internal class ClientManager : IClientManager {
     38    private List<ClientGroup> clientGroups;
    3939
    4040    public ClientManager() {
    41       //factory = ServiceLocator.GetSessionFactory();
    42      
    4341      clientGroups = new List<ClientGroup>();
    4442    }
     
    5149    /// <returns></returns>
    5250    public ResponseList<ClientDto> GetAllClients() {
    53       /*ISession session = factory.GetSessionForCurrentThread();
    54 
    55       try {
    56        
    57         IClientAdapter clientAdapter =
    58           session.GetDataAdapter<ClientDto, IClientAdapter>();*/
    59 
    60         ResponseList<ClientDto> response = new ResponseList<ClientDto>();
    61 
    62         response.List = new List<ClientDto>(DaoLocator.ClientDao.FindAll());
    63         response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTS;
    64         response.Success = true;
    65 
    66         return response;
    67       /*}
    68       finally {
    69         if (session != null)
    70           session.EndSession();
    71       }*/
     51      ResponseList<ClientDto> response = new ResponseList<ClientDto>();
     52
     53      response.List = new List<ClientDto>(DaoLocator.ClientDao.FindAll());
     54      response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTS;
     55      response.Success = true;
     56
     57      return response;
    7258    }
    7359
     
    7763    /// <returns></returns>
    7864    public ResponseList<ClientGroup> GetAllClientGroups() {
    79       /*ISession session = factory.GetSessionForCurrentThread();
    80 
    81       try {
    82         IClientGroupAdapter clientGroupAdapter =
    83           session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();
    84         IClientAdapter clientAdapter =
    85           session.GetDataAdapter<ClientDto, IClientAdapter>();*/
    86         ResponseList<ClientGroup> response = new ResponseList<ClientGroup>();
    87 
    88         List<ClientGroup> allClientGroups = new List<ClientGroup>(DaoLocator.ClientGroupDao.FindAllWithSubGroupsAndClients());
    89         ClientGroup emptyClientGroup = new ClientGroup();
    90         IEnumerable<ClientDto> groupLessClients = DaoLocator.ClientDao.FindAllClientsWithoutGroup();
    91         if (groupLessClients != null) {
    92           foreach (ClientDto currClient in groupLessClients) {
    93             emptyClientGroup.Resources.Add(currClient);
    94           }
     65      ResponseList<ClientGroup> response = new ResponseList<ClientGroup>();
     66
     67      List<ClientGroup> allClientGroups =
     68        new List<ClientGroup>(DaoLocator.ClientGroupDao.FindAllWithSubGroupsAndClients());
     69      ClientGroup emptyClientGroup = new ClientGroup();
     70      IEnumerable<ClientDto> groupLessClients = DaoLocator.ClientDao.FindAllClientsWithoutGroup();
     71      if (groupLessClients != null) {
     72        foreach (ClientDto currClient in groupLessClients) {
     73          emptyClientGroup.Resources.Add(currClient);
    9574        }
    96         emptyClientGroup.Id = Guid.Empty;
    97         allClientGroups.Add(emptyClientGroup);
    98 
    99         response.List = allClientGroups;
    100         response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS;
    101         response.Success = true;
    102 
    103         return response;
    104    /*   }
    105       finally {
    106         if (session != null)
    107           session.EndSession();
    108       }*/
     75      }
     76      emptyClientGroup.Id = Guid.Empty;
     77      allClientGroups.Add(emptyClientGroup);
     78
     79      response.List = allClientGroups;
     80      response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS;
     81      response.Success = true;
     82
     83      return response;
    10984    }
    11085
     
    12196    /// <returns></returns>
    12297    public ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup) {
    123       /*ISession session = factory.GetSessionForCurrentThread();
    124 
    125       try {
    126         IClientGroupAdapter clientGroupAdapter =
    127           session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/
    128 
    129         ResponseObject<ClientGroup> response = new ResponseObject<ClientGroup>();
    130 
    131         if (clientGroup.Id != Guid.Empty) {
    132           response.Success = false;
    133           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_ID_MUST_NOT_BE_SET;
    134         } else {
    135           clientGroup = DaoLocator.ClientGroupDao.Insert(clientGroup);
    136           //clientGroupAdapter.Update(clientGroup);
    137           response.Obj = clientGroup;
    138           response.Success = true;
    139           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_ADDED;
    140         }
    141 
    142         return response;
    143       /*}
    144       finally {
    145         if (session != null)
    146           session.EndSession();
    147       } */
     98      ResponseObject<ClientGroup> response = new ResponseObject<ClientGroup>();
     99
     100      if (clientGroup.Id != Guid.Empty) {
     101        response.Success = false;
     102        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_ID_MUST_NOT_BE_SET;
     103      }
     104      else {
     105        clientGroup = DaoLocator.ClientGroupDao.Insert(clientGroup);
     106        //clientGroupAdapter.Update(clientGroup);
     107        response.Obj = clientGroup;
     108        response.Success = true;
     109        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_ADDED;
     110      }
     111
     112      return response;
    148113    }
    149114
     
    155120    /// <returns></returns>
    156121    public Response AddResourceToGroup(Guid clientGroupId, ResourceDto resource) {
    157       /*ISession session = factory.GetSessionForCurrentThread();
    158 
    159       try {
    160         IClientGroupAdapter clientGroupAdapter =
    161           session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/
    162 
    163         Response response = new Response();
    164 
    165         ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId);
    166         if (clientGroup == null) {
    167           response.Success = false;
    168           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST;
     122      Response response = new Response();
     123
     124      ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId);
     125      if (clientGroup == null) {
     126        response.Success = false;
     127        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST;
     128        return response;
     129      }
     130      clientGroup.Resources.Add(resource);
     131      DaoLocator.ClientGroupDao.AddRessourceToClientGroup(resource.Id, clientGroup.Id);
     132      //clientGroupAdapter.Update(clientGroup);
     133
     134      response.Success = true;
     135      response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_ADDED_TO_GROUP;
     136
     137      return response;
     138    }
     139
     140    /// <summary>
     141    /// Remove a resource from a group
     142    /// </summary>
     143    /// <param name="clientGroupId"></param>
     144    /// <param name="resourceId"></param>
     145    /// <returns></returns>
     146    public Response DeleteResourceFromGroup(Guid clientGroupId, Guid resourceId) {
     147      Response response = new Response();
     148
     149      ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId);
     150      if (clientGroup == null) {
     151        response.Success = false;
     152        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST;
     153        return response;
     154      }
     155      foreach (ResourceDto resource in clientGroup.Resources) {
     156        if (resource.Id == resourceId) {
     157          clientGroup.Resources.Remove(resource);
     158          DaoLocator.ClientGroupDao.RemoveRessourceFromClientGroup(resource.Id, clientGroup.Id);
     159          //clientGroupAdapter.Update(clientGroup);
     160          response.Success = true;
     161          response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_REMOVED;
    169162          return response;
    170163        }
    171         clientGroup.Resources.Add(resource);
    172         DaoLocator.ClientGroupDao.AddRessourceToClientGroup(resource.Id, clientGroup.Id);         
    173         //clientGroupAdapter.Update(clientGroup);
    174 
     164      }
     165      response.Success = false;
     166      response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND;
     167
     168      return response;
     169    }
     170
     171    public ResponseObject<List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId) {
     172      ResponseObject<List<ClientGroup>> response = new ResponseObject<List<ClientGroup>>();
     173
     174      ClientDto client = DaoLocator.ClientDao.FindById(resourceId);
     175      if (client != null) {
     176        List<ClientGroup> groupsOfClient = new List<ClientGroup>(DaoLocator.ClientGroupDao.MemberOf(client));
     177        response.Obj = groupsOfClient;
    175178        response.Success = true;
    176         response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_ADDED_TO_GROUP;
    177 
     179        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_GROUPS_OF_CLIENT;
     180      }
     181      else {
     182        response.Obj = new List<ClientGroup>();
     183        response.Success = false;
     184        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND;
     185      }
     186
     187      return response;
     188    }
     189
     190    public Response DeleteClientGroup(Guid clientGroupId) {
     191      Response response = new Response();
     192
     193      ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId);
     194      if (clientGroup == null) {
     195        response.Success = false;
     196        response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST;
    178197        return response;
    179198      }
    180       /*finally {
    181         if (session != null)
    182           session.EndSession();
    183       }
    184     }   */
    185 
    186     /// <summary>
    187     /// Remove a resource from a group
    188     /// </summary>
    189     /// <param name="clientGroupId"></param>
    190     /// <param name="resourceId"></param>
    191     /// <returns></returns>
    192     public Response DeleteResourceFromGroup(Guid clientGroupId, Guid resourceId) {
    193       /*ISession session = factory.GetSessionForCurrentThread();
    194 
    195       try {
    196         IClientGroupAdapter clientGroupAdapter =
    197           session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/
    198 
    199         Response response = new Response();
    200 
    201         ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId);
    202         if (clientGroup == null) {
    203           response.Success = false;
    204           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST;
    205           return response;
    206         }
    207         foreach (ResourceDto resource in clientGroup.Resources) {
    208           if (resource.Id == resourceId) {
    209             clientGroup.Resources.Remove(resource);
    210             DaoLocator.ClientGroupDao.RemoveRessourceFromClientGroup(resource.Id, clientGroup.Id);
    211             //clientGroupAdapter.Update(clientGroup);
    212             response.Success = true;
    213             response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_REMOVED;
    214             return response;
    215           }
    216         }
    217         response.Success = false;
    218         response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND;
    219 
    220         return response;
    221       }
    222       /*finally {
    223         if (session != null)
    224           session.EndSession();
    225       }
    226     }   */
    227 
    228     public ResponseObject<List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId) {
    229       /*ISession session = factory.GetSessionForCurrentThread();
    230 
    231       try {
    232         IClientGroupAdapter clientGroupAdapter =
    233           session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();
    234         IClientAdapter clientAdapter =
    235           session.GetDataAdapter<ClientDto, IClientAdapter>();*/
    236 
    237         ResponseObject<List<ClientGroup>> response = new ResponseObject<List<ClientGroup>>();
    238 
    239         ClientDto client = DaoLocator.ClientDao.FindById(resourceId);
    240         if (client != null) {
    241           List<ClientGroup> groupsOfClient = new List<ClientGroup>(DaoLocator.ClientGroupDao.MemberOf(client));
    242           response.Obj = groupsOfClient;
    243           response.Success = true;
    244           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_GROUPS_OF_CLIENT;
    245         } else {
    246           response.Obj = new List<ClientGroup>();
    247           response.Success = false;
    248           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND;
    249         }
    250 
    251         return response;
    252       }
    253       /*finally {
    254         if (session != null)
    255           session.EndSession();
    256       }
    257     }   */
    258 
    259     public Response DeleteClientGroup(Guid clientGroupId) {
    260       /*ISession session = factory.GetSessionForCurrentThread();
    261 
    262       try {
    263         IClientGroupAdapter clientGroupAdapter =
    264           session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/
    265 
    266         Response response = new Response();
    267 
    268         ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId);
    269         if (clientGroup == null) {
    270           response.Success = false;
    271           response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST;
    272           return response;
    273         }
    274 
    275         DaoLocator.ClientGroupDao.Delete(clientGroup);
    276 
    277         response.Success = true;
    278         response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DELETED;
    279         return response;
    280 
    281       }/* finally {
    282         if (session != null)
    283           session.EndSession();
    284       }
    285     }    */
    286 
     199
     200      DaoLocator.ClientGroupDao.Delete(clientGroup);
     201
     202      response.Success = true;
     203      response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DELETED;
     204      return response;
     205    }
     206
     207    public ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid) {
     208      ResponseList<AppointmentDto> response = new ResponseList<AppointmentDto>();
     209      response.List = new List<AppointmentDto>(DaoLocator.UptimeCalendarDao.GetUptimeCalendarForResource(guid));
     210      response.Success = true;
     211      return response;
     212    }
     213
     214    public Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments) {
     215      DaoLocator.UptimeCalendarDao.SetUptimeCalendarForResource(guid, appointments);
     216      return new Response {Success = true};
     217    }
    287218    #endregion
    288219  }
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/DaoLocator.cs

    r3011 r3022  
    1313    [ThreadStatic] private static IJobDao jobDao;
    1414    [ThreadStatic] private static IPluginInfoDao pluginInfoDao;
     15    [ThreadStatic] private static IUptimeCalendarDao uptimeCalendarDao;
    1516
    1617    public static IClientDao ClientDao {
     
    5455    }
    5556
     57    public static IUptimeCalendarDao UptimeCalendarDao {
     58      get {
     59        if (uptimeCalendarDao == null)
     60          uptimeCalendarDao = new UptimeCalendarDao();
     61        return uptimeCalendarDao;
     62      }
     63    }
     64
    5665    public static void DestroyContext() {
    5766      if (ContextFactory.Context != null) {
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServerConsoleFacade.cs

    r3011 r3022  
    172172    }
    173173
     174    public ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid) {
     175      return clientManager.GetUptimeCalendarForResource(guid);
     176    }
     177
     178    public Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments) {
     179      return clientManager.SetUptimeCalendarForResource(guid, appointments);
     180    }
    174181  }
    175182}
  • trunk/sources/HeuristicLab.Hive.Server.DataAccess/3.2/HeuristicLab.Hive.Server.DataAccess-3.2.csproj

    r3011 r3022  
    8585    <Compile Include="IPluginInfoDao.cs" />
    8686    <Compile Include="IProjectAdapter.cs" />
     87    <Compile Include="IUptimeCalendarDao.cs" />
    8788    <Compile Include="Properties\AssemblyInfo.cs" />
    8889    <Compile Include="HiveServerDataAccessPlugin.cs" />
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/HeuristicLab.Hive.Server.LINQDataAccess-3.2.csproj

    r3011 r3022  
    105105      <DependentUpon>Settings.settings</DependentUpon>
    106106    </Compile>
     107    <Compile Include="UptimeCalendarDao.cs" />
    107108  </ItemGroup>
    108109  <ItemGroup>
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.dbml

    r3018 r3022  
    7777      <Association Name="Resource_ClientGroup_Resource" Member="ClientGroup_Resources" ThisKey="ResourceId" OtherKey="ResourceId" Type="ClientGroup_Resource" />
    7878      <Association Name="Resource_Client" Member="Client" ThisKey="ResourceId" OtherKey="ResourceId" Type="Client" Cardinality="One" />
     79      <Association Name="Resource_UptimeCalendar" Member="UptimeCalendars" ThisKey="ResourceId" OtherKey="ResourceId" Type="UptimeCalendar" />
    7980    </Type>
    8081  </Table>
     
    120121    </Type>
    121122  </Table>
     123  <Table Name="dbo.UptimeCalendar" Member="UptimeCalendars">
     124    <Type Name="UptimeCalendar">
     125      <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
     126      <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
     127      <Column Name="StartDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />
     128      <Column Name="EndDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />
     129      <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
     130      <Column Name="Recurring" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
     131      <Column Name="RecurringId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
     132      <Association Name="Resource_UptimeCalendar" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" />
     133    </Type>
     134  </Table>
    122135</Database>
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.dbml.layout

    r3018 r3022  
    7171      </nodes>
    7272    </associationConnector>
    73     <associationConnector edgePoints="[(4.4375 : 5.75); (4.4375 : 5.1362939453125)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     73    <associationConnector edgePoints="[(4.78125 : 5.75); (4.78125 : 5.1362939453125)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    7474      <AssociationMoniker Name="/HiveDataContext/Resource/Resource_AssignedResource" />
    7575      <nodes>
     
    105105      </nodes>
    106106    </associationConnector>
    107     <associationConnector edgePoints="[(4.5 : 6.94399251302083); (4.5 : 7.625)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     107    <associationConnector edgePoints="[(4.78125 : 6.94399251302083); (4.78125 : 7.625)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    108108      <AssociationMoniker Name="/HiveDataContext/Resource/Resource_Client" />
    109109      <nodes>
     
    125125      </nestedChildShapes>
    126126    </classShape>
    127     <associationConnector edgePoints="[(10 : 6.5); (10 : 4.34375); (5.5 : 4.34375)]" fixedFrom="Algorithm" fixedTo="Algorithm">
     127    <associationConnector edgePoints="[(10 : 6.5); (10 : 4.34375); (5.5 : 4.34375)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    128128      <AssociationMoniker Name="/HiveDataContext/Job/Job_AssignedResource" />
    129129      <nodes>
     
    132132      </nodes>
    133133    </associationConnector>
    134     <associationConnector edgePoints="[(11 : 9.37580485026042); (12 : 9.37580485026042)]" fixedFrom="Algorithm" fixedTo="Algorithm">
     134    <associationConnector edgePoints="[(11 : 9.37580485026042); (12 : 9.37580485026042)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    135135      <AssociationMoniker Name="/HiveDataContext/Job/Job_RequiredPlugin" />
    136136      <nodes>
     
    139139      </nodes>
    140140    </associationConnector>
    141     <associationConnector edgePoints="[(5.625 : 8.91270182291667); (9 : 8.91270182291667)]" fixedFrom="Algorithm" fixedTo="Algorithm">
     141    <associationConnector edgePoints="[(5.625 : 8.91270182291667); (9 : 8.91270182291667)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    142142      <AssociationMoniker Name="/HiveDataContext/Client/Client_Job" />
    143143      <nodes>
     
    153153      </nodes>
    154154    </associationConnector>
    155     <associationConnector edgePoints="[(8.25 : 11.0969962565104); (9.32336288461538 : 11.0969962565104); (9.32336288461538 : 10.0016097005208)]" fixedFrom="Algorithm" fixedTo="Algorithm">
     155    <associationConnector edgePoints="[(8.25 : 11.0969962565104); (9.32336288461538 : 11.0969962565104); (9.32336288461538 : 10.0016097005208)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    156156      <AssociationMoniker Name="/HiveDataContext/Project/Project_Job" />
    157157      <nodes>
     
    160160      </nodes>
    161161    </associationConnector>
     162    <classShape Id="9ae82b5f-6e47-4a8e-8350-f7312381bb3b" absoluteBounds="0.625, 5.125, 2, 2.1554996744791666">
     163      <DataClassMoniker Name="/HiveDataContext/UptimeCalendar" />
     164      <nestedChildShapes>
     165        <elementListCompartment Id="7469c6a3-4cb2-41c2-82b9-6999782218dd" absoluteBounds="0.64000000000000012, 5.585, 1.9700000000000002, 1.5954996744791665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
     166      </nestedChildShapes>
     167    </classShape>
     168    <associationConnector edgePoints="[(3.375 : 6.34699625651042); (2.625 : 6.34699625651042)]" fixedFrom="Algorithm" fixedTo="Algorithm">
     169      <AssociationMoniker Name="/HiveDataContext/Resource/Resource_UptimeCalendar" />
     170      <nodes>
     171        <classShapeMoniker Id="e44e8355-4290-42f0-8b46-4473e91e504b" />
     172        <classShapeMoniker Id="9ae82b5f-6e47-4a8e-8350-f7312381bb3b" />
     173      </nodes>
     174    </associationConnector>
    162175  </nestedChildShapes>
    163176</ordesignerObjectsDiagram>
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.designer.cs

    r3018 r3022  
    6464    partial void UpdateJob(Job instance);
    6565    partial void DeleteJob(Job instance);
     66    partial void InsertUptimeCalendar(UptimeCalendar instance);
     67    partial void UpdateUptimeCalendar(UptimeCalendar instance);
     68    partial void DeleteUptimeCalendar(UptimeCalendar instance);
    6669    #endregion
    6770   
     
    181184      {
    182185        return this.GetTable<Job>();
     186      }
     187    }
     188   
     189    public System.Data.Linq.Table<UptimeCalendar> UptimeCalendars
     190    {
     191      get
     192      {
     193        return this.GetTable<UptimeCalendar>();
    183194      }
    184195    }
     
    604615    }
    605616   
    606     [Column(Storage="_UpDownTimeCalendar", DbType="Xml", CanBeNull=true, UpdateCheck=UpdateCheck.Never)]
     617    [Column(Storage="_UpDownTimeCalendar", DbType="Xml", UpdateCheck=UpdateCheck.Never)]
    607618    public System.Xml.Linq.XElement UpDownTimeCalendar
    608619    {
     
    14991510    private EntityRef<Client> _Client;
    15001511   
     1512    private EntitySet<UptimeCalendar> _UptimeCalendars;
     1513   
    15011514    #region Extensibility Method Definitions
    15021515    partial void OnLoaded();
     
    15151528      this._ClientGroup_Resources = new EntitySet<ClientGroup_Resource>(new Action<ClientGroup_Resource>(this.attach_ClientGroup_Resources), new Action<ClientGroup_Resource>(this.detach_ClientGroup_Resources));
    15161529      this._Client = default(EntityRef<Client>);
     1530      this._UptimeCalendars = new EntitySet<UptimeCalendar>(new Action<UptimeCalendar>(this.attach_UptimeCalendars), new Action<UptimeCalendar>(this.detach_UptimeCalendars));
    15171531      OnCreated();
    15181532    }
     
    16421656    }
    16431657   
     1658    [Association(Name="Resource_UptimeCalendar", Storage="_UptimeCalendars", ThisKey="ResourceId", OtherKey="ResourceId")]
     1659    public EntitySet<UptimeCalendar> UptimeCalendars
     1660    {
     1661      get
     1662      {
     1663        return this._UptimeCalendars;
     1664      }
     1665      set
     1666      {
     1667        this._UptimeCalendars.Assign(value);
     1668      }
     1669    }
     1670   
    16441671    public event PropertyChangingEventHandler PropertyChanging;
    16451672   
     
    16811708   
    16821709    private void detach_ClientGroup_Resources(ClientGroup_Resource entity)
     1710    {
     1711      this.SendPropertyChanging();
     1712      entity.Resource = null;
     1713    }
     1714   
     1715    private void attach_UptimeCalendars(UptimeCalendar entity)
     1716    {
     1717      this.SendPropertyChanging();
     1718      entity.Resource = this;
     1719    }
     1720   
     1721    private void detach_UptimeCalendars(UptimeCalendar entity)
    16831722    {
    16841723      this.SendPropertyChanging();
     
    22782317    }
    22792318   
    2280     [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", CanBeNull=true, UpdateCheck=UpdateCheck.Never)]
     2319    [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", UpdateCheck=UpdateCheck.Never)]
    22812320    public System.Data.Linq.Binary SerializedJob
    22822321    {
     
    26592698    }
    26602699  }
     2700 
     2701  [Table(Name="dbo.UptimeCalendar")]
     2702  public partial class UptimeCalendar : INotifyPropertyChanging, INotifyPropertyChanged
     2703  {
     2704   
     2705    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
     2706   
     2707    private System.Guid _UptimeCalendarId;
     2708   
     2709    private System.Guid _ResourceId;
     2710   
     2711    private System.DateTime _StartDate;
     2712   
     2713    private System.DateTime _EndDate;
     2714   
     2715    private bool _AllDayEvent;
     2716   
     2717    private bool _Recurring;
     2718   
     2719    private System.Guid _RecurringId;
     2720   
     2721    private EntityRef<Resource> _Resource;
     2722   
     2723    #region Extensibility Method Definitions
     2724    partial void OnLoaded();
     2725    partial void OnValidate(System.Data.Linq.ChangeAction action);
     2726    partial void OnCreated();
     2727    partial void OnUptimeCalendarIdChanging(System.Guid value);
     2728    partial void OnUptimeCalendarIdChanged();
     2729    partial void OnResourceIdChanging(System.Guid value);
     2730    partial void OnResourceIdChanged();
     2731    partial void OnStartDateChanging(System.DateTime value);
     2732    partial void OnStartDateChanged();
     2733    partial void OnEndDateChanging(System.DateTime value);
     2734    partial void OnEndDateChanged();
     2735    partial void OnAllDayEventChanging(bool value);
     2736    partial void OnAllDayEventChanged();
     2737    partial void OnRecurringChanging(bool value);
     2738    partial void OnRecurringChanged();
     2739    partial void OnRecurringIdChanging(System.Guid value);
     2740    partial void OnRecurringIdChanged();
     2741    #endregion
     2742   
     2743    public UptimeCalendar()
     2744    {
     2745      this._Resource = default(EntityRef<Resource>);
     2746      OnCreated();
     2747    }
     2748   
     2749    [Column(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)]
     2750    public System.Guid UptimeCalendarId
     2751    {
     2752      get
     2753      {
     2754        return this._UptimeCalendarId;
     2755      }
     2756      set
     2757      {
     2758        if ((this._UptimeCalendarId != value))
     2759        {
     2760          this.OnUptimeCalendarIdChanging(value);
     2761          this.SendPropertyChanging();
     2762          this._UptimeCalendarId = value;
     2763          this.SendPropertyChanged("UptimeCalendarId");
     2764          this.OnUptimeCalendarIdChanged();
     2765        }
     2766      }
     2767    }
     2768   
     2769    [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")]
     2770    public System.Guid ResourceId
     2771    {
     2772      get
     2773      {
     2774        return this._ResourceId;
     2775      }
     2776      set
     2777      {
     2778        if ((this._ResourceId != value))
     2779        {
     2780          if (this._Resource.HasLoadedOrAssignedValue)
     2781          {
     2782            throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
     2783          }
     2784          this.OnResourceIdChanging(value);
     2785          this.SendPropertyChanging();
     2786          this._ResourceId = value;
     2787          this.SendPropertyChanged("ResourceId");
     2788          this.OnResourceIdChanged();
     2789        }
     2790      }
     2791    }
     2792   
     2793    [Column(Storage="_StartDate", DbType="DateTime NOT NULL")]
     2794    public System.DateTime StartDate
     2795    {
     2796      get
     2797      {
     2798        return this._StartDate;
     2799      }
     2800      set
     2801      {
     2802        if ((this._StartDate != value))
     2803        {
     2804          this.OnStartDateChanging(value);
     2805          this.SendPropertyChanging();
     2806          this._StartDate = value;
     2807          this.SendPropertyChanged("StartDate");
     2808          this.OnStartDateChanged();
     2809        }
     2810      }
     2811    }
     2812   
     2813    [Column(Storage="_EndDate", DbType="DateTime NOT NULL")]
     2814    public System.DateTime EndDate
     2815    {
     2816      get
     2817      {
     2818        return this._EndDate;
     2819      }
     2820      set
     2821      {
     2822        if ((this._EndDate != value))
     2823        {
     2824          this.OnEndDateChanging(value);
     2825          this.SendPropertyChanging();
     2826          this._EndDate = value;
     2827          this.SendPropertyChanged("EndDate");
     2828          this.OnEndDateChanged();
     2829        }
     2830      }
     2831    }
     2832   
     2833    [Column(Storage="_AllDayEvent", DbType="Bit NOT NULL")]
     2834    public bool AllDayEvent
     2835    {
     2836      get
     2837      {
     2838        return this._AllDayEvent;
     2839      }
     2840      set
     2841      {
     2842        if ((this._AllDayEvent != value))
     2843        {
     2844          this.OnAllDayEventChanging(value);
     2845          this.SendPropertyChanging();
     2846          this._AllDayEvent = value;
     2847          this.SendPropertyChanged("AllDayEvent");
     2848          this.OnAllDayEventChanged();
     2849        }
     2850      }
     2851    }
     2852   
     2853    [Column(Storage="_Recurring", DbType="Bit NOT NULL")]
     2854    public bool Recurring
     2855    {
     2856      get
     2857      {
     2858        return this._Recurring;
     2859      }
     2860      set
     2861      {
     2862        if ((this._Recurring != value))
     2863        {
     2864          this.OnRecurringChanging(value);
     2865          this.SendPropertyChanging();
     2866          this._Recurring = value;
     2867          this.SendPropertyChanged("Recurring");
     2868          this.OnRecurringChanged();
     2869        }
     2870      }
     2871    }
     2872   
     2873    [Column(Storage="_RecurringId", DbType="UniqueIdentifier")]
     2874    public System.Guid RecurringId
     2875    {
     2876      get
     2877      {
     2878        return this._RecurringId;
     2879      }
     2880      set
     2881      {
     2882        if ((this._RecurringId != value))
     2883        {
     2884          this.OnRecurringIdChanging(value);
     2885          this.SendPropertyChanging();
     2886          this._RecurringId = value;
     2887          this.SendPropertyChanged("RecurringId");
     2888          this.OnRecurringIdChanged();
     2889        }
     2890      }
     2891    }
     2892   
     2893    [Association(Name="Resource_UptimeCalendar", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")]
     2894    public Resource Resource
     2895    {
     2896      get
     2897      {
     2898        return this._Resource.Entity;
     2899      }
     2900      set
     2901      {
     2902        Resource previousValue = this._Resource.Entity;
     2903        if (((previousValue != value)
     2904              || (this._Resource.HasLoadedOrAssignedValue == false)))
     2905        {
     2906          this.SendPropertyChanging();
     2907          if ((previousValue != null))
     2908          {
     2909            this._Resource.Entity = null;
     2910            previousValue.UptimeCalendars.Remove(this);
     2911          }
     2912          this._Resource.Entity = value;
     2913          if ((value != null))
     2914          {
     2915            value.UptimeCalendars.Add(this);
     2916            this._ResourceId = value.ResourceId;
     2917          }
     2918          else
     2919          {
     2920            this._ResourceId = default(System.Guid);
     2921          }
     2922          this.SendPropertyChanged("Resource");
     2923        }
     2924      }
     2925    }
     2926   
     2927    public event PropertyChangingEventHandler PropertyChanging;
     2928   
     2929    public event PropertyChangedEventHandler PropertyChanged;
     2930   
     2931    protected virtual void SendPropertyChanging()
     2932    {
     2933      if ((this.PropertyChanging != null))
     2934      {
     2935        this.PropertyChanging(this, emptyChangingEventArgs);
     2936      }
     2937    }
     2938   
     2939    protected virtual void SendPropertyChanged(String propertyName)
     2940    {
     2941      if ((this.PropertyChanged != null))
     2942      {
     2943        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
     2944      }
     2945    }
     2946  }
    26612947}
    26622948#pragma warning restore 1591
Note: See TracChangeset for help on using the changeset viewer.