- Timestamp:
- 06/12/15 14:59:54 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers/AppController.cs
r12428 r12435 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 } -
trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers/AuthenticationController.cs
r12428 r12435 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; -
trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers/DataTransfer/Plugin.cs
r12428 r12435 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 { -
trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers/DataTransfer/User.cs
r12428 r12435 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; } -
trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers/PluginController.cs
r12428 r12435 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 … … 21 43 22 44 public bool ReloadPlugin(string name) { 23 var plugin = PluginManager.Instance.GetPlugin(name); 45 var plugin = pluginManager.GetPlugin(name); 46 if (plugin == null) 47 return false; 24 48 plugin.ReloadControllers(); 25 49 return true; -
trunk/sources/HeuristicLab.Services.WebApp/3.3/Controllers/WebAppControllerSelector.cs
r12428 r12435 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.