merge
This commit is contained in:
commit
722115607c
55 changed files with 3525 additions and 1856 deletions
|
@ -35,6 +35,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
public interface ILyncServer
|
||||
{
|
||||
string CreateOrganization(string organizationId, string sipDomain, bool enableConferencing, bool enableConferencingVideo, int maxConferenceSize, bool enabledFederation, bool enabledEnterpriseVoice);
|
||||
string GetOrganizationTenantId(string organizationId);
|
||||
bool DeleteOrganization(string organizationId, string sipDomain);
|
||||
|
||||
bool CreateUser(string organizationId, string userUpn, LyncUserPlan plan);
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (c) 2012, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.OS
|
||||
{
|
||||
public enum FSRMQuotaType
|
||||
{
|
||||
Soft = 1,
|
||||
Hard = 2
|
||||
}
|
||||
}
|
|
@ -82,7 +82,8 @@ namespace WebsitePanel.Providers.OS
|
|||
FolderGraph GetFolderGraph(string path);
|
||||
void ExecuteSyncActions(FileSyncAction[] actions);
|
||||
|
||||
void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, 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
|
||||
}
|
||||
}
|
|
@ -46,6 +46,9 @@ namespace WebsitePanel.Providers.OS
|
|||
private bool isPublished;
|
||||
private WebDavFolderRule[] rules;
|
||||
private string url;
|
||||
private int fsrmQuotaMB;
|
||||
private int frsmQuotaGB;
|
||||
private QuotaType fsrmQuotaType = QuotaType.Soft;
|
||||
|
||||
public SystemFile()
|
||||
{
|
||||
|
@ -62,6 +65,24 @@ namespace WebsitePanel.Providers.OS
|
|||
this.changed = changed;
|
||||
}
|
||||
|
||||
public int FRSMQuotaMB
|
||||
{
|
||||
get { return fsrmQuotaMB; }
|
||||
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; }
|
||||
|
|
|
@ -113,6 +113,8 @@
|
|||
<Compile Include="HostedSolution\LyncVoicePolicyType.cs" />
|
||||
<Compile Include="HostedSolution\OrganizationSecurityGroup.cs" />
|
||||
<Compile Include="HostedSolution\TransactionAction.cs" />
|
||||
<Compile Include="OS\Quota.cs" />
|
||||
<Compile Include="OS\QuotaType.cs" />
|
||||
<Compile Include="OS\SystemFilesPaged.cs" />
|
||||
<Compile Include="RemoteDesktopServices\IRemoteDesktopServices.cs" />
|
||||
<Compile Include="ResultObjects\HeliconApe.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue