Commit Contribution from Helicon
Includes: - complete re-write of Web Application Gallery - Addition of Web PI Installer in Server module
This commit is contained in:
parent
3b81883a25
commit
a2beec7fe4
80 changed files with 9236 additions and 1762 deletions
|
@ -41,6 +41,7 @@ using Microsoft.Web.Services3;
|
|||
using WebsitePanel.Providers.DNS;
|
||||
using WebsitePanel.Server;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
using WebsitePanel.Providers;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
|
@ -663,6 +664,108 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Web Platform Installer
|
||||
|
||||
[WebMethod]
|
||||
public void InitWPIFeeds(int serverId)
|
||||
{
|
||||
var wpiSettings = SystemController.GetSystemSettings(SystemSettings.WPI_SETTINGS);
|
||||
|
||||
|
||||
List<string> arFeeds = new List<string>();
|
||||
|
||||
if (Utils.ParseBool(wpiSettings["FeedEnableMicrosoft"] ,true))
|
||||
{
|
||||
arFeeds.Add( "https://www.microsoft.com/web/webpi/3.0/WebProductList.xml" );
|
||||
}
|
||||
|
||||
if (Utils.ParseBool(wpiSettings["FeedEnableHelicon"] ,true))
|
||||
{
|
||||
arFeeds.Add( "http://www.helicontech.com/zoo/feed/wsp" );
|
||||
}
|
||||
|
||||
string additionalFeeds = wpiSettings["FeedUrls"];
|
||||
if (!string.IsNullOrEmpty(additionalFeeds))
|
||||
{
|
||||
arFeeds.AddRange(additionalFeeds.Split(';'));
|
||||
}
|
||||
|
||||
OperatingSystemController.InitWPIFeeds(serverId, string.Join(";", arFeeds));
|
||||
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public WPITab[] GetWPITabs(int serverId)
|
||||
{
|
||||
InitWPIFeeds(serverId);
|
||||
return OperatingSystemController.GetWPITabs(serverId);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public WPIKeyword[] GetWPIKeywords(int serverId)
|
||||
{
|
||||
InitWPIFeeds(serverId);
|
||||
return OperatingSystemController.GetWPIKeywords(serverId);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public WPIProduct[] GetWPIProducts(int serverId, string tabId, string keywordId)
|
||||
{
|
||||
InitWPIFeeds(serverId);
|
||||
return OperatingSystemController.GetWPIProducts(serverId, tabId, keywordId);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public WPIProduct[] GetWPIProductsFiltered(int serverId, string keywordId)
|
||||
{
|
||||
InitWPIFeeds(serverId);
|
||||
return OperatingSystemController.GetWPIProductsFiltered(serverId, keywordId);
|
||||
}
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public WPIProduct[] GetWPIProductsWithDependencies(int serverId, string[] products)
|
||||
{
|
||||
InitWPIFeeds(serverId);
|
||||
return OperatingSystemController.GetWPIProductsWithDependencies(serverId, products);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void InstallWPIProducts(int serverId, string[] products)
|
||||
{
|
||||
InitWPIFeeds(serverId);
|
||||
OperatingSystemController.InstallWPIProducts(serverId, products);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void CancelInstallWPIProducts(int serviceId)
|
||||
{
|
||||
OperatingSystemController.CancelInstallWPIProducts(serviceId);
|
||||
}
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public string GetWPIStatus(int serverId)
|
||||
{
|
||||
return OperatingSystemController.GetWPIStatus(serverId);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public string WpiGetLogFileDirectory(int serverId)
|
||||
{
|
||||
return OperatingSystemController.WpiGetLogFileDirectory(serverId);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public SettingPair[] WpiGetLogsInDirectory(int serverId, string Path)
|
||||
{
|
||||
return OperatingSystemController.WpiGetLogsInDirectory(serverId, Path);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region Windows Services
|
||||
[WebMethod]
|
||||
public WindowsService[] GetWindowsServices(int serverId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue