added functionality of drive mapping

This commit is contained in:
vfedosevich 2014-06-10 04:00:51 +03:00
parent a07c04a187
commit c2ef09c26e
35 changed files with 3196 additions and 11 deletions

View file

@ -32,6 +32,7 @@ using System.Web.Services;
using System.Web.Services.Protocols;
using WebsitePanel.Providers;
using WebsitePanel.Providers.HostedSolution;
using WebsitePanel.Providers.OS;
using WebsitePanel.Providers.ResultObjects;
using WebsitePanel.Server.Utils;
@ -205,5 +206,40 @@ namespace WebsitePanel.Server
return Organization.DoesSamAccountNameExist(accountName);
}
[WebMethod, SoapHeader("settings")]
public MappedDrive[] GetDriveMaps(string organizationId)
{
return Organization.GetDriveMaps(organizationId);
}
[WebMethod, SoapHeader("settings")]
public int CreateMappedDrive(string organizationId, string drive, string labelAs, string path)
{
return Organization.CreateMappedDrive(organizationId, drive, labelAs, path);
}
[WebMethod, SoapHeader("settings")]
public void DeleteMappedDrive(string organizationId, string drive)
{
Organization.DeleteMappedDrive(organizationId, drive);
}
[WebMethod, SoapHeader("settings")]
public void DeleteMappedDriveByPath(string organizationId, string path)
{
Organization.DeleteMappedDriveByPath(organizationId, path);
}
[WebMethod, SoapHeader("settings")]
public void DeleteMappedDrivesGPO(string organizationId)
{
Organization.DeleteMappedDrivesGPO(organizationId);
}
[WebMethod, SoapHeader("settings")]
public void SetDriveMapsTargetingFilter(string organizationId, ExchangeAccount[] accounts, string folderName)
{
Organization.SetDriveMapsTargetingFilter(organizationId, accounts, folderName);
}
}
}