Changeset 12563 for stable/HeuristicLab.Services.WebApp/3.3/Controllers
- Timestamp:
- 07/01/15 14:59:47 (10 years ago)
- Location:
- stable
- Files:
-
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12146,12428-12430,12435,12442-12443,12445,12457,12514,12517,12519-12521,12523,12532,12542,12546,12552-12553,12556-12557,12559,12561 -
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Services.WebApp/3.3/Controllers/AppController.cs
r12428 r12563 21 21 22 22 using System.Web.Mvc; 23 using HeuristicLab.Services.WebApp.Configs;24 23 25 24 namespace HeuristicLab.Services.WebApp.Controllers { … … 31 30 return RedirectPermanent(Request.Url + "/"); 32 31 } 33 BundleConfig.AddOrUpdateWebAppBundle();34 32 return View("~/WebApp/shared/layout/layout.cshtml"); 35 33 } … … 49 47 } 50 48 49 public ActionResult RedirectUrl(string url) { 50 return RedirectPermanent(url); 51 } 51 52 } 52 53 } -
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 22 using System.Web.Http; 2 23 using System.Web.Security; 3 24 using 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 22 using System; 2 23 3 24 namespace HeuristicLab.Services.WebApp.Controllers.DataTransfer { … … 7 28 public DateTime? LastReload { get; set; } 8 29 public int Reloads { get; set; } 30 public string Exception { get; set; } 9 31 } 10 32 } -
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 22 namespace HeuristicLab.Services.WebApp.Controllers.DataTransfer { 2 23 public class User { 3 24 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 22 using System.Collections.Generic; 2 23 using System.Linq; 3 24 using System.Web.Http; 25 using HeuristicLab.Services.Hive; 4 26 using DTO = HeuristicLab.Services.WebApp.Controllers.DataTransfer; 5 27 6 28 namespace HeuristicLab.Services.WebApp.Controllers { 7 29 8 [Authorize(Roles = "Hive Administrator")]30 [Authorize(Roles = HiveRoles.Administrator)] 9 31 public class PluginController : ApiController { 10 32 … … 12 34 13 35 public IEnumerable<DTO.Plugin> GetPlugins() { 14 var plugins = pluginManager. GetPlugins();36 var plugins = pluginManager.Plugins; 15 37 return plugins.Select(plugin => new DTO.Plugin { 16 38 Name = plugin.Name, 17 39 AssemblyName = plugin.AssemblyName, 18 LastReload = plugin.LastReload 40 LastReload = plugin.LastReload, 41 Exception = plugin.Exception 19 42 }); 20 43 } 21 44 22 45 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; 24 49 plugin.ReloadControllers(); 25 50 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 22 using System; 2 23 using System.Collections.Concurrent; 3 24 using System.Collections.Generic; … … 18 39 : base(configuration) { 19 40 this.configuration = configuration; 20 pluginManager.Configuration = configuration;21 41 controllers = new ConcurrentDictionary<string, HttpControllerDescriptor>(); 22 42 LoadAppControllers();
Note: See TracChangeset
for help on using the changeset viewer.