Merge
This commit is contained in:
commit
5a2d487e55
41 changed files with 891 additions and 426 deletions
|
@ -82,8 +82,8 @@ namespace WebsitePanel.Providers.OS
|
|||
FolderGraph GetFolderGraph(string path);
|
||||
void ExecuteSyncActions(FileSyncAction[] actions);
|
||||
|
||||
void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, FSRMQuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword);
|
||||
int GetQuotaLimitOnFolder(string folderPath, string wmiUserName, string wmiPassword);
|
||||
void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword);
|
||||
Quota GetQuotaOnFolder(string folderPath, string wmiUserName, string wmiPassword);
|
||||
void DeleteDirectoryRecursive(string rootPath);
|
||||
|
||||
// File Services
|
||||
|
|
51
WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/Quota.cs
Normal file
51
WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/Quota.cs
Normal file
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.OS
|
||||
{
|
||||
public class Quota
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private int _Size;
|
||||
private QuotaType _QuotaType;
|
||||
private int _Usage;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public int Size
|
||||
{
|
||||
get { return _Size; }
|
||||
set { _Size = value; }
|
||||
}
|
||||
|
||||
public QuotaType QuotaType
|
||||
{
|
||||
get { return _QuotaType; }
|
||||
set { _QuotaType = value; }
|
||||
}
|
||||
|
||||
public int Usage
|
||||
{
|
||||
get { return _Usage; }
|
||||
set { _Usage = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Quota()
|
||||
{
|
||||
_Size = -1;
|
||||
_QuotaType = QuotaType.Soft;
|
||||
_Usage = -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.OS
|
||||
{
|
||||
public enum QuotaType
|
||||
{
|
||||
Soft = 1,
|
||||
Hard = 2
|
||||
}
|
||||
}
|
|
@ -47,6 +47,8 @@ namespace WebsitePanel.Providers.OS
|
|||
private WebDavFolderRule[] rules;
|
||||
private string url;
|
||||
private int fsrmQuotaMB;
|
||||
private int frsmQuotaGB;
|
||||
private QuotaType fsrmQuotaType = QuotaType.Soft;
|
||||
|
||||
public SystemFile()
|
||||
{
|
||||
|
@ -69,6 +71,18 @@ namespace WebsitePanel.Providers.OS
|
|||
set { fsrmQuotaMB = value; }
|
||||
}
|
||||
|
||||
public int FRSMQuotaGB
|
||||
{
|
||||
get { return frsmQuotaGB; }
|
||||
set { frsmQuotaGB = value; }
|
||||
}
|
||||
|
||||
public QuotaType FsrmQuotaType
|
||||
{
|
||||
get { return fsrmQuotaType; }
|
||||
set { fsrmQuotaType = value; }
|
||||
}
|
||||
|
||||
public string FullName
|
||||
{
|
||||
get { return fullName; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue