This commit is contained in:
Ruslan Keba 2013-11-08 12:36:56 +02:00
commit 98d69a2583
85 changed files with 15582 additions and 8475 deletions

View file

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebsitePanel.Providers.HostedSolution;
namespace WebsitePanel.Providers.Web
{
public interface IWebDav
{
void CreateWebDavRule(string organizationId, string folder, WebDavFolderRule rule);
bool DeleteWebDavRule(string organizationId, string folder, WebDavFolderRule rule);
bool DeleteAllWebDavRules(string organizationId, string folder);
bool SetFolderWebDavRules(string organizationId, string folder, WebDavFolderRule[] newRules);
WebDavFolderRule[] GetFolderWebDavRules(string organizationId, string folder);
}
}

View file

@ -32,6 +32,8 @@ using WebsitePanel.Providers.HostedSolution;
using WebsitePanel.Providers.ResultObjects;
using WebsitePanel.Providers.WebAppGallery;
using WebsitePanel.Providers.Common;
using Microsoft.Web.Administration;
using Microsoft.Web.Management.Server;
namespace WebsitePanel.Providers.Web
{
@ -166,6 +168,8 @@ namespace WebsitePanel.Providers.Web
SSLCertificate ImportCertificate(WebSite website);
bool CheckCertificate(WebSite webSite);
//Directory Browseing
bool GetDirectoryBrowseEnabled(string siteId);
void SetDirectoryBrowseEnabled(string siteId, bool enabled);
}
}

View file

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebsitePanel.Providers.HostedSolution;
namespace WebsitePanel.Providers.Web
{
public enum WebDavAccess
{
Read = 1,
Source = 16,
Write = 2
}
[Serializable]
public class WebDavFolderRule
{
public List<string> Pathes { get; set; }
public List<string> Users { get; set; }
public List<string> Roles { get; set; }
public int AccessRights
{
get
{
int result = 0;
if (Read)
{
result |= (int)WebDavAccess.Read;
}
if (Write)
{
result |= (int)WebDavAccess.Write;
}
if (Source)
{
result |= (int)WebDavAccess.Source;
}
return result;
}
}
public bool Read { get; set; }
public bool Write { get; set; }
public bool Source { get; set; }
public WebDavFolderRule()
{
Pathes = new List<string>();
Users = new List<string>();
Roles = new List<string>();
}
}
}