Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/01/15 14:59:47 (9 years ago)
Author:
ascheibe
Message:

#2394 merged r12428, r12429, r12430, r12435, r12442, r12443, r12445, r12514, r12517, r12519, r12520, r12521, r12523, r12532, r12542, r12546, r12552, r12553, r12556, r12557, r12559, r12561, r12146, r12457 into stable

Location:
stable
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Services.WebApp/3.3/Controllers/AppController.cs

    r12428 r12563  
    2121
    2222using System.Web.Mvc;
    23 using HeuristicLab.Services.WebApp.Configs;
    2423
    2524namespace HeuristicLab.Services.WebApp.Controllers {
     
    3130        return RedirectPermanent(Request.Url + "/");
    3231      }
    33       BundleConfig.AddOrUpdateWebAppBundle();
    3432      return View("~/WebApp/shared/layout/layout.cshtml");
    3533    }
     
    4947    }
    5048
     49    public ActionResult RedirectUrl(string url) {
     50      return RedirectPermanent(url);
     51    }
    5152  }
    5253}
  • stable/HeuristicLab.Services.WebApp/3.3/Controllers/AuthenticationController.cs

    r12428 r12563  
    1 using System.Web.Http;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System.Web.Http;
    223using System.Web.Security;
    324using HeuristicLab.Services.WebApp.Controllers.DataTransfer;
  • stable/HeuristicLab.Services.WebApp/3.3/Controllers/DataTransfer/Plugin.cs

    r12428 r12563  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223
    324namespace HeuristicLab.Services.WebApp.Controllers.DataTransfer {
     
    728    public DateTime? LastReload { get; set; }
    829    public int Reloads { get; set; }
     30    public string Exception { get; set; }
    931  }
    1032}
  • stable/HeuristicLab.Services.WebApp/3.3/Controllers/DataTransfer/User.cs

    r12428 r12563  
    1 namespace HeuristicLab.Services.WebApp.Controllers.DataTransfer {
     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
     22namespace HeuristicLab.Services.WebApp.Controllers.DataTransfer {
    223  public class User {
    324    public string Username { get; set; }
  • stable/HeuristicLab.Services.WebApp/3.3/Controllers/PluginController.cs

    r12428 r12563  
    1 using System.Collections.Generic;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System.Collections.Generic;
    223using System.Linq;
    324using System.Web.Http;
     25using HeuristicLab.Services.Hive;
    426using DTO = HeuristicLab.Services.WebApp.Controllers.DataTransfer;
    527
    628namespace HeuristicLab.Services.WebApp.Controllers {
    729
    8   [Authorize(Roles = "Hive Administrator")]
     30  [Authorize(Roles = HiveRoles.Administrator)]
    931  public class PluginController : ApiController {
    1032
     
    1234
    1335    public IEnumerable<DTO.Plugin> GetPlugins() {
    14       var plugins = pluginManager.GetPlugins();
     36      var plugins = pluginManager.Plugins;
    1537      return plugins.Select(plugin => new DTO.Plugin {
    1638        Name = plugin.Name,
    1739        AssemblyName = plugin.AssemblyName,
    18         LastReload = plugin.LastReload
     40        LastReload = plugin.LastReload,
     41        Exception = plugin.Exception
    1942      });
    2043    }
    2144
    2245    public bool ReloadPlugin(string name) {
    23       var plugin = PluginManager.Instance.GetPlugin(name);
     46      var plugin = pluginManager.GetPlugin(name);
     47      if (plugin == null)
     48        return false;
    2449      plugin.ReloadControllers();
    2550      return true;
  • stable/HeuristicLab.Services.WebApp/3.3/Controllers/WebAppControllerSelector.cs

    r12428 r12563  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223using System.Collections.Concurrent;
    324using System.Collections.Generic;
     
    1839      : base(configuration) {
    1940      this.configuration = configuration;
    20       pluginManager.Configuration = configuration;
    2141      controllers = new ConcurrentDictionary<string, HttpControllerDescriptor>();
    2242      LoadAppControllers();
Note: See TracChangeset for help on using the changeset viewer.