Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/25/16 16:48:19 (9 years ago)
Author:
jlodewyc
Message:

#2582 RC2 migration fixed. OKB query implemented. Preparing for OKB manager

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/HomeController.cs

    r13854 r13860  
    1 using HeuristicLab.Clients.Access;
    2 using HeuristicLab.Clients.Common;
    3 using HeuristicLab.Clients.Common.Properties;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
    422using HeuristicLab.Clients.Hive.WebJobManager.Services;
    5 using Microsoft.AspNet.Mvc;
     23using Microsoft.AspNetCore.Mvc;
    624using System.ServiceModel.Security;
    7 using Microsoft.AspNet.Http;
    825using System;
    926using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
     27using Microsoft.AspNetCore.Http;
    1028
    1129namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/JobController.cs

    r13854 r13860  
    1 using Microsoft.AspNet.Mvc;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using Microsoft.AspNetCore.Mvc;
    223using HeuristicLab.Clients.Hive.WebJobManager.Services;
    324using System;
     
    627using System.Threading.Tasks;
    728using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
    8 using System.ServiceModel.Security;
    9 using Microsoft.AspNet.Http;
     29using Microsoft.AspNetCore.Http;
     30
    1031using System.IO;
    1132using Microsoft.Net.Http.Headers;
    12 using Microsoft.AspNet.Hosting;
     33using Microsoft.AspNetCore.Hosting;
    1334using HeuristicLab.Common;
    14 using HeuristicLab.Core;
    1535using HeuristicLab.Optimization;
    1636using System.Threading;
     37
    1738
    1839namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
     
    90111                ViewBag.SessionId = HttpContext.Session.GetString("UserId");
    91112                ViewBag.Title = "Jobs";
    92                 return View(vm);
     113                return View("Index", vm);
    93114            }
    94115            else
     
    338359                var serve = weblog.getFileOpener(userId);
    339360                serve.NewModel();
    340                 serve.env = _environment;
     361                serve.env = (Microsoft.AspNetCore.Hosting.IHostingEnvironment)_environment;
    341362                serve.vm.directories = upper.DisplayDatePaths;
    342363                var ioptimizer = ContentManager.Load(upper.FullFilesPaths[filedex]);
     
    465486                    {
    466487                        var fileName = ContentDispositionHeaderValue.Parse(file.ContentDisposition).FileName.Trim('"');
    467                         await file.SaveAsAsync(Path.Combine(uploads, fileName));
     488                        await file.CopyToAsync(new FileStream(Path.Combine(uploads, fileName),FileMode.OpenOrCreate));
    468489                        // var ioptimizer = ContentManager.Load(Path.Combine(uploads, fileName));
    469490                        //OptimizerHiveTask task = new OptimizerHiveTask((IOptimizer)ioptimizer);
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/ResourceController.cs

    r13854 r13860  
    1 using HeuristicLab.Clients.Access;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
    222using HeuristicLab.Clients.Access.Administration;
    323using HeuristicLab.Clients.Hive.WebJobManager.Models;
    424using HeuristicLab.Clients.Hive.WebJobManager.Services;
    5 using Microsoft.AspNet.Hosting;
    6 using Microsoft.AspNet.Http;
    7 using Microsoft.AspNet.Mvc;
     25using Microsoft.AspNetCore.Hosting;
     26using Microsoft.AspNetCore.Http;
     27using Microsoft.AspNetCore.Mvc;
    828using System;
    9 using System.Collections.Generic;
    1029using System.Linq;
    11 using System.ServiceModel.Security;
    1230using System.Threading;
    13 using System.Threading.Tasks;
    1431
    1532namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/UserController.cs

    r13854 r13860  
    1 using HeuristicLab.Clients.Access.Administration;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using HeuristicLab.Clients.Access.Administration;
    223using HeuristicLab.Clients.Hive.WebJobManager.Services;
    324using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User;
    4 using Microsoft.AspNet.Hosting;
    5 using Microsoft.AspNet.Http;
    6 using Microsoft.AspNet.Mvc;
     25using Microsoft.AspNetCore.Hosting;
     26using Microsoft.AspNetCore.Http;
     27using Microsoft.AspNetCore.Mvc;
    728using System;
    829using System.Collections.Generic;
Note: See TracChangeset for help on using the changeset viewer.