diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index 9001eceb..358e3e71 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -3094,3 +3094,62 @@ VALUES (467, 24, 4, N'HostedCRM2013.ProfessionalUsers', N'Professional licenses END GO +INSERT INTO EnterpriseFolders +( + ItemID, + FolderName +) +VALUES +( + @ItemID, + @FolderName +) + +SET @FolderID = SCOPE_IDENTITY() + +RETURN +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'DeleteEnterpriseFolder') +DROP PROCEDURE DeleteEnterpriseFolder +GO + +CREATE PROCEDURE [dbo].[DeleteEnterpriseFolder] +( + @ItemID INT, + @FolderName NVARCHAR(255) +) +AS + +DELETE FROM EnterpriseFolders +WHERE ItemID = @ItemID AND FolderName = @FolderName +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'UpdateEnterpriseFolder') +DROP PROCEDURE UpdateEnterpriseFolder +GO + +CREATE PROCEDURE [dbo].[UpdateEnterpriseFolder] +( + @ItemID INT, + @FolderID NVARCHAR(255), + @FolderName NVARCHAR(255), + @FolderQuota INT +) +AS + +UPDATE EnterpriseFolders SET + FolderName = @FolderName, + FolderQuota = @FolderQuota +WHERE ItemID = @ItemID AND FolderName = @FolderID +GO + +-- Enterprise Storage Quotas +IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'EnterpriseStorage.DiskStorageSpace') +BEGIN +INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (430, 44, 1,N'EnterpriseStorage.DiskStorageSpace',N'Disk Storage Space (Mb)',2, 0 , NULL) +END +GO + +UPDATE [dbo].[Quotas] SET [QuotaDescription] = N'Disk Storage Space (Mb)' WHERE [QuotaName] = 'EnterpriseStorage.DiskStorageSpace' +GO \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs index 92276bce..a64f9834 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs @@ -25,6 +25,7 @@ // 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. + //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -47,23 +48,14 @@ using WebsitePanel.Providers.OS; namespace WebsitePanel.EnterpriseServer { - using System.Xml.Serialization; - using System.Web.Services; - using System.ComponentModel; - using System.Web.Services.Protocols; - using System; - using System.Diagnostics; - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name = "esEnterpriseStorageSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] public partial class esEnterpriseStorage : Microsoft.Web.Services3.WebServicesClientProtocol { - private System.Threading.SendOrPostCallback CheckFileServicesInstallationOperationCompleted; private System.Threading.SendOrPostCallback GetEnterpriseFoldersOperationCompleted; @@ -96,6 +88,10 @@ namespace WebsitePanel.EnterpriseServer private System.Threading.SendOrPostCallback SetEnterpriseFolderSettingsOperationCompleted; + private System.Threading.SendOrPostCallback GetStatisticsOperationCompleted; + + private System.Threading.SendOrPostCallback GetStatisticsByOrganizationOperationCompleted; + /// public esEnterpriseStorage() { @@ -150,12 +146,18 @@ namespace WebsitePanel.EnterpriseServer /// public event SetEnterpriseFolderSettingsCompletedEventHandler SetEnterpriseFolderSettingsCompleted; + /// + public event GetStatisticsCompletedEventHandler GetStatisticsCompleted; + + /// + public event GetStatisticsByOrganizationCompletedEventHandler GetStatisticsByOrganizationCompleted; + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckFileServicesInstallation", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool CheckFileServicesInstallation(int serviceId) { object[] results = this.Invoke("CheckFileServicesInstallation", new object[] { - serviceId}); + serviceId}); return ((bool)(results[0])); } @@ -163,7 +165,7 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginCheckFileServicesInstallation(int serviceId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckFileServicesInstallation", new object[] { - serviceId}, callback, asyncState); + serviceId}, callback, asyncState); } /// @@ -187,7 +189,7 @@ namespace WebsitePanel.EnterpriseServer this.CheckFileServicesInstallationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckFileServicesInstallationOperationCompleted); } this.InvokeAsync("CheckFileServicesInstallation", new object[] { - serviceId}, this.CheckFileServicesInstallationOperationCompleted, userState); + serviceId}, this.CheckFileServicesInstallationOperationCompleted, userState); } private void OnCheckFileServicesInstallationOperationCompleted(object arg) @@ -204,7 +206,7 @@ namespace WebsitePanel.EnterpriseServer public SystemFile[] GetEnterpriseFolders(int itemId) { object[] results = this.Invoke("GetEnterpriseFolders", new object[] { - itemId}); + itemId}); return ((SystemFile[])(results[0])); } @@ -212,7 +214,7 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginGetEnterpriseFolders(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFolders", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } /// @@ -236,7 +238,7 @@ namespace WebsitePanel.EnterpriseServer this.GetEnterpriseFoldersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFoldersOperationCompleted); } this.InvokeAsync("GetEnterpriseFolders", new object[] { - itemId}, this.GetEnterpriseFoldersOperationCompleted, userState); + itemId}, this.GetEnterpriseFoldersOperationCompleted, userState); } private void OnGetEnterpriseFoldersOperationCompleted(object arg) @@ -253,8 +255,8 @@ namespace WebsitePanel.EnterpriseServer public SystemFile GetEnterpriseFolder(int itemId, string folderName) { object[] results = this.Invoke("GetEnterpriseFolder", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((SystemFile)(results[0])); } @@ -262,8 +264,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginGetEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFolder", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } /// @@ -287,8 +289,8 @@ namespace WebsitePanel.EnterpriseServer this.GetEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFolderOperationCompleted); } this.InvokeAsync("GetEnterpriseFolder", new object[] { - itemId, - folderName}, this.GetEnterpriseFolderOperationCompleted, userState); + itemId, + folderName}, this.GetEnterpriseFolderOperationCompleted, userState); } private void OnGetEnterpriseFolderOperationCompleted(object arg) @@ -305,8 +307,8 @@ namespace WebsitePanel.EnterpriseServer public ResultObject CreateEnterpriseFolder(int itemId, string folderName) { object[] results = this.Invoke("CreateEnterpriseFolder", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((ResultObject)(results[0])); } @@ -314,8 +316,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginCreateEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateEnterpriseFolder", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } /// @@ -339,8 +341,8 @@ namespace WebsitePanel.EnterpriseServer this.CreateEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateEnterpriseFolderOperationCompleted); } this.InvokeAsync("CreateEnterpriseFolder", new object[] { - itemId, - folderName}, this.CreateEnterpriseFolderOperationCompleted, userState); + itemId, + folderName}, this.CreateEnterpriseFolderOperationCompleted, userState); } private void OnCreateEnterpriseFolderOperationCompleted(object arg) @@ -357,8 +359,8 @@ namespace WebsitePanel.EnterpriseServer public ResultObject DeleteEnterpriseFolder(int itemId, string folderName) { object[] results = this.Invoke("DeleteEnterpriseFolder", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((ResultObject)(results[0])); } @@ -366,8 +368,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginDeleteEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteEnterpriseFolder", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } /// @@ -391,8 +393,8 @@ namespace WebsitePanel.EnterpriseServer this.DeleteEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteEnterpriseFolderOperationCompleted); } this.InvokeAsync("DeleteEnterpriseFolder", new object[] { - itemId, - folderName}, this.DeleteEnterpriseFolderOperationCompleted, userState); + itemId, + folderName}, this.DeleteEnterpriseFolderOperationCompleted, userState); } private void OnDeleteEnterpriseFolderOperationCompleted(object arg) @@ -409,8 +411,8 @@ namespace WebsitePanel.EnterpriseServer public ESPermission[] GetEnterpriseFolderPermissions(int itemId, string folderName) { object[] results = this.Invoke("GetEnterpriseFolderPermissions", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((ESPermission[])(results[0])); } @@ -418,8 +420,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginGetEnterpriseFolderPermissions(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFolderPermissions", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } /// @@ -443,8 +445,8 @@ namespace WebsitePanel.EnterpriseServer this.GetEnterpriseFolderPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFolderPermissionsOperationCompleted); } this.InvokeAsync("GetEnterpriseFolderPermissions", new object[] { - itemId, - folderName}, this.GetEnterpriseFolderPermissionsOperationCompleted, userState); + itemId, + folderName}, this.GetEnterpriseFolderPermissionsOperationCompleted, userState); } private void OnGetEnterpriseFolderPermissionsOperationCompleted(object arg) @@ -461,9 +463,9 @@ namespace WebsitePanel.EnterpriseServer public ResultObject SetEnterpriseFolderPermissions(int itemId, string folderName, ESPermission[] permission) { object[] results = this.Invoke("SetEnterpriseFolderPermissions", new object[] { - itemId, - folderName, - permission}); + itemId, + folderName, + permission}); return ((ResultObject)(results[0])); } @@ -471,9 +473,9 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginSetEnterpriseFolderPermissions(int itemId, string folderName, ESPermission[] permission, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetEnterpriseFolderPermissions", new object[] { - itemId, - folderName, - permission}, callback, asyncState); + itemId, + folderName, + permission}, callback, asyncState); } /// @@ -497,9 +499,9 @@ namespace WebsitePanel.EnterpriseServer this.SetEnterpriseFolderPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEnterpriseFolderPermissionsOperationCompleted); } this.InvokeAsync("SetEnterpriseFolderPermissions", new object[] { - itemId, - folderName, - permission}, this.SetEnterpriseFolderPermissionsOperationCompleted, userState); + itemId, + folderName, + permission}, this.SetEnterpriseFolderPermissionsOperationCompleted, userState); } private void OnSetEnterpriseFolderPermissionsOperationCompleted(object arg) @@ -516,10 +518,10 @@ namespace WebsitePanel.EnterpriseServer public ExchangeAccount[] SearchESAccounts(int itemId, string filterColumn, string filterValue, string sortColumn) { object[] results = this.Invoke("SearchESAccounts", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn}); + itemId, + filterColumn, + filterValue, + sortColumn}); return ((ExchangeAccount[])(results[0])); } @@ -527,10 +529,10 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginSearchESAccounts(int itemId, string filterColumn, string filterValue, string sortColumn, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SearchESAccounts", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn}, callback, asyncState); + itemId, + filterColumn, + filterValue, + sortColumn}, callback, asyncState); } /// @@ -554,10 +556,10 @@ namespace WebsitePanel.EnterpriseServer this.SearchESAccountsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchESAccountsOperationCompleted); } this.InvokeAsync("SearchESAccounts", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn}, this.SearchESAccountsOperationCompleted, userState); + itemId, + filterColumn, + filterValue, + sortColumn}, this.SearchESAccountsOperationCompleted, userState); } private void OnSearchESAccountsOperationCompleted(object arg) @@ -574,11 +576,11 @@ namespace WebsitePanel.EnterpriseServer public SystemFilesPaged GetEnterpriseFoldersPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetEnterpriseFoldersPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((SystemFilesPaged)(results[0])); } @@ -586,11 +588,11 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginGetEnterpriseFoldersPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFoldersPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } /// @@ -614,11 +616,11 @@ namespace WebsitePanel.EnterpriseServer this.GetEnterpriseFoldersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFoldersPagedOperationCompleted); } this.InvokeAsync("GetEnterpriseFoldersPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetEnterpriseFoldersPagedOperationCompleted, userState); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetEnterpriseFoldersPagedOperationCompleted, userState); } private void OnGetEnterpriseFoldersPagedOperationCompleted(object arg) @@ -635,9 +637,9 @@ namespace WebsitePanel.EnterpriseServer public SystemFile RenameEnterpriseFolder(int itemId, string oldName, string newName) { object[] results = this.Invoke("RenameEnterpriseFolder", new object[] { - itemId, - oldName, - newName}); + itemId, + oldName, + newName}); return ((SystemFile)(results[0])); } @@ -645,9 +647,9 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginRenameEnterpriseFolder(int itemId, string oldName, string newName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RenameEnterpriseFolder", new object[] { - itemId, - oldName, - newName}, callback, asyncState); + itemId, + oldName, + newName}, callback, asyncState); } /// @@ -671,9 +673,9 @@ namespace WebsitePanel.EnterpriseServer this.RenameEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRenameEnterpriseFolderOperationCompleted); } this.InvokeAsync("RenameEnterpriseFolder", new object[] { - itemId, - oldName, - newName}, this.RenameEnterpriseFolderOperationCompleted, userState); + itemId, + oldName, + newName}, this.RenameEnterpriseFolderOperationCompleted, userState); } private void OnRenameEnterpriseFolderOperationCompleted(object arg) @@ -690,8 +692,8 @@ namespace WebsitePanel.EnterpriseServer public ResultObject CreateEnterpriseStorage(int packageId, int itemId) { object[] results = this.Invoke("CreateEnterpriseStorage", new object[] { - packageId, - itemId}); + packageId, + itemId}); return ((ResultObject)(results[0])); } @@ -699,8 +701,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginCreateEnterpriseStorage(int packageId, int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateEnterpriseStorage", new object[] { - packageId, - itemId}, callback, asyncState); + packageId, + itemId}, callback, asyncState); } /// @@ -724,8 +726,8 @@ namespace WebsitePanel.EnterpriseServer this.CreateEnterpriseStorageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateEnterpriseStorageOperationCompleted); } this.InvokeAsync("CreateEnterpriseStorage", new object[] { - packageId, - itemId}, this.CreateEnterpriseStorageOperationCompleted, userState); + packageId, + itemId}, this.CreateEnterpriseStorageOperationCompleted, userState); } private void OnCreateEnterpriseStorageOperationCompleted(object arg) @@ -743,8 +745,8 @@ namespace WebsitePanel.EnterpriseServer public bool CheckEnterpriseStorageInitialization(int packageId, int itemId) { object[] results = this.Invoke("CheckEnterpriseStorageInitialization", new object[] { - packageId, - itemId}); + packageId, + itemId}); return ((bool)(results[0])); } @@ -752,8 +754,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginCheckEnterpriseStorageInitialization(int packageId, int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckEnterpriseStorageInitialization", new object[] { - packageId, - itemId}, callback, asyncState); + packageId, + itemId}, callback, asyncState); } /// @@ -777,8 +779,8 @@ namespace WebsitePanel.EnterpriseServer this.CheckEnterpriseStorageInitializationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckEnterpriseStorageInitializationOperationCompleted); } this.InvokeAsync("CheckEnterpriseStorageInitialization", new object[] { - packageId, - itemId}, this.CheckEnterpriseStorageInitializationOperationCompleted, userState); + packageId, + itemId}, this.CheckEnterpriseStorageInitializationOperationCompleted, userState); } private void OnCheckEnterpriseStorageInitializationOperationCompleted(object arg) @@ -795,7 +797,7 @@ namespace WebsitePanel.EnterpriseServer public bool CheckUsersDomainExists(int itemId) { object[] results = this.Invoke("CheckUsersDomainExists", new object[] { - itemId}); + itemId}); return ((bool)(results[0])); } @@ -803,7 +805,7 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginCheckUsersDomainExists(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckUsersDomainExists", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } /// @@ -827,7 +829,7 @@ namespace WebsitePanel.EnterpriseServer this.CheckUsersDomainExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckUsersDomainExistsOperationCompleted); } this.InvokeAsync("CheckUsersDomainExists", new object[] { - itemId}, this.CheckUsersDomainExistsOperationCompleted, userState); + itemId}, this.CheckUsersDomainExistsOperationCompleted, userState); } private void OnCheckUsersDomainExistsOperationCompleted(object arg) @@ -844,8 +846,8 @@ namespace WebsitePanel.EnterpriseServer public bool GetDirectoryBrowseEnabled(int itemId, string site) { object[] results = this.Invoke("GetDirectoryBrowseEnabled", new object[] { - itemId, - site}); + itemId, + site}); return ((bool)(results[0])); } @@ -853,8 +855,8 @@ namespace WebsitePanel.EnterpriseServer public System.IAsyncResult BeginGetDirectoryBrowseEnabled(int itemId, string site, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDirectoryBrowseEnabled", new object[] { - itemId, - site}, callback, asyncState); + itemId, + site}, callback, asyncState); } /// @@ -878,8 +880,8 @@ namespace WebsitePanel.EnterpriseServer this.GetDirectoryBrowseEnabledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDirectoryBrowseEnabledOperationCompleted); } this.InvokeAsync("GetDirectoryBrowseEnabled", new object[] { - itemId, - site}, this.GetDirectoryBrowseEnabledOperationCompleted, userState); + itemId, + site}, this.GetDirectoryBrowseEnabledOperationCompleted, userState); } private void OnGetDirectoryBrowseEnabledOperationCompleted(object arg) @@ -896,18 +898,18 @@ namespace WebsitePanel.EnterpriseServer public void SetDirectoryBrowseEnabled(int itemId, string site, bool enabled) { this.Invoke("SetDirectoryBrowseEnabled", new object[] { - itemId, - site, - enabled}); + itemId, + site, + enabled}); } /// public System.IAsyncResult BeginSetDirectoryBrowseEnabled(int itemId, string site, bool enabled, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDirectoryBrowseEnabled", new object[] { - itemId, - site, - enabled}, callback, asyncState); + itemId, + site, + enabled}, callback, asyncState); } /// @@ -930,9 +932,9 @@ namespace WebsitePanel.EnterpriseServer this.SetDirectoryBrowseEnabledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDirectoryBrowseEnabledOperationCompleted); } this.InvokeAsync("SetDirectoryBrowseEnabled", new object[] { - itemId, - site, - enabled}, this.SetDirectoryBrowseEnabledOperationCompleted, userState); + itemId, + site, + enabled}, this.SetDirectoryBrowseEnabledOperationCompleted, userState); } private void OnSetDirectoryBrowseEnabledOperationCompleted(object arg) @@ -946,23 +948,27 @@ namespace WebsitePanel.EnterpriseServer /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetEnterpriseFolderSettings", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void SetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled) + public void SetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) { this.Invoke("SetEnterpriseFolderSettings", new object[] { - itemId, - folder, - permissions, - directoyBrowsingEnabled}); + itemId, + folder, + permissions, + directoyBrowsingEnabled, + quota, + quotaType}); } /// - public System.IAsyncResult BeginSetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, System.AsyncCallback callback, object asyncState) + public System.IAsyncResult BeginSetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetEnterpriseFolderSettings", new object[] { - itemId, - folder, - permissions, - directoyBrowsingEnabled}, callback, asyncState); + itemId, + folder, + permissions, + directoyBrowsingEnabled, + quota, + quotaType}, callback, asyncState); } /// @@ -972,23 +978,25 @@ namespace WebsitePanel.EnterpriseServer } /// - public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled) + public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) { - this.SetEnterpriseFolderSettingsAsync(itemId, folder, permissions, directoyBrowsingEnabled, null); + this.SetEnterpriseFolderSettingsAsync(itemId, folder, permissions, directoyBrowsingEnabled, quota, quotaType, null); } /// - public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, object userState) + public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType, object userState) { if ((this.SetEnterpriseFolderSettingsOperationCompleted == null)) { this.SetEnterpriseFolderSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEnterpriseFolderSettingsOperationCompleted); } this.InvokeAsync("SetEnterpriseFolderSettings", new object[] { - itemId, - folder, - permissions, - directoyBrowsingEnabled}, this.SetEnterpriseFolderSettingsOperationCompleted, userState); + itemId, + folder, + permissions, + directoyBrowsingEnabled, + quota, + quotaType}, this.SetEnterpriseFolderSettingsOperationCompleted, userState); } private void OnSetEnterpriseFolderSettingsOperationCompleted(object arg) @@ -1000,6 +1008,104 @@ namespace WebsitePanel.EnterpriseServer } } + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatistics", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public OrganizationStatistics GetStatistics(int itemId) + { + object[] results = this.Invoke("GetStatistics", new object[] { + itemId}); + return ((OrganizationStatistics)(results[0])); + } + + /// + public System.IAsyncResult BeginGetStatistics(int itemId, System.AsyncCallback callback, object asyncState) + { + return this.BeginInvoke("GetStatistics", new object[] { + itemId}, callback, asyncState); + } + + /// + public OrganizationStatistics EndGetStatistics(System.IAsyncResult asyncResult) + { + object[] results = this.EndInvoke(asyncResult); + return ((OrganizationStatistics)(results[0])); + } + + /// + public void GetStatisticsAsync(int itemId) + { + this.GetStatisticsAsync(itemId, null); + } + + /// + public void GetStatisticsAsync(int itemId, object userState) + { + if ((this.GetStatisticsOperationCompleted == null)) + { + this.GetStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStatisticsOperationCompleted); + } + this.InvokeAsync("GetStatistics", new object[] { + itemId}, this.GetStatisticsOperationCompleted, userState); + } + + private void OnGetStatisticsOperationCompleted(object arg) + { + if ((this.GetStatisticsCompleted != null)) + { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetStatisticsCompleted(this, new GetStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatisticsByOrganization", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public OrganizationStatistics GetStatisticsByOrganization(int itemId) + { + object[] results = this.Invoke("GetStatisticsByOrganization", new object[] { + itemId}); + return ((OrganizationStatistics)(results[0])); + } + + /// + public System.IAsyncResult BeginGetStatisticsByOrganization(int itemId, System.AsyncCallback callback, object asyncState) + { + return this.BeginInvoke("GetStatisticsByOrganization", new object[] { + itemId}, callback, asyncState); + } + + /// + public OrganizationStatistics EndGetStatisticsByOrganization(System.IAsyncResult asyncResult) + { + object[] results = this.EndInvoke(asyncResult); + return ((OrganizationStatistics)(results[0])); + } + + /// + public void GetStatisticsByOrganizationAsync(int itemId) + { + this.GetStatisticsByOrganizationAsync(itemId, null); + } + + /// + public void GetStatisticsByOrganizationAsync(int itemId, object userState) + { + if ((this.GetStatisticsByOrganizationOperationCompleted == null)) + { + this.GetStatisticsByOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStatisticsByOrganizationOperationCompleted); + } + this.InvokeAsync("GetStatisticsByOrganization", new object[] { + itemId}, this.GetStatisticsByOrganizationOperationCompleted, userState); + } + + private void OnGetStatisticsByOrganizationOperationCompleted(object arg) + { + if ((this.GetStatisticsByOrganizationCompleted != null)) + { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetStatisticsByOrganizationCompleted(this, new GetStatisticsByOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// public new void CancelAsync(object userState) { @@ -1008,11 +1114,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void CheckFileServicesInstallationCompletedEventHandler(object sender, CheckFileServicesInstallationCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CheckFileServicesInstallationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1038,11 +1144,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void GetEnterpriseFoldersCompletedEventHandler(object sender, GetEnterpriseFoldersCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetEnterpriseFoldersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1068,11 +1174,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void GetEnterpriseFolderCompletedEventHandler(object sender, GetEnterpriseFolderCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1098,11 +1204,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void CreateEnterpriseFolderCompletedEventHandler(object sender, CreateEnterpriseFolderCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CreateEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1128,11 +1234,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void DeleteEnterpriseFolderCompletedEventHandler(object sender, DeleteEnterpriseFolderCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DeleteEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1158,11 +1264,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void GetEnterpriseFolderPermissionsCompletedEventHandler(object sender, GetEnterpriseFolderPermissionsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetEnterpriseFolderPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1188,11 +1294,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void SetEnterpriseFolderPermissionsCompletedEventHandler(object sender, SetEnterpriseFolderPermissionsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SetEnterpriseFolderPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1218,11 +1324,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void SearchESAccountsCompletedEventHandler(object sender, SearchESAccountsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SearchESAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1248,11 +1354,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void GetEnterpriseFoldersPagedCompletedEventHandler(object sender, GetEnterpriseFoldersPagedCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetEnterpriseFoldersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1278,11 +1384,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void RenameEnterpriseFolderCompletedEventHandler(object sender, RenameEnterpriseFolderCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class RenameEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1308,11 +1414,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void CreateEnterpriseStorageCompletedEventHandler(object sender, CreateEnterpriseStorageCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CreateEnterpriseStorageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1338,11 +1444,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void CheckEnterpriseStorageInitializationCompletedEventHandler(object sender, CheckEnterpriseStorageInitializationCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CheckEnterpriseStorageInitializationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1368,11 +1474,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void CheckUsersDomainExistsCompletedEventHandler(object sender, CheckUsersDomainExistsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CheckUsersDomainExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1398,11 +1504,11 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void GetDirectoryBrowseEnabledCompletedEventHandler(object sender, GetDirectoryBrowseEnabledCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetDirectoryBrowseEnabledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs @@ -1428,10 +1534,70 @@ namespace WebsitePanel.EnterpriseServer } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void SetDirectoryBrowseEnabledCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] public delegate void SetEnterpriseFolderSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + public delegate void GetStatisticsCompletedEventHandler(object sender, GetStatisticsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public OrganizationStatistics Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((OrganizationStatistics)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + public delegate void GetStatisticsByOrganizationCompletedEventHandler(object sender, GetStatisticsByOrganizationCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetStatisticsByOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetStatisticsByOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public OrganizationStatistics Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((OrganizationStatistics)(this.results[0])); + } + } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs index 07a052cb..6dc8c467 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs @@ -4155,5 +4155,48 @@ namespace WebsitePanel.EnterpriseServer } #endregion + + #region Enterprise Storage + + public static int AddEntepriseFolder(int itemId, string folderName) + { + SqlParameter prmId = new SqlParameter("@FolderID", SqlDbType.Int); + prmId.Direction = ParameterDirection.Output; + + SqlHelper.ExecuteNonQuery( + ConnectionString, + CommandType.StoredProcedure, + "AddEnterpriseFolder", + prmId, + new SqlParameter("@ItemID", itemId), + new SqlParameter("@FolderName", folderName)); + + // read identity + return Convert.ToInt32(prmId.Value); + } + + public static void DeleteEnterpriseFolder(int itemId, string folderName) + { + SqlHelper.ExecuteNonQuery( + ConnectionString, + CommandType.StoredProcedure, + "DeleteEnterpriseFolder", + new SqlParameter("@ItemID", itemId), + new SqlParameter("@FolderName", folderName)); + } + + public static void UpdateEnterpriseFolder(int itemId, string folderID, string folderName, int folderQuota) + { + SqlHelper.ExecuteNonQuery( + ConnectionString, + CommandType.StoredProcedure, + "UpdateEnterpriseFolder", + new SqlParameter("@ItemID", itemId), + new SqlParameter("@FolderID", folderID), + new SqlParameter("@FolderName", folderName), + new SqlParameter("@FolderQuota", folderQuota)); + } + + #endregion } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs index c4b90813..bc333377 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs @@ -47,6 +47,7 @@ using WebsitePanel.Providers.Web; using WebsitePanel.Providers.HostedSolution; using WebsitePanel.EnterpriseServer.Base.HostedSolution; using WebsitePanel.Server.Client; +using System.Text.RegularExpressions; namespace WebsitePanel.EnterpriseServer { @@ -140,6 +141,11 @@ namespace WebsitePanel.EnterpriseServer return CheckUsersDomainExistsInternal(itemId); } + public static void SetFRSMQuotaOnFolder(int itemId, string folderName, int quota, QuotaType quotaType) + { + SetFRSMQuotaOnFolderInternal(itemId, folderName, quota, quotaType); + } + #region Directory Browsing public static bool GetDirectoryBrowseEnabled(int itemId, string siteId) @@ -260,17 +266,6 @@ namespace WebsitePanel.EnterpriseServer EnterpriseStorageController.CreateFolder(itemId); EnterpriseStorageController.AddWebDavDirectory(packageId, usersDomain, org.OrganizationId, homePath); - - //int osId = PackageController.GetPackageServiceId(packageId, ResourceGroups.Os); - //bool enableHardQuota = (esSesstings["enablehardquota"] != null) - // ? bool.Parse(esSesstings["enablehardquota"]) - // : false; - - //if (enableHardQuota && osId != 0 && OperatingSystemController.CheckFileServicesInstallation(osId)) - //{ - // FilesController.SetFolderQuota(packageId, Path.Combine(usersHome, org.OrganizationId), - // locationDrive, Quotas.ENTERPRISESTORAGE_DISKSTORAGESPACE); - //} } } catch (Exception ex) @@ -350,7 +345,14 @@ namespace WebsitePanel.EnterpriseServer return new SystemFile[0]; } - EnterpriseStorage es = GetEnterpriseStorage(GetEnterpriseStorageServiceID(org.PackageId)); + int serviceId = GetEnterpriseStorageServiceID(org.PackageId); + + if (serviceId == 0) + { + return new SystemFile[0]; + } + + EnterpriseStorage es = GetEnterpriseStorage(serviceId); return es.GetFolders(org.OrganizationId); } @@ -394,7 +396,16 @@ namespace WebsitePanel.EnterpriseServer EnterpriseStorage es = GetEnterpriseStorage(GetEnterpriseStorageServiceID(org.PackageId)); - return es.RenameFolder(org.OrganizationId, oldFolder, newFolder); + if (es.GetFolder(org.OrganizationId, newFolder) == null) + { + SystemFile folder = es.RenameFolder(org.OrganizationId, oldFolder, newFolder); + + DataProvider.UpdateEnterpriseFolder(itemId, oldFolder, newFolder, folder.FRSMQuotaGB); + + return folder; + } + + return null; } catch (Exception ex) { @@ -412,14 +423,25 @@ namespace WebsitePanel.EnterpriseServer Organization org = OrganizationController.GetOrganization(itemId); if (org == null) { - return null; + result.IsSuccess = false; + result.AddError("",new NullReferenceException("Organization not found")); + return result; } EnterpriseStorage es = GetEnterpriseStorage(GetEnterpriseStorageServiceID(org.PackageId)); - es.CreateFolder(org.OrganizationId, folderName); + if (es.GetFolder(org.OrganizationId, folderName) == null) + { + es.CreateFolder(org.OrganizationId, folderName); - UpdateESHardQuota(org.PackageId); + DataProvider.AddEntepriseFolder(itemId, folderName); + } + else + { + result.IsSuccess = false; + result.AddError("Enterprise Storage", new Exception("Folder already exist")); + return result; + } } catch (Exception ex) { @@ -440,6 +462,48 @@ namespace WebsitePanel.EnterpriseServer return result; } + protected static void SetFRSMQuotaOnFolderInternal(int itemId, string folderName, int quota, QuotaType quotaType) + { + ResultObject result = TaskManager.StartResultTask("ENTERPRISE_STORAGE", "CREATE_FOLDER"); + + try + { + // load organization + Organization org = OrganizationController.GetOrganization(itemId); + if (org == null) + { + return; + } + + EnterpriseStorage es = GetEnterpriseStorage(GetEnterpriseStorageServiceID(org.PackageId)); + + es.CreateFolder(org.OrganizationId, folderName); + + // check if it's not root folder + if (!string.IsNullOrEmpty(folderName)) + { + SetFolderQuota(org.PackageId, org.OrganizationId, folderName, quota, quotaType); + + DataProvider.UpdateEnterpriseFolder(itemId, folderName, folderName, quota); + } + } + catch (Exception ex) + { + result.AddError("ENTERPRISE_STORAGE_CREATE_FOLDER", ex); + } + finally + { + if (!result.IsSuccess) + { + TaskManager.CompleteResultTask(result); + } + else + { + TaskManager.CompleteResultTask(); + } + } + } + protected static ResultObject DeleteFolderInternal(int itemId, string folderName) { ResultObject result = TaskManager.StartResultTask("ENTERPRISE_STORAGE", "DELETE_FOLDER"); @@ -456,6 +520,8 @@ namespace WebsitePanel.EnterpriseServer EnterpriseStorage es = GetEnterpriseStorage(GetEnterpriseStorageServiceID(org.PackageId)); es.DeleteFolder(org.OrganizationId, folderName); + + DataProvider.DeleteEnterpriseFolder(itemId, folderName); } catch (Exception ex) { @@ -501,9 +567,9 @@ namespace WebsitePanel.EnterpriseServer foreach (ExchangeAccount tmpAccount in tmpAccounts.ToArray()) { - if (tmpAccount.AccountType == ExchangeAccountType.SecurityGroup || tmpAccount.AccountType == ExchangeAccountType.SecurityGroup + if (tmpAccount.AccountType == ExchangeAccountType.SecurityGroup || tmpAccount.AccountType == ExchangeAccountType.DefaultSecurityGroup ? OrganizationController.GetSecurityGroupGeneralSettings(itemId, tmpAccount.AccountId) == null - : OrganizationController.GetSecurityGroupGeneralSettings(itemId, tmpAccount.AccountId) == null) + : OrganizationController.GetUserGeneralSettings(itemId, tmpAccount.AccountId) == null) continue; exAccounts.Add(tmpAccount); @@ -765,6 +831,7 @@ namespace WebsitePanel.EnterpriseServer if (permission.Access.ToLower().Contains("read-only")) { rule.Read = true; + rule.Source = true; } if (permission.Access.ToLower().Contains("read-write")) @@ -827,7 +894,6 @@ namespace WebsitePanel.EnterpriseServer permission.Access = "Read-Write"; } - permissions.Add(permission); } @@ -835,29 +901,61 @@ namespace WebsitePanel.EnterpriseServer } - private static void UpdateESHardQuota(int packageId) + private static void SetFolderQuota(int packageId, string orgId, string folderName, int quotaSize, QuotaType quotaType) { + int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); + if (accountCheck < 0) + return; + + int packageCheck = SecurityContext.CheckPackage(packageId, DemandPackage.IsActive); + if (packageCheck < 0) + return; + int esServiceId = PackageController.GetPackageServiceId(packageId, ResourceGroups.EnterpriseStorage); if (esServiceId != 0) { - StringDictionary esSesstings = ServerController.GetServiceSettings(esServiceId); string usersHome = esSesstings["UsersHome"]; string usersDomain = esSesstings["UsersDomain"]; string locationDrive = esSesstings["LocationDrive"]; - string homePath = string.Format("{0}:\\{1}", locationDrive, usersHome); + var orgFolder = Path.Combine(usersHome, orgId, folderName); + + var os = GetOS(packageId); - int osId = PackageController.GetPackageServiceId(packageId, ResourceGroups.Os); - bool enableHardQuota = (esSesstings["enablehardquota"] != null) - ? bool.Parse(esSesstings["enablehardquota"]) - : false; - - if (enableHardQuota && osId != 0 && OperatingSystemController.CheckFileServicesInstallation(osId)) + if (os != null && os.CheckFileServicesInstallation()) { - FilesController.SetFolderQuota(packageId, usersHome, locationDrive, Quotas.ENTERPRISESTORAGE_DISKSTORAGESPACE); + TaskManager.StartTask("FILES", "SET_QUOTA_ON_FOLDER", orgFolder, packageId); + + try + { + QuotaValueInfo diskSpaceQuota = PackageController.GetPackageQuota(packageId, Quotas.ENTERPRISESTORAGE_DISKSTORAGESPACE); + + #region figure Quota Unit + + // Quota Unit + string unit = string.Empty; + if (diskSpaceQuota.QuotaDescription.ToLower().Contains("gb")) + unit = "GB"; + else if (diskSpaceQuota.QuotaDescription.ToLower().Contains("mb")) + unit = "MB"; + else + unit = "KB"; + + #endregion + + os.SetQuotaLimitOnFolder(orgFolder, locationDrive, quotaType, quotaSize.ToString() + unit, 0, String.Empty, String.Empty); + } + catch (Exception ex) + { + TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } } } } @@ -906,5 +1004,121 @@ namespace WebsitePanel.EnterpriseServer return null; } + + private static WebsitePanel.Providers.OS.OperatingSystem GetOS(int packageId) + { + var esServiceInfo = ServerController.GetServiceInfo(GetEnterpriseStorageServiceID(packageId)); + var esProviderInfo = ServerController.GetProvider(esServiceInfo.ProviderId); + + var osGroups = ServerController.GetResourceGroupByName(ResourceGroups.Os); + var osProviders = ServerController.GetProvidersByGroupID(osGroups.GroupId); + + var regexResult = Regex.Match(esProviderInfo.ProviderType, "Windows([0-9]+)"); + + if(regexResult.Success) + { + foreach(var osProvider in osProviders) + { + BoolResult result = ServerController.IsInstalled(esServiceInfo.ServerId, osProvider.ProviderId); + + if (result.IsSuccess && result.Value) + { + var os = new WebsitePanel.Providers.OS.OperatingSystem(); + ServerProxyConfigurator cnfg = new ServerProxyConfigurator(); + + cnfg.ProviderSettings.ProviderGroupID = osProvider.GroupId; + cnfg.ProviderSettings.ProviderCode = osProvider.ProviderName; + cnfg.ProviderSettings.ProviderName = osProvider.DisplayName; + cnfg.ProviderSettings.ProviderType = osProvider.ProviderType; + + ServiceProviderProxy.ServerInit(os, cnfg, esServiceInfo.ServerId); + + return os; + } + } + } + + return null; + } + + #region Statistics + + public static OrganizationStatistics GetStatistics(int itemId) + { + return GetStatisticsInternal(itemId, false); + } + + public static OrganizationStatistics GetStatisticsByOrganization(int itemId) + { + return GetStatisticsInternal(itemId, true); + } + + private static OrganizationStatistics GetStatisticsInternal(int itemId, bool byOrganization) + { + // place log record + TaskManager.StartTask("ENTERPRISE_STORAGE", "GET_ORG_STATS", itemId); + + try + { + Organization org = (Organization)PackageController.GetPackageItem(itemId); + if (org == null) + return null; + + OrganizationStatistics stats = new OrganizationStatistics(); + + if (byOrganization) + { + SystemFile[] folders = GetFolders(itemId); + + stats.CreatedEnterpriseStorageFolders = folders.Count(); + + stats.UsedEnterpriseStorageSpace = folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB); + } + else + { + UserInfo user = ObjectUtils.FillObjectFromDataReader(DataProvider.GetUserByExchangeOrganizationIdInternally(org.Id)); + List Packages = PackageController.GetPackages(user.UserId); + + if ((Packages != null) & (Packages.Count > 0)) + { + foreach (PackageInfo Package in Packages) + { + List orgs = null; + + orgs = ExchangeServerController.GetExchangeOrganizations(Package.PackageId, false); + + if ((orgs != null) & (orgs.Count > 0)) + { + foreach (Organization o in orgs) + { + SystemFile[] folders = GetFolders(o.Id); + + stats.CreatedEnterpriseStorageFolders += folders.Count(); + + stats.UsedEnterpriseStorageSpace += folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB); + } + } + } + } + } + + // allocated quotas + PackageContext cntx = PackageController.GetPackageContext(org.PackageId); + stats.AllocatedEnterpriseStorageSpace = cntx.Quotas[Quotas.ENTERPRISESTORAGE_DISKSTORAGESPACE].QuotaAllocatedValue; + stats.AllocatedEnterpriseStorageFolders = cntx.Quotas[Quotas.ENTERPRISESTORAGE_FOLDERS].QuotaAllocatedValue; + + return stats; + } + catch (Exception ex) + { + throw TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + } + + #endregion } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Files/FilesController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Files/FilesController.cs index cffcc6db..ea8ab649 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Files/FilesController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Files/FilesController.cs @@ -910,7 +910,7 @@ namespace WebsitePanel.EnterpriseServer return users.ToArray(); } - public static int SetFolderQuota(int packageId, string path, string driveName,string quotas) + public static int SetFolderQuota(int packageId, string path, string driveName, string quotas) { // check account @@ -948,7 +948,7 @@ namespace WebsitePanel.EnterpriseServer OS.OperatingSystem os = GetOS(packageId); - os.SetQuotaLimitOnFolder(path, driveName, diskSpaceQuota.QuotaAllocatedValue.ToString() + unit, 0, String.Empty, String.Empty); + os.SetQuotaLimitOnFolder(path, driveName, QuotaType.Hard, diskSpaceQuota.QuotaAllocatedValue.ToString() + unit, 0, String.Empty, String.Empty); return 0; } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/LyncController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/LyncController.cs index c9aaffe0..14b9082b 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/LyncController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/LyncController.cs @@ -229,6 +229,34 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution } } + if (lync.GetOrganizationTenantId(org.OrganizationId) == string.Empty) + { + PackageContext cntx = PackageController.GetPackageContext(org.PackageId); + + org.LyncTenantId = lync.CreateOrganization(org.OrganizationId, + org.DefaultDomain, + Convert.ToBoolean(cntx.Quotas[Quotas.LYNC_CONFERENCING].QuotaAllocatedValue), + Convert.ToBoolean(cntx.Quotas[Quotas.LYNC_ALLOWVIDEO].QuotaAllocatedValue), + Convert.ToInt32(cntx.Quotas[Quotas.LYNC_MAXPARTICIPANTS].QuotaAllocatedValue), + Convert.ToBoolean(cntx.Quotas[Quotas.LYNC_FEDERATION].QuotaAllocatedValue), + Convert.ToBoolean(cntx.Quotas[Quotas.LYNC_ENTERPRISEVOICE].QuotaAllocatedValue)); + + if (string.IsNullOrEmpty(org.LyncTenantId)) + { + TaskManager.CompleteResultTask(res, LyncErrorCodes.CANNOT_ENABLE_ORG); + return res; + } + else + { + PackageController.UpdatePackageItem(org); + + bReloadConfiguration = true; + } + + + } + + LyncUserPlan plan = GetLyncUserPlan(itemId, lyncUserPlanId); if (!lync.CreateUser(org.OrganizationId, user.UserPrincipalName, plan)) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs index 3a992ff8..0b63cf24 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs @@ -968,7 +968,8 @@ namespace WebsitePanel.EnterpriseServer SystemFile[] folders = EnterpriseStorageController.GetFolders(itemId); stats.CreatedEnterpriseStorageFolders = folders.Count(); - stats.UsedEnterpriseStorageSpace = (int)folders.Sum(x => x.Size); + + stats.UsedEnterpriseStorageSpace = folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB); } } else @@ -1037,10 +1038,11 @@ namespace WebsitePanel.EnterpriseServer if (cntxTmp.Groups.ContainsKey(ResourceGroups.EnterpriseStorage)) { - SystemFile[] folders = EnterpriseStorageController.GetFolders(itemId); + SystemFile[] folders = EnterpriseStorageController.GetFolders(o.Id); - stats.CreatedEnterpriseStorageFolders = folders.Count(); - stats.UsedEnterpriseStorageSpace = (int)folders.Sum(x => x.Size); + stats.CreatedEnterpriseStorageFolders += folders.Count(); + + stats.UsedEnterpriseStorageSpace += folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB); } } } @@ -1091,11 +1093,6 @@ namespace WebsitePanel.EnterpriseServer if (cntx.Groups.ContainsKey(ResourceGroups.EnterpriseStorage)) { stats.AllocatedEnterpriseStorageFolders = cntx.Quotas[Quotas.ENTERPRISESTORAGE_FOLDERS].QuotaAllocatedValue; - } - - - if (cntx.Groups.ContainsKey(ResourceGroups.EnterpriseStorage)) - { stats.AllocatedEnterpriseStorageSpace = cntx.Quotas[Quotas.ENTERPRISESTORAGE_DISKSTORAGESPACE].QuotaAllocatedValue; } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs index 4119b460..bfa15387 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs @@ -150,10 +150,27 @@ namespace WebsitePanel.EnterpriseServer } [WebMethod] - public void SetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled) + public void SetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) { EnterpriseStorageController.SetDirectoryBrowseEnabled(itemId, folder.Url, directoyBrowsingEnabled); EnterpriseStorageController.SetFolderPermission(itemId, folder.Name, permissions); + EnterpriseStorageController.SetFRSMQuotaOnFolder(itemId, folder.Name, quota, quotaType); + } + + #endregion + + #region Statistics + + [WebMethod] + public OrganizationStatistics GetStatistics(int itemId) + { + return EnterpriseStorageController.GetStatistics(itemId); + } + + [WebMethod] + public OrganizationStatistics GetStatisticsByOrganization(int itemId) + { + return EnterpriseStorageController.GetStatisticsByOrganization(itemId); } #endregion diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ILyncServer.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ILyncServer.cs index 39dee306..fa93c3a3 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ILyncServer.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ILyncServer.cs @@ -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); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/FSRMQuotaType.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/FSRMQuotaType.cs new file mode 100644 index 00000000..338d194b --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/FSRMQuotaType.cs @@ -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 + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/IOperatingSystem.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/IOperatingSystem.cs index 0877a008..23832a60 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/IOperatingSystem.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/IOperatingSystem.cs @@ -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 diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/Quota.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/Quota.cs new file mode 100644 index 00000000..13727976 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/Quota.cs @@ -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 + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/QuotaType.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/QuotaType.cs new file mode 100644 index 00000000..f470fb19 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/QuotaType.cs @@ -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 + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/SystemFile.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/SystemFile.cs index 89079c91..a788ae4e 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/SystemFile.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/OS/SystemFile.cs @@ -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; } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj b/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj index 427c0ffa..76bc8c69 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj @@ -113,6 +113,8 @@ + + diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS2012/RecordConverter.cs b/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS2012/RecordConverter.cs index 31743ea0..5be19fc8 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS2012/RecordConverter.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.DNS.MsDNS2012/RecordConverter.cs @@ -39,17 +39,18 @@ namespace WebsitePanel.Providers.DNS /// It's also possible to access native CIM object, and use Mgmtclassgen.exe for that. internal static class RecordConverter { - private static string RemoveTrailingDot( string str ) + internal static string RemoveTrailingDot( string str ) { if( !str.EndsWith( "." ) ) return str; return str.Substring( 0, str.Length - 1 ); } - private static string CorrectHost( string zoneName, string host ) + internal static string CorrectHost( string zoneName, string host ) { - if( host.ToLower() == zoneName.ToLower() ) - return ""; + if( "@" == host || host.ToLower() == zoneName.ToLower() ) + return String.Empty; + if( host.ToLower().EndsWith( "." + zoneName.ToLower() ) ) return host.Substring( 0, ( host.Length - zoneName.Length - 1 ) ); return host; diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/WebsitePanel.Providers.EnterpriseStorage.Windows2012.csproj b/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/WebsitePanel.Providers.EnterpriseStorage.Windows2012.csproj index 9e5ed6af..2ff4ba61 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/WebsitePanel.Providers.EnterpriseStorage.Windows2012.csproj +++ b/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/WebsitePanel.Providers.EnterpriseStorage.Windows2012.csproj @@ -39,6 +39,14 @@ {684C932A-6C75-46AC-A327-F3689D89EB42} WebsitePanel.Providers.Base + + {899b3048-46be-4c4d-9d41-0043c8b0d11e} + WebsitePanel.Providers.OS.Windows2003 + + + {27130bbb-76fa-411e-8b4d-51cd4dc821af} + WebsitePanel.Providers.OS.Windows2012 + {9be0317d-e42e-4ff6-9a87-8c801f046ea1} WebsitePanel.Providers.Web.IIs60 diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/Windows2012.cs b/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/Windows2012.cs index c407d08f..28896298 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/Windows2012.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.EnterpriseStorage.Windows2012/Windows2012.cs @@ -67,30 +67,41 @@ namespace WebsitePanel.Providers.EnterpriseStorage ArrayList items = new ArrayList(); string rootPath = string.Format("{0}:\\{1}\\{2}", LocationDrive, UsersHome, organizationId); + var windows = new WebsitePanel.Providers.OS.Windows2012(); + if (Directory.Exists(rootPath)) { - DirectoryInfo root = new DirectoryInfo(rootPath); IWebDav webdav = new Web.WebDav(UsersDomain); - - // get directories DirectoryInfo[] dirs = root.GetDirectories(); foreach (DirectoryInfo dir in dirs) { string fullName = System.IO.Path.Combine(rootPath, dir.Name); - SystemFile folder = new SystemFile(dir.Name, fullName, true, - FileUtils.BytesToMb(FileUtils.CalculateFolderSize(dir.FullName)), dir.CreationTime, dir.LastWriteTime); + SystemFile folder = new SystemFile(); + + folder.Name = dir.Name; + folder.FullName = dir.FullName; + folder.IsDirectory = true; + + Quota quota = windows.GetQuotaOnFolder(fullName, string.Empty, string.Empty); + + folder.Size = quota.Usage; + + if (folder.Size == -1) + { + folder.Size = FileUtils.BytesToMb(FileUtils.CalculateFolderSize(dir.FullName)); + } folder.Url = string.Format("https://{0}/{1}/{2}", UsersDomain, organizationId, dir.Name); folder.Rules = webdav.GetFolderWebDavRules(organizationId, dir.Name); - + folder.FRSMQuotaMB = quota.Size; + folder.FRSMQuotaGB = windows.ConvertMegaBytesToGB(folder.FRSMQuotaMB); + folder.FsrmQuotaType = quota.QuotaType; + items.Add(folder); - - // check if the directory is empty - folder.IsEmpty = (Directory.GetFileSystemEntries(fullName).Length == 0); } } @@ -101,17 +112,35 @@ namespace WebsitePanel.Providers.EnterpriseStorage { string fullName = string.Format("{0}:\\{1}\\{2}\\{3}", LocationDrive, UsersHome, organizationId, folderName); SystemFile folder = null; + + var windows = new WebsitePanel.Providers.OS.Windows2012(); if (Directory.Exists(fullName)) { DirectoryInfo root = new DirectoryInfo(fullName); - folder = new SystemFile(root.Name, fullName, true, - FileUtils.BytesToMb(FileUtils.CalculateFolderSize(root.FullName)), root.CreationTime, root.LastWriteTime); + folder = new SystemFile(); + + folder.Name = root.Name; + folder.FullName = root.FullName; + folder.IsDirectory = true; + + Quota quota = windows.GetQuotaOnFolder(fullName, string.Empty, string.Empty); + + folder.Size = quota.Usage; + + if (folder.Size == -1) + { + folder.Size = FileUtils.BytesToMb(FileUtils.CalculateFolderSize(root.FullName)); + } folder.Url = string.Format("https://{0}/{1}/{2}", UsersDomain, organizationId, folderName); folder.Rules = GetFolderWebDavRules(organizationId, folderName); + folder.FRSMQuotaMB = quota.Size; + folder.FRSMQuotaGB = windows.ConvertMegaBytesToGB(folder.FRSMQuotaMB); + folder.FsrmQuotaType = quota.QuotaType; } + return folder; } @@ -170,8 +199,39 @@ namespace WebsitePanel.Providers.EnterpriseStorage public bool SetFolderWebDavRules(string organizationId, string folder, WebDavFolderRule[] rules) { - IWebDav webdav = new WebDav(UsersDomain); + var users = new List(); + foreach (var rule in rules) + { + foreach (var user in rule.Users) + { + users.Add(new UserPermission + { + AccountName = user, + Read = rule.Read, + Write = rule.Write + }); + } + + foreach (var user in rule.Roles) + { + users.Add(new UserPermission + { + AccountName = user, + Read = rule.Read, + Write = rule.Write + }); + } + } + + string path = string.Format("{0}:\\{1}\\{2}\\{3}", LocationDrive, UsersHome, organizationId, folder); + + SecurityUtils.ResetNtfsPermissions(path); + + SecurityUtils.GrantGroupNtfsPermissions(path, users.ToArray(), false, new RemoteServerSettings(), null, null); + + IWebDav webdav = new WebDav(UsersDomain); + return webdav.SetFolderWebDavRules(organizationId, folder, rules); } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs index 5f34766f..e8080f56 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs @@ -483,7 +483,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd = new Command("Disable-Mailbox"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); @@ -1711,7 +1711,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd.Parameters.Add("Identity", accountName); cmd.Parameters.Add("User", account); cmd.Parameters.Add("AccessRights", accessRights); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemoveMailboxFullAccessPermission"); @@ -1786,7 +1786,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd.Parameters.Add("ChildObjectTypes", null); cmd.Parameters.Add("InheritedObjectType", null); cmd.Parameters.Add("Properties", properties); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemoveADPermission"); @@ -1802,7 +1802,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd.Parameters.Add("AccessRights", accessRights); cmd.Parameters.Add("ExtendedRights", extendedRights); cmd.Parameters.Add("Properties", properties); - //cmd.Parameters.Add("Confirm", false); + //cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("AddADPermission"); @@ -2223,7 +2223,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Remove-Mailbox"); cmd.Parameters.Add("Identity", id); cmd.Parameters.Add("Permanent", false); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); if (isPublicFolder) cmd.Parameters.Add("PublicFolder"); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemoveMailbox"); @@ -2234,7 +2234,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("DisableMailbox"); Command cmd = new Command("Disable-Mailbox"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DisableMailbox"); } @@ -3202,7 +3202,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("RemoveContact"); Command cmd = new Command("Remove-MailContact"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemoveContact"); } @@ -3509,7 +3509,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.DebugInfo("Group Id: {0}", id); Command cmd = new Command("Disable-DistributionGroup"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DisableMailSecurityDistributionGroup"); } @@ -3652,7 +3652,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("RemoveDistributionGroup"); Command cmd = new Command("Remove-DistributionGroup"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); cmd.Parameters.Add("BypassSecurityGroupManagerCheck"); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemoveDistributionGroup"); @@ -3772,7 +3772,7 @@ namespace WebsitePanel.Providers.HostedSolution foreach (string member in membersToDelete) { RemoveDistributionGroupMember(runSpace, accountName, member); - } + } //remove old manager rights if (!string.IsNullOrEmpty(manager)) @@ -3803,7 +3803,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Remove-DistributionGroupMember"); cmd.Parameters.Add("Identity", group); cmd.Parameters.Add("Member", member); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); cmd.Parameters.Add("BypassSecurityGroupManagerCheck"); ExecuteShellCommand(runSpace, cmd); } @@ -3901,7 +3901,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd = new Command("Remove-DistributionGroupMember"); cmd.Parameters.Add("Identity", accountName); cmd.Parameters.Add("Member", member); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } @@ -4504,7 +4504,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Remove-PublicFolder"); cmd.Parameters.Add("Identity", id); cmd.Parameters.Add("Recurse", new SwitchParameter(true)); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemovePublicFolder"); @@ -4526,7 +4526,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Remove-PublicFolderClientPermission"); cmd.Parameters.Add("Identity", id); cmd.Parameters.Add("User", user); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemovePublicFolderClientPermission"); } @@ -4657,7 +4657,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Disable-MailPublicFolder"); cmd.Parameters.Add("Identity", folder); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } finally @@ -4677,7 +4677,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Disable-MailPublicFolder"); cmd.Parameters.Add("Identity", folder); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); cmd = new Command("Get-PublicFolder"); @@ -4759,7 +4759,7 @@ namespace WebsitePanel.Providers.HostedSolution foreach (PSObject obj in result) { string userId = ObjToString(GetPSObjectProperty(obj, "User")); - if (userId == "Default" || userId == "Anonymous" || userId.StartsWith("NT User:") == true) + if (userId == "Default" || userId == "Anonymous" || userId.StartsWith("NT:") == true) continue; object rights = GetPSObjectProperty(obj, "AccessRights"); @@ -5289,7 +5289,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("DeleteAddressList"); Command cmd = new Command("Remove-AddressList"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DeleteAddressList"); } @@ -5302,7 +5302,7 @@ namespace WebsitePanel.Providers.HostedSolution //{ Command cmd = new Command("Remove-AddressBookPolicy"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); //} ExchangeLog.LogEnd("DeleteAddressBookPolicy"); @@ -5364,7 +5364,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("DeleteGlobalAddressList"); Command cmd = new Command("Remove-GlobalAddressList"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DeleteGlobalAddressList"); } @@ -5426,7 +5426,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("DeleteOfflineAddressBook"); Command cmd = new Command("Remove-OfflineAddressBook"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DeleteOfflineAddressBook"); } @@ -5436,7 +5436,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("DeleteAddressPolicy"); Command cmd = new Command("Remove-AddressBookPolicy"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DeleteAddressPolicy"); } @@ -6440,7 +6440,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("RemoveAcceptedDomain"); Command cmd = new Command("Remove-AcceptedDomain"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("RemoveAcceptedDomain"); } @@ -6452,7 +6452,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd.Parameters.Add("Identity", id); cmd.Parameters.Add("DomainType", domainType.ToString()); cmd.Parameters.Add("AddressBookEnabled", !(domainType == ExchangeAcceptedDomainType.InternalRelay)); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("SetAcceptedDomainType"); } @@ -6485,7 +6485,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("New-ActiveSyncMailboxPolicy"); cmd.Parameters.Add("Name", organizationId); cmd.Parameters.Add("AllowNonProvisionableDevices", true); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); Collection result = ExecuteShellCommand(runSpace, cmd); string id = GetResultObjectIdentity(result); ExchangeLog.LogEnd("CreateActiveSyncPolicy"); @@ -6497,7 +6497,7 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogStart("DeleteActiveSyncPolicy"); Command cmd = new Command("Remove-ActiveSyncMailboxPolicy"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); ExchangeLog.LogEnd("DeleteActiveSyncPolicy"); } @@ -6749,7 +6749,7 @@ namespace WebsitePanel.Providers.HostedSolution runSpace = OpenRunspace(); Command cmd = new Command("Clear-ActiveSyncDevice"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } finally @@ -6769,7 +6769,7 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Clear-ActiveSyncDevice"); cmd.Parameters.Add("Identity", id); cmd.Parameters.Add("Cancel", true); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } finally @@ -6809,7 +6809,7 @@ namespace WebsitePanel.Providers.HostedSolution cmd = new Command("Remove-ActiveSyncDevice"); cmd.Parameters.Add("Identity", device.DeviceID); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } } @@ -6831,7 +6831,7 @@ namespace WebsitePanel.Providers.HostedSolution runSpace = OpenRunspace(); Command cmd = new Command("Remove-ActiveSyncDevice"); cmd.Parameters.Add("Identity", id); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } finally @@ -7317,7 +7317,7 @@ namespace WebsitePanel.Providers.HostedSolution runSpace = OpenRunspace(); Command cmd = new Command("Remove-TransportRule"); cmd.Parameters.Add("Identity", Name); - cmd.Parameters.Add("Confirm", false); + cmd.Parameters.Add("Confirm", new SwitchParameter(false)); ExecuteShellCommand(runSpace, cmd); } catch (Exception exc) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/LyncBase.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/LyncBase.cs index 7894d701..70b244db 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/LyncBase.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/LyncBase.cs @@ -84,6 +84,11 @@ namespace WebsitePanel.Providers.HostedSolution return CreateOrganizationInternal(organizationId, sipDomain, enableConferencingVideo, maxConferenceSize, enabledFederation, enabledEnterpriseVoice); } + public virtual string GetOrganizationTenantId(string organizationId) + { + return "NoHostingPack"; + } + public virtual bool DeleteOrganization(string organizationId, string sipDomain) { return DeleteOrganizationInternal(organizationId, sipDomain); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013HP/Lync2013HP.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013HP/Lync2013HP.cs index 32909339..a06670a2 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013HP/Lync2013HP.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013HP/Lync2013HP.cs @@ -112,6 +112,11 @@ namespace WebsitePanel.Providers.HostedSolution return CreateOrganizationInternal(organizationId, sipDomain, enableConferencing, enableConferencingVideo, maxConferenceSize, enabledFederation, enabledEnterpriseVoice); } + public string GetOrganizationTenantId(string organizationId) + { + return GetOrganizationTenantIdInternal(organizationId); + } + public bool DeleteOrganization(string organizationId, string sipDomain) { return DeleteOrganizationInternal(organizationId, sipDomain); @@ -277,7 +282,42 @@ namespace WebsitePanel.Providers.HostedSolution return TenantId; } + private string GetOrganizationTenantIdInternal(string organizationId) + { + HostedSolutionLog.LogStart("GetOrganizationTenantIdInternal"); + HostedSolutionLog.DebugInfo("organizationId: {0}", organizationId); + string tenantIdStr = string.Empty; + + Runspace runSpace = null; + try + { + runSpace = OpenRunspace(); + + Command cmd = new Command("Get-CsTenant"); + cmd.Parameters.Add("Identity", GetOrganizationPath(organizationId)); + Collection result = ExecuteShellCommand(runSpace, cmd, false); + if ((result != null) && (result.Count > 0)) + { + Guid tenantId = (Guid)GetPSObjectProperty(result[0], "TenantId"); + + tenantIdStr = tenantId.ToString(); + } + + } + catch (Exception ex) + { + HostedSolutionLog.LogError("GetOrganizationTenantIdInternal", ex); + throw; + } + finally + { + + CloseRunspace(runSpace); + } + HostedSolutionLog.LogEnd("GetOrganizationTenantIdnInternal"); + return tenantIdStr; + } private bool DeleteOrganizationInternal(string organizationId, string sipDomain) { @@ -508,7 +548,7 @@ namespace WebsitePanel.Providers.HostedSolution HostedSolutionLog.DebugInfo("organizationId: {0}", organizationId); HostedSolutionLog.DebugInfo("userUpn: {0}", userUpn); - LyncUser lyncUser = new LyncUser(); + LyncUser lyncUser = null; Runspace runSpace = null; try { @@ -517,15 +557,24 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Get-CsUser"); cmd.Parameters.Add("Identity", userUpn); Collection result = ExecuteShellCommand(runSpace, cmd); - PSObject user = result[0]; - lyncUser.DisplayName = (string)GetPSObjectProperty(user, "DisplayName"); - lyncUser.SipAddress = (string)GetPSObjectProperty(user, "SipAddress"); - lyncUser.LineUri = (string)GetPSObjectProperty(user, "LineURI"); + if ((result != null) && (result.Count > 0)) + { + PSObject user = result[0]; + + lyncUser = new LyncUser(); + + lyncUser.DisplayName = (string)GetPSObjectProperty(user, "DisplayName"); + lyncUser.SipAddress = (string)GetPSObjectProperty(user, "SipAddress"); + lyncUser.LineUri = (string)GetPSObjectProperty(user, "LineURI"); + + lyncUser.SipAddress = lyncUser.SipAddress.ToLower().Replace("sip:", ""); + lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:+", ""); + lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:", ""); + } + else + HostedSolutionLog.LogInfo("GetLyncUserGeneralSettingsInternal: No info found"); - lyncUser.SipAddress = lyncUser.SipAddress.ToLower().Replace("sip:", ""); - lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:+", ""); - lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:", ""); } catch (Exception ex) { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/ExchangeLog.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/ExchangeLog.cs index 752514f0..108a7123 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/ExchangeLog.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/ExchangeLog.cs @@ -27,6 +27,7 @@ // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. using System; +using System.Management.Automation; using System.Management.Automation.Runspaces; using System.Text; using WebsitePanel.Server.Utils; @@ -87,10 +88,9 @@ namespace WebsitePanel.Providers.HostedSolution foreach (CommandParameter parameter in cmd.Parameters) { string formatString = " -{0} {1}"; - if (parameter.Value is string) - formatString = " -{0} '{1}'"; - else if (parameter.Value is bool) - formatString = " -{0} ${1}"; + if (parameter.Value is string) formatString = " -{0} '{1}'"; + else if (parameter.Value is SwitchParameter) formatString = " -{0}:${1}"; + else if (parameter.Value is bool) formatString = " -{0} ${1}"; sb.AppendFormat(formatString, parameter.Name, parameter.Value); } Log.WriteInfo("{0} {1}", LogPrefix, sb.ToString()); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Lync2010.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Lync2010.cs index 6eb6cf54..a292f0b1 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Lync2010.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Lync2010.cs @@ -112,6 +112,11 @@ namespace WebsitePanel.Providers.HostedSolution return CreateOrganizationInternal(organizationId, sipDomain, enableConferencing, enableConferencingVideo, maxConferenceSize, enabledFederation, enabledEnterpriseVoice); } + public string GetOrganizationTenantId(string organizationId) + { + return GetOrganizationTenantIdInternal(organizationId); + } + public bool DeleteOrganization(string organizationId, string sipDomain) { return DeleteOrganizationInternal(organizationId, sipDomain); @@ -276,7 +281,42 @@ namespace WebsitePanel.Providers.HostedSolution return TenantId; } + private string GetOrganizationTenantIdInternal(string organizationId) + { + HostedSolutionLog.LogStart("GetOrganizationTenantIdInternal"); + HostedSolutionLog.DebugInfo("organizationId: {0}", organizationId); + string tenantIdStr = string.Empty; + + Runspace runSpace = null; + try + { + runSpace = OpenRunspace(); + + Command cmd = new Command("Get-CsTenant"); + cmd.Parameters.Add("Identity", GetOrganizationPath(organizationId)); + Collection result = ExecuteShellCommand(runSpace, cmd, false); + if ((result != null) && (result.Count > 0)) + { + Guid tenantId = (Guid)GetPSObjectProperty(result[0], "TenantId"); + + tenantIdStr = tenantId.ToString(); + } + + } + catch (Exception ex) + { + HostedSolutionLog.LogError("GetOrganizationTenantIdInternal", ex); + throw; + } + finally + { + + CloseRunspace(runSpace); + } + HostedSolutionLog.LogEnd("GetOrganizationTenantIdnInternal"); + return tenantIdStr; + } private bool DeleteOrganizationInternal(string organizationId, string sipDomain) { @@ -507,7 +547,7 @@ namespace WebsitePanel.Providers.HostedSolution HostedSolutionLog.DebugInfo("organizationId: {0}", organizationId); HostedSolutionLog.DebugInfo("userUpn: {0}", userUpn); - LyncUser lyncUser = new LyncUser(); + LyncUser lyncUser = null; Runspace runSpace = null; try { @@ -516,15 +556,24 @@ namespace WebsitePanel.Providers.HostedSolution Command cmd = new Command("Get-CsUser"); cmd.Parameters.Add("Identity", userUpn); Collection result = ExecuteShellCommand(runSpace, cmd); - PSObject user = result[0]; - lyncUser.DisplayName = (string)GetPSObjectProperty(user, "DisplayName"); - lyncUser.SipAddress = (string)GetPSObjectProperty(user, "SipAddress"); - lyncUser.LineUri = (string)GetPSObjectProperty(user, "LineURI"); + if ((result != null) && (result.Count > 0)) + { + PSObject user = result[0]; + + lyncUser = new LyncUser(); + + lyncUser.DisplayName = (string)GetPSObjectProperty(user, "DisplayName"); + lyncUser.SipAddress = (string)GetPSObjectProperty(user, "SipAddress"); + lyncUser.LineUri = (string)GetPSObjectProperty(user, "LineURI"); + + lyncUser.SipAddress = lyncUser.SipAddress.ToLower().Replace("sip:", ""); + lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:+", ""); + lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:", ""); + } + else + HostedSolutionLog.LogInfo("GetLyncUserGeneralSettingsInternal: No info found"); - lyncUser.SipAddress = lyncUser.SipAddress.ToLower().Replace("sip:", ""); - lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:+", ""); - lyncUser.LineUri = lyncUser.LineUri.ToLower().Replace("tel:", ""); } catch (Exception ex) { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Mail.SmarterMail10/SmarterMail10.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Mail.SmarterMail10/SmarterMail10.cs index 2fd4a4d7..9ec4f35d 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Mail.SmarterMail10/SmarterMail10.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Mail.SmarterMail10/SmarterMail10.cs @@ -54,12 +54,12 @@ namespace WebsitePanel.Providers.Mail "whocanpost", "prependsubject", "maxmessagesize", - //"maxrecipients", + "maxrecipients", "replytolist", "subject", - //"listtoaddress", - //"listfromaddress", - //"listreplytoaddress", + "listtoaddress", + "listfromaddress", + "listreplytoaddress", "digestmode", "sendsubscribe", "sendunsubscribe", @@ -1875,7 +1875,7 @@ namespace WebsitePanel.Providers.Mail settings.Add(string.Concat("prependsubject=", list.EnableSubjectPrefix)); settings.Add(string.Concat("maxmessagesize=", list.MaxMessageSize)); - //settings.Add(string.Concat("maxrecipients=", list.MaxRecipientsPerMessage)); + settings.Add(string.Concat("maxrecipients=", list.MaxRecipientsPerMessage)); settings.Add(string.Concat("subject=", list.SubjectPrefix)); switch (list.ReplyToMode) @@ -1885,9 +1885,9 @@ namespace WebsitePanel.Providers.Mail break; } - //settings.Add(string.Concat("listtoaddress=", list.ListToAddress)); - //settings.Add(string.Concat("listfromaddress=", list.ListFromAddress)); - //settings.Add(string.Concat("listreplytoaddress=", list.ListReplyToAddress)); + settings.Add(string.Concat("listtoaddress=", list.ListToAddress)); + settings.Add(string.Concat("listfromaddress=", list.ListFromAddress)); + settings.Add(string.Concat("listreplytoaddress=", list.ListReplyToAddress)); settings.Add(string.Concat("digestmode=", list.DigestMode)); settings.Add(string.Concat("sendsubscribe=", list.SendSubscribe)); settings.Add(string.Concat("sendunsubscribe=", list.SendUnsubscribe)); @@ -1959,7 +1959,7 @@ namespace WebsitePanel.Providers.Mail settings.Add(string.Concat("prependsubject=", list.EnableSubjectPrefix)); settings.Add(string.Concat("maxmessagesize=", list.MaxMessageSize)); - //settings.Add(string.Concat("maxrecipients=", list.MaxRecipientsPerMessage)); + settings.Add(string.Concat("maxrecipients=", list.MaxRecipientsPerMessage)); settings.Add(string.Concat("subject=", list.SubjectPrefix)); switch (list.ReplyToMode) @@ -1972,9 +1972,9 @@ namespace WebsitePanel.Providers.Mail break; } - //settings.Add(string.Concat("listtoaddress=", list.ListToAddress)); - //settings.Add(string.Concat("listfromaddress=", list.ListFromAddress)); - //settings.Add(string.Concat("listreplytoaddress=", list.ListReplyToAddress)); + settings.Add(string.Concat("listtoaddress=", list.ListToAddress)); + settings.Add(string.Concat("listfromaddress=", list.ListFromAddress)); + settings.Add(string.Concat("listreplytoaddress=", list.ListReplyToAddress)); settings.Add(string.Concat("digestmode=", list.DigestMode)); settings.Add(string.Concat("sendsubscribe=", list.SendSubscribe)); settings.Add(string.Concat("sendunsubscribe=", list.SendUnsubscribe)); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2003/Windows2003.cs b/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2003/Windows2003.cs index f9c8026b..80d66840 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2003/Windows2003.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2003/Windows2003.cs @@ -209,12 +209,17 @@ namespace WebsitePanel.Providers.OS SecurityUtils.GrantGroupNtfsPermissions(path, users, resetChildPermissions, ServerSettings, usersOU, null); } - - public virtual void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword) + + public virtual void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword) { FileUtils.SetQuotaLimitOnFolder(folderPath, shareNameDrive, quotaLimit, mode, wmiUserName, wmiPassword); } + public virtual Quota GetQuotaOnFolder(string folderPath, string wmiUserName, string wmiPassword) + { + throw new NotImplementedException(); + } + public virtual void DeleteDirectoryRecursive(string rootPath) { FileUtils.DeleteDirectoryRecursive(rootPath); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2012/Windows2012.cs b/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2012/Windows2012.cs index 238cbc0c..4d05643c 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2012/Windows2012.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.OS.Windows2012/Windows2012.cs @@ -74,7 +74,7 @@ namespace WebsitePanel.Providers.OS || version == WebsitePanel.Server.Utils.OS.WindowsVersion.Windows81; } - public override void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword) + public override void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword) { Log.WriteStart("SetQuotaLimitOnFolder"); Log.WriteInfo("FolderPath : {0}", folderPath); @@ -82,7 +82,6 @@ namespace WebsitePanel.Providers.OS Log.WriteInfo("QuotaLimit : {0}", quotaLimit); string path = Path.Combine(shareNameDrive + @":\", folderPath); - var quota = CalculateQuota(quotaLimit); Runspace runSpace = null; try @@ -94,21 +93,30 @@ namespace WebsitePanel.Providers.OS if (!FileUtils.DirectoryExists(path)) FileUtils.CreateDirectory(path); - switch (mode) + if (quotaLimit.Contains("-")) { + RemoveOldQuotaOnFolder(runSpace, path); + } + else + { + var quota = CalculateQuota(quotaLimit); + + switch (mode) + { //deleting old quota and creating new one - case 0: - { - RemoveOldQuotaOnFolder(runSpace, path); - ChangeQuotaOnFolder(runSpace, "New-FsrmQuota", path, quota); - break; - } + case 0: + { + RemoveOldQuotaOnFolder(runSpace, path); + ChangeQuotaOnFolder(runSpace, "New-FsrmQuota", path, quotaType, quota); + break; + } //modifying folder quota - case 1: - { - ChangeQuotaOnFolder(runSpace, "Set-FsrmQuota", path, quota); - break; - } + case 1: + { + ChangeQuotaOnFolder(runSpace, "Set-FsrmQuota", path, quotaType, quota); + break; + } + } } } } @@ -125,6 +133,48 @@ namespace WebsitePanel.Providers.OS Log.WriteEnd("SetQuotaLimitOnFolder"); } + public override Quota GetQuotaOnFolder(string folderPath, string wmiUserName, string wmiPassword) + { + Log.WriteStart("GetQuotaLimitOnFolder"); + Log.WriteInfo("FolderPath : {0}", folderPath); + + + Runspace runSpace = null; + Quota quota = new Quota(); + + try + { + runSpace = OpenRunspace(); + + if (folderPath.IndexOfAny(Path.GetInvalidPathChars()) == -1) + { + Command cmd = new Command("Get-FsrmQuota"); + cmd.Parameters.Add("Path", folderPath); + var result = ExecuteShellCommand(runSpace, cmd, false); + + if (result.Count > 0) + { + quota.Size = ConvertBytesToMB(Convert.ToInt64(GetPSObjectProperty(result[0], "Size"))); + quota.QuotaType = Convert.ToBoolean(GetPSObjectProperty(result[0], "SoftLimit")) ? QuotaType.Soft : QuotaType.Hard; + quota.Usage = ConvertBytesToMB(Convert.ToInt64(GetPSObjectProperty(result[0], "usage"))); + } + } + } + catch (Exception ex) + { + Log.WriteError("GetQuotaLimitOnFolder", ex); + throw; + } + finally + { + CloseRunspace(runSpace); + } + + Log.WriteEnd("GetQuotaLimitOnFolder"); + + return quota; + } + public UInt64 CalculateQuota(string quota) { UInt64 OneKb = 1024; @@ -150,6 +200,27 @@ namespace WebsitePanel.Providers.OS return result; } + public int ConvertMegaBytesToGB(int megabytes) + { + int OneGb = 1024; + + if (megabytes == -1) + return megabytes; + + return (int)(megabytes/ OneGb); + } + + public int ConvertBytesToMB(long bytes) + { + int OneKb = 1024; + int OneMb = OneKb * 1024; + + if (bytes == 0) + return 0; + + return (int)(bytes / OneMb); + } + public void RemoveOldQuotaOnFolder(Runspace runSpace, string path) { try @@ -165,11 +236,17 @@ namespace WebsitePanel.Providers.OS catch { /* do nothing */ } } - public void ChangeQuotaOnFolder(Runspace runSpace, string command, string path, UInt64 quota) + public void ChangeQuotaOnFolder(Runspace runSpace, string command, string path, QuotaType quotaType, UInt64 quota) { Command cmd = new Command(command); cmd.Parameters.Add("Path", path); cmd.Parameters.Add("Size", quota); + + if (quotaType == QuotaType.Soft) + { + cmd.Parameters.Add("SoftLimit", true); + } + ExecuteShellCommand(runSpace, cmd, false); } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs index 8bfe4837..06153131 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs @@ -350,10 +350,14 @@ namespace WebsitePanel.Providers.Web.HeliconZoo switchboardCollection.Clear(); - ConfigurationElement elementDisableAll = switchboardCollection.CreateElement(); - elementDisableAll.SetAttributeValue("name", "*"); - SetSwitchBoardValue(elementDisableAll, false); - switchboardCollection.Add(elementDisableAll); + // first disable all engines if "*" is not present in input engineNames + if (!engineNames.Contains("*")) + { + ConfigurationElement elementDisableAll = switchboardCollection.CreateElement(); + elementDisableAll.SetAttributeValue("name", "*"); + SetSwitchBoardValue(elementDisableAll, false); + switchboardCollection.Add(elementDisableAll); + } foreach (string engineName in engineNames) { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/WebObjectsModuleService.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/WebObjectsModuleService.cs index 112a4e7e..3c9ab7b7 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/WebObjectsModuleService.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/WebObjectsModuleService.cs @@ -675,52 +675,48 @@ namespace WebsitePanel.Providers.Web.Iis.WebObjects // foreach (var item in iisObject.Applications) { - - + Configuration cfg = item.GetWebConfiguration(); + string location = siteId + ConfigurationUtility.GetQualifiedVirtualPath(item.Path); + ConfigurationSection section; try { - - Configuration cfg = item.GetWebConfiguration(); - string location = siteId + ConfigurationUtility.GetQualifiedVirtualPath(item.Path); - ConfigurationSection section = cfg.GetSection("system.webServer/heliconZoo", location); - - if (section.GetCollection().Count > 0) - { - WebVirtualDirectory vdir = new WebVirtualDirectory - { - Name = ConfigurationUtility.GetNonQualifiedVirtualPath(item.Path), - ContentPath = item.VirtualDirectories[0].PhysicalPath - }; - - ConfigurationElement zooAppElement = section.GetCollection()[0]; - ConfigurationElementCollection envColl = zooAppElement.GetChildElement("environmentVariables").GetCollection(); - - foreach (ConfigurationElement env in envColl) - { - if ((string) env.GetAttributeValue("name") == "CONSOLE_URL") - { - vdir.ConsoleUrl = ConfigurationUtility.GetQualifiedVirtualPath(item.Path); - if (!vdir.ConsoleUrl.EndsWith("/")) - { - vdir.ConsoleUrl += "/"; - } - vdir.ConsoleUrl += (string)env.GetAttributeValue("value"); - } - } - - vdirs.Add(vdir); - - } - - + section = cfg.GetSection("system.webServer/heliconZoo", location); } - catch (Exception) + catch(Exception) { - //there is no zoo - throw; + // looks like Helicon Zoo is not installed, return empty array + return vdirs.ToArray(); + } + + if (section.GetCollection().Count > 0) + { + WebVirtualDirectory vdir = new WebVirtualDirectory + { + Name = ConfigurationUtility.GetNonQualifiedVirtualPath(item.Path), + ContentPath = item.VirtualDirectories[0].PhysicalPath + }; + + ConfigurationElement zooAppElement = section.GetCollection()[0]; + ConfigurationElementCollection envColl = zooAppElement.GetChildElement("environmentVariables").GetCollection(); + + foreach (ConfigurationElement env in envColl) + { + if ((string) env.GetAttributeValue("name") == "CONSOLE_URL") + { + vdir.ConsoleUrl = ConfigurationUtility.GetQualifiedVirtualPath(item.Path); + if (!vdir.ConsoleUrl.EndsWith("/")) + { + vdir.ConsoleUrl += "/"; + } + vdir.ConsoleUrl += (string)env.GetAttributeValue("value"); + } + } + + vdirs.Add(vdir); + } } - // + return vdirs.ToArray(); } diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/LyncServerProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/LyncServerProxy.cs index afb3f428..327e519c 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/LyncServerProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/LyncServerProxy.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2012, Outercurve Foundation. +// Copyright (c) 2012, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, @@ -29,7 +29,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.6400 +// Runtime Version:2.0.50727.5466 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -37,11 +37,11 @@ //------------------------------------------------------------------------------ // -// This source code was auto-generated by wsdl, Version=2.0.50727.3038. +// This source code was auto-generated by wsdl, Version=2.0.50727.42. // - using WebsitePanel.Providers.HostedSolution; + namespace WebsitePanel.Providers.Lync { using System.Xml.Serialization; using System.Web.Services; @@ -52,7 +52,7 @@ namespace WebsitePanel.Providers.Lync { /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="LyncServerSoap", Namespace="http://smbsaas/websitepanel/server/")] @@ -62,6 +62,8 @@ namespace WebsitePanel.Providers.Lync { private System.Threading.SendOrPostCallback CreateOrganizationOperationCompleted; + private System.Threading.SendOrPostCallback GetOrganizationTenantIdOperationCompleted; + private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted; private System.Threading.SendOrPostCallback CreateUserOperationCompleted; @@ -82,6 +84,8 @@ namespace WebsitePanel.Providers.Lync { private System.Threading.SendOrPostCallback ReloadConfigurationOperationCompleted; + private System.Threading.SendOrPostCallback GetPolicyListOperationCompleted; + /// public LyncServer() { this.Url = "http://localhost:9003/LyncServer.asmx"; @@ -90,6 +94,9 @@ namespace WebsitePanel.Providers.Lync { /// public event CreateOrganizationCompletedEventHandler CreateOrganizationCompleted; + /// + public event GetOrganizationTenantIdCompletedEventHandler GetOrganizationTenantIdCompleted; + /// public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted; @@ -120,6 +127,9 @@ namespace WebsitePanel.Providers.Lync { /// public event ReloadConfigurationCompletedEventHandler ReloadConfigurationCompleted; + /// + public event GetPolicyListCompletedEventHandler GetPolicyListCompleted; + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganization", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] @@ -180,6 +190,48 @@ namespace WebsitePanel.Providers.Lync { } } + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetOrganizationTenantId", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string GetOrganizationTenantId(string organizationId) { + object[] results = this.Invoke("GetOrganizationTenantId", new object[] { + organizationId}); + return ((string)(results[0])); + } + + /// + public System.IAsyncResult BeginGetOrganizationTenantId(string organizationId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetOrganizationTenantId", new object[] { + organizationId}, callback, asyncState); + } + + /// + public string EndGetOrganizationTenantId(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((string)(results[0])); + } + + /// + public void GetOrganizationTenantIdAsync(string organizationId) { + this.GetOrganizationTenantIdAsync(organizationId, null); + } + + /// + public void GetOrganizationTenantIdAsync(string organizationId, object userState) { + if ((this.GetOrganizationTenantIdOperationCompleted == null)) { + this.GetOrganizationTenantIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationTenantIdOperationCompleted); + } + this.InvokeAsync("GetOrganizationTenantId", new object[] { + organizationId}, this.GetOrganizationTenantIdOperationCompleted, userState); + } + + private void OnGetOrganizationTenantIdOperationCompleted(object arg) { + if ((this.GetOrganizationTenantIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetOrganizationTenantIdCompleted(this, new GetOrganizationTenantIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganization", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] @@ -627,17 +679,52 @@ namespace WebsitePanel.Providers.Lync { this.ReloadConfigurationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPolicyList", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string[] GetPolicyList(LyncPolicyType type, string name) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPolicyList", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string[] GetPolicyList(LyncPolicyType type, string name) { object[] results = this.Invoke("GetPolicyList", new object[] { - type, name}); + type, + name}); return ((string[])(results[0])); } + /// + public System.IAsyncResult BeginGetPolicyList(LyncPolicyType type, string name, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetPolicyList", new object[] { + type, + name}, callback, asyncState); + } + + /// + public string[] EndGetPolicyList(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((string[])(results[0])); + } + + /// + public void GetPolicyListAsync(LyncPolicyType type, string name) { + this.GetPolicyListAsync(type, name, null); + } + + /// + public void GetPolicyListAsync(LyncPolicyType type, string name, object userState) { + if ((this.GetPolicyListOperationCompleted == null)) { + this.GetPolicyListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPolicyListOperationCompleted); + } + this.InvokeAsync("GetPolicyList", new object[] { + type, + name}, this.GetPolicyListOperationCompleted, userState); + } + + private void OnGetPolicyListOperationCompleted(object arg) { + if ((this.GetPolicyListCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetPolicyListCompleted(this, new GetPolicyListCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// public new void CancelAsync(object userState) { base.CancelAsync(userState); @@ -645,11 +732,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateOrganizationCompletedEventHandler(object sender, CreateOrganizationCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CreateOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -671,11 +758,37 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetOrganizationTenantIdCompletedEventHandler(object sender, GetOrganizationTenantIdCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetOrganizationTenantIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetOrganizationTenantIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public string Result { + get { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteOrganizationCompletedEventHandler(object sender, DeleteOrganizationCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DeleteOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -697,11 +810,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreateUserCompletedEventHandler(object sender, CreateUserCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class CreateUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -723,11 +836,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetLyncUserGeneralSettingsCompletedEventHandler(object sender, GetLyncUserGeneralSettingsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetLyncUserGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -749,11 +862,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetLyncUserGeneralSettingsCompletedEventHandler(object sender, SetLyncUserGeneralSettingsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SetLyncUserGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -775,11 +888,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void SetLyncUserPlanCompletedEventHandler(object sender, SetLyncUserPlanCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SetLyncUserPlanCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -801,11 +914,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void DeleteUserCompletedEventHandler(object sender, DeleteUserCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class DeleteUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -827,11 +940,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetFederationDomainsCompletedEventHandler(object sender, GetFederationDomainsCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetFederationDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -853,11 +966,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void AddFederationDomainCompletedEventHandler(object sender, AddFederationDomainCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class AddFederationDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -879,11 +992,11 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void RemoveFederationDomainCompletedEventHandler(object sender, RemoveFederationDomainCompletedEventArgs e); /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class RemoveFederationDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { @@ -905,6 +1018,32 @@ namespace WebsitePanel.Providers.Lync { } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void ReloadConfigurationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetPolicyListCompletedEventHandler(object sender, GetPolicyListCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetPolicyListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetPolicyListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public string[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((string[])(this.results[0])); + } + } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/OperatingSystemProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/OperatingSystemProxy.cs index b6675706..d1dc1811 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/OperatingSystemProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/OperatingSystemProxy.cs @@ -1,35 +1,7 @@ -// 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.1433 +// Runtime Version:2.0.50727.4984 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -39,564 +11,633 @@ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // -namespace WebsitePanel.Providers.OS { - using System.Diagnostics; +namespace WebsitePanel.Providers.OS +{ + using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; - using System.Xml.Serialization; - - + using System.Diagnostics; + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name="OperatingSystemSoap", Namespace="http://smbsaas/websitepanel/server/")] + [System.Web.Services.WebServiceBindingAttribute(Name = "OperatingSystemSoap", Namespace = "http://smbsaas/websitepanel/server/")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class OperatingSystem : Microsoft.Web.Services3.WebServicesClientProtocol { - + public partial class OperatingSystem : Microsoft.Web.Services3.WebServicesClientProtocol + { + public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; - + private System.Threading.SendOrPostCallback CreatePackageFolderOperationCompleted; - + private System.Threading.SendOrPostCallback FileExistsOperationCompleted; - + private System.Threading.SendOrPostCallback DirectoryExistsOperationCompleted; - + private System.Threading.SendOrPostCallback GetFileOperationCompleted; - + private System.Threading.SendOrPostCallback GetFilesOperationCompleted; - + private System.Threading.SendOrPostCallback GetDirectoriesRecursiveOperationCompleted; - + private System.Threading.SendOrPostCallback GetFilesRecursiveOperationCompleted; - + private System.Threading.SendOrPostCallback GetFilesRecursiveByPatternOperationCompleted; - + private System.Threading.SendOrPostCallback GetFileBinaryContentOperationCompleted; - + private System.Threading.SendOrPostCallback GetFileBinaryContentUsingEncodingOperationCompleted; - + private System.Threading.SendOrPostCallback GetFileBinaryChunkOperationCompleted; - + private System.Threading.SendOrPostCallback GetFileTextContentOperationCompleted; - + private System.Threading.SendOrPostCallback CreateFileOperationCompleted; - + private System.Threading.SendOrPostCallback CreateDirectoryOperationCompleted; - + private System.Threading.SendOrPostCallback ChangeFileAttributesOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteFileOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteFilesOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteEmptyDirectoriesOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateFileBinaryContentOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateFileBinaryContentUsingEncodingOperationCompleted; - + private System.Threading.SendOrPostCallback AppendFileBinaryContentOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateFileTextContentOperationCompleted; - + private System.Threading.SendOrPostCallback MoveFileOperationCompleted; - + private System.Threading.SendOrPostCallback CopyFileOperationCompleted; - + private System.Threading.SendOrPostCallback ZipFilesOperationCompleted; - + private System.Threading.SendOrPostCallback UnzipFilesOperationCompleted; - + private System.Threading.SendOrPostCallback CreateAccessDatabaseOperationCompleted; - + private System.Threading.SendOrPostCallback GetGroupNtfsPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GrantGroupNtfsPermissionsOperationCompleted; - - private System.Threading.SendOrPostCallback GetFolderGraphOperationCompleted; - - private System.Threading.SendOrPostCallback ExecuteSyncActionsOperationCompleted; - - private System.Threading.SendOrPostCallback GetInstalledOdbcDriversOperationCompleted; - - private System.Threading.SendOrPostCallback GetDSNNamesOperationCompleted; - - private System.Threading.SendOrPostCallback GetDSNOperationCompleted; - - private System.Threading.SendOrPostCallback CreateDSNOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateDSNOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteDSNOperationCompleted; private System.Threading.SendOrPostCallback SetQuotaLimitOnFolderOperationCompleted; + private System.Threading.SendOrPostCallback GetQuotaLimitOnFolderOperationCompleted; + private System.Threading.SendOrPostCallback DeleteDirectoryRecursiveOperationCompleted; private System.Threading.SendOrPostCallback CheckFileServicesInstallationOperationCompleted; - + + private System.Threading.SendOrPostCallback GetFolderGraphOperationCompleted; + + private System.Threading.SendOrPostCallback ExecuteSyncActionsOperationCompleted; + + private System.Threading.SendOrPostCallback GetInstalledOdbcDriversOperationCompleted; + + private System.Threading.SendOrPostCallback GetDSNNamesOperationCompleted; + + private System.Threading.SendOrPostCallback GetDSNOperationCompleted; + + private System.Threading.SendOrPostCallback CreateDSNOperationCompleted; + + private System.Threading.SendOrPostCallback UpdateDSNOperationCompleted; + + private System.Threading.SendOrPostCallback DeleteDSNOperationCompleted; + /// - public OperatingSystem() { - this.Url = "http://localhost/Server/OperatingSystem.asmx"; + public OperatingSystem() + { + this.Url = "http://localhost:9004/OperatingSystem.asmx"; } - + /// public event CreatePackageFolderCompletedEventHandler CreatePackageFolderCompleted; - + /// public event FileExistsCompletedEventHandler FileExistsCompleted; - + /// public event DirectoryExistsCompletedEventHandler DirectoryExistsCompleted; - + /// public event GetFileCompletedEventHandler GetFileCompleted; - + /// public event GetFilesCompletedEventHandler GetFilesCompleted; - + /// public event GetDirectoriesRecursiveCompletedEventHandler GetDirectoriesRecursiveCompleted; - + /// public event GetFilesRecursiveCompletedEventHandler GetFilesRecursiveCompleted; - + /// public event GetFilesRecursiveByPatternCompletedEventHandler GetFilesRecursiveByPatternCompleted; - + /// public event GetFileBinaryContentCompletedEventHandler GetFileBinaryContentCompleted; - + /// public event GetFileBinaryContentUsingEncodingCompletedEventHandler GetFileBinaryContentUsingEncodingCompleted; - + /// public event GetFileBinaryChunkCompletedEventHandler GetFileBinaryChunkCompleted; - + /// public event GetFileTextContentCompletedEventHandler GetFileTextContentCompleted; - + /// public event CreateFileCompletedEventHandler CreateFileCompleted; - + /// public event CreateDirectoryCompletedEventHandler CreateDirectoryCompleted; - + /// public event ChangeFileAttributesCompletedEventHandler ChangeFileAttributesCompleted; - + /// public event DeleteFileCompletedEventHandler DeleteFileCompleted; - + /// public event DeleteFilesCompletedEventHandler DeleteFilesCompleted; - + /// public event DeleteEmptyDirectoriesCompletedEventHandler DeleteEmptyDirectoriesCompleted; - + /// public event UpdateFileBinaryContentCompletedEventHandler UpdateFileBinaryContentCompleted; - + /// public event UpdateFileBinaryContentUsingEncodingCompletedEventHandler UpdateFileBinaryContentUsingEncodingCompleted; - + /// public event AppendFileBinaryContentCompletedEventHandler AppendFileBinaryContentCompleted; - + /// public event UpdateFileTextContentCompletedEventHandler UpdateFileTextContentCompleted; - + /// public event MoveFileCompletedEventHandler MoveFileCompleted; - + /// public event CopyFileCompletedEventHandler CopyFileCompleted; - + /// public event ZipFilesCompletedEventHandler ZipFilesCompleted; - + /// public event UnzipFilesCompletedEventHandler UnzipFilesCompleted; - + /// public event CreateAccessDatabaseCompletedEventHandler CreateAccessDatabaseCompleted; - + /// public event GetGroupNtfsPermissionsCompletedEventHandler GetGroupNtfsPermissionsCompleted; - + /// public event GrantGroupNtfsPermissionsCompletedEventHandler GrantGroupNtfsPermissionsCompleted; - - /// - public event GetFolderGraphCompletedEventHandler GetFolderGraphCompleted; - - /// - public event ExecuteSyncActionsCompletedEventHandler ExecuteSyncActionsCompleted; - - /// - public event GetInstalledOdbcDriversCompletedEventHandler GetInstalledOdbcDriversCompleted; - - /// - public event GetDSNNamesCompletedEventHandler GetDSNNamesCompleted; - - /// - public event GetDSNCompletedEventHandler GetDSNCompleted; - - /// - public event CreateDSNCompletedEventHandler CreateDSNCompleted; - - /// - public event UpdateDSNCompletedEventHandler UpdateDSNCompleted; - - /// - public event DeleteDSNCompletedEventHandler DeleteDSNCompleted; /// public event SetQuotaLimitOnFolderCompletedEventHandler SetQuotaLimitOnFolderCompleted; + /// + public event GetQuotaLimitOnFolderCompletedEventHandler GetQuotaLimitOnFolderCompleted; + /// public event DeleteDirectoryRecursiveCompletedEventHandler DeleteDirectoryRecursiveCompleted; /// public event CheckFileServicesInstallationCompletedEventHandler CheckFileServicesInstallationCompleted; - - + + /// + public event GetFolderGraphCompletedEventHandler GetFolderGraphCompleted; + + /// + public event ExecuteSyncActionsCompletedEventHandler ExecuteSyncActionsCompleted; + + /// + public event GetInstalledOdbcDriversCompletedEventHandler GetInstalledOdbcDriversCompleted; + + /// + public event GetDSNNamesCompletedEventHandler GetDSNNamesCompleted; + + /// + public event GetDSNCompletedEventHandler GetDSNCompleted; + + /// + public event CreateDSNCompletedEventHandler CreateDSNCompleted; + + /// + public event UpdateDSNCompletedEventHandler UpdateDSNCompleted; + + /// + public event DeleteDSNCompletedEventHandler DeleteDSNCompleted; + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreatePackageFolder", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string CreatePackageFolder(string initialPath) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreatePackageFolder", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string CreatePackageFolder(string initialPath) + { object[] results = this.Invoke("CreatePackageFolder", new object[] { initialPath}); return ((string)(results[0])); } - + /// - public System.IAsyncResult BeginCreatePackageFolder(string initialPath, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreatePackageFolder(string initialPath, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreatePackageFolder", new object[] { initialPath}, callback, asyncState); } - + /// - public string EndCreatePackageFolder(System.IAsyncResult asyncResult) { + public string EndCreatePackageFolder(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// - public void CreatePackageFolderAsync(string initialPath) { + public void CreatePackageFolderAsync(string initialPath) + { this.CreatePackageFolderAsync(initialPath, null); } - + /// - public void CreatePackageFolderAsync(string initialPath, object userState) { - if ((this.CreatePackageFolderOperationCompleted == null)) { + public void CreatePackageFolderAsync(string initialPath, object userState) + { + if ((this.CreatePackageFolderOperationCompleted == null)) + { this.CreatePackageFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreatePackageFolderOperationCompleted); } this.InvokeAsync("CreatePackageFolder", new object[] { initialPath}, this.CreatePackageFolderOperationCompleted, userState); } - - private void OnCreatePackageFolderOperationCompleted(object arg) { - if ((this.CreatePackageFolderCompleted != null)) { + + private void OnCreatePackageFolderOperationCompleted(object arg) + { + if ((this.CreatePackageFolderCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreatePackageFolderCompleted(this, new CreatePackageFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/FileExists", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool FileExists(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/FileExists", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public bool FileExists(string path) + { object[] results = this.Invoke("FileExists", new object[] { path}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginFileExists(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginFileExists(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("FileExists", new object[] { path}, callback, asyncState); } - + /// - public bool EndFileExists(System.IAsyncResult asyncResult) { + public bool EndFileExists(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void FileExistsAsync(string path) { + public void FileExistsAsync(string path) + { this.FileExistsAsync(path, null); } - + /// - public void FileExistsAsync(string path, object userState) { - if ((this.FileExistsOperationCompleted == null)) { + public void FileExistsAsync(string path, object userState) + { + if ((this.FileExistsOperationCompleted == null)) + { this.FileExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFileExistsOperationCompleted); } this.InvokeAsync("FileExists", new object[] { path}, this.FileExistsOperationCompleted, userState); } - - private void OnFileExistsOperationCompleted(object arg) { - if ((this.FileExistsCompleted != null)) { + + private void OnFileExistsOperationCompleted(object arg) + { + if ((this.FileExistsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.FileExistsCompleted(this, new FileExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DirectoryExists", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool DirectoryExists(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DirectoryExists", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public bool DirectoryExists(string path) + { object[] results = this.Invoke("DirectoryExists", new object[] { path}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginDirectoryExists(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDirectoryExists(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DirectoryExists", new object[] { path}, callback, asyncState); } - + /// - public bool EndDirectoryExists(System.IAsyncResult asyncResult) { + public bool EndDirectoryExists(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void DirectoryExistsAsync(string path) { + public void DirectoryExistsAsync(string path) + { this.DirectoryExistsAsync(path, null); } - + /// - public void DirectoryExistsAsync(string path, object userState) { - if ((this.DirectoryExistsOperationCompleted == null)) { + public void DirectoryExistsAsync(string path, object userState) + { + if ((this.DirectoryExistsOperationCompleted == null)) + { this.DirectoryExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDirectoryExistsOperationCompleted); } this.InvokeAsync("DirectoryExists", new object[] { path}, this.DirectoryExistsOperationCompleted, userState); } - - private void OnDirectoryExistsOperationCompleted(object arg) { - if ((this.DirectoryExistsCompleted != null)) { + + private void OnDirectoryExistsOperationCompleted(object arg) + { + if ((this.DirectoryExistsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DirectoryExistsCompleted(this, new DirectoryExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFile", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public SystemFile GetFile(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFile", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public SystemFile GetFile(string path) + { object[] results = this.Invoke("GetFile", new object[] { path}); return ((SystemFile)(results[0])); } - + /// - public System.IAsyncResult BeginGetFile(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFile(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFile", new object[] { path}, callback, asyncState); } - + /// - public SystemFile EndGetFile(System.IAsyncResult asyncResult) { + public SystemFile EndGetFile(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemFile)(results[0])); } - + /// - public void GetFileAsync(string path) { + public void GetFileAsync(string path) + { this.GetFileAsync(path, null); } - + /// - public void GetFileAsync(string path, object userState) { - if ((this.GetFileOperationCompleted == null)) { + public void GetFileAsync(string path, object userState) + { + if ((this.GetFileOperationCompleted == null)) + { this.GetFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileOperationCompleted); } this.InvokeAsync("GetFile", new object[] { path}, this.GetFileOperationCompleted, userState); } - - private void OnGetFileOperationCompleted(object arg) { - if ((this.GetFileCompleted != null)) { + + private void OnGetFileOperationCompleted(object arg) + { + if ((this.GetFileCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFileCompleted(this, new GetFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFiles", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public SystemFile[] GetFiles(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFiles", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public SystemFile[] GetFiles(string path) + { object[] results = this.Invoke("GetFiles", new object[] { path}); return ((SystemFile[])(results[0])); } - + /// - public System.IAsyncResult BeginGetFiles(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFiles(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFiles", new object[] { path}, callback, asyncState); } - + /// - public SystemFile[] EndGetFiles(System.IAsyncResult asyncResult) { + public SystemFile[] EndGetFiles(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemFile[])(results[0])); } - + /// - public void GetFilesAsync(string path) { + public void GetFilesAsync(string path) + { this.GetFilesAsync(path, null); } - + /// - public void GetFilesAsync(string path, object userState) { - if ((this.GetFilesOperationCompleted == null)) { + public void GetFilesAsync(string path, object userState) + { + if ((this.GetFilesOperationCompleted == null)) + { this.GetFilesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFilesOperationCompleted); } this.InvokeAsync("GetFiles", new object[] { path}, this.GetFilesOperationCompleted, userState); } - - private void OnGetFilesOperationCompleted(object arg) { - if ((this.GetFilesCompleted != null)) { + + private void OnGetFilesOperationCompleted(object arg) + { + if ((this.GetFilesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFilesCompleted(this, new GetFilesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDirectoriesRecursive", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public SystemFile[] GetDirectoriesRecursive(string rootFolder, string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDirectoriesRecursive", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public SystemFile[] GetDirectoriesRecursive(string rootFolder, string path) + { object[] results = this.Invoke("GetDirectoriesRecursive", new object[] { rootFolder, path}); return ((SystemFile[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDirectoriesRecursive(string rootFolder, string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDirectoriesRecursive(string rootFolder, string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDirectoriesRecursive", new object[] { rootFolder, path}, callback, asyncState); } - + /// - public SystemFile[] EndGetDirectoriesRecursive(System.IAsyncResult asyncResult) { + public SystemFile[] EndGetDirectoriesRecursive(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemFile[])(results[0])); } - + /// - public void GetDirectoriesRecursiveAsync(string rootFolder, string path) { + public void GetDirectoriesRecursiveAsync(string rootFolder, string path) + { this.GetDirectoriesRecursiveAsync(rootFolder, path, null); } - + /// - public void GetDirectoriesRecursiveAsync(string rootFolder, string path, object userState) { - if ((this.GetDirectoriesRecursiveOperationCompleted == null)) { + public void GetDirectoriesRecursiveAsync(string rootFolder, string path, object userState) + { + if ((this.GetDirectoriesRecursiveOperationCompleted == null)) + { this.GetDirectoriesRecursiveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDirectoriesRecursiveOperationCompleted); } this.InvokeAsync("GetDirectoriesRecursive", new object[] { rootFolder, path}, this.GetDirectoriesRecursiveOperationCompleted, userState); } - - private void OnGetDirectoriesRecursiveOperationCompleted(object arg) { - if ((this.GetDirectoriesRecursiveCompleted != null)) { + + private void OnGetDirectoriesRecursiveOperationCompleted(object arg) + { + if ((this.GetDirectoriesRecursiveCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDirectoriesRecursiveCompleted(this, new GetDirectoriesRecursiveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFilesRecursive", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public SystemFile[] GetFilesRecursive(string rootFolder, string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFilesRecursive", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public SystemFile[] GetFilesRecursive(string rootFolder, string path) + { object[] results = this.Invoke("GetFilesRecursive", new object[] { rootFolder, path}); return ((SystemFile[])(results[0])); } - + /// - public System.IAsyncResult BeginGetFilesRecursive(string rootFolder, string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFilesRecursive(string rootFolder, string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFilesRecursive", new object[] { rootFolder, path}, callback, asyncState); } - + /// - public SystemFile[] EndGetFilesRecursive(System.IAsyncResult asyncResult) { + public SystemFile[] EndGetFilesRecursive(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemFile[])(results[0])); } - + /// - public void GetFilesRecursiveAsync(string rootFolder, string path) { + public void GetFilesRecursiveAsync(string rootFolder, string path) + { this.GetFilesRecursiveAsync(rootFolder, path, null); } - + /// - public void GetFilesRecursiveAsync(string rootFolder, string path, object userState) { - if ((this.GetFilesRecursiveOperationCompleted == null)) { + public void GetFilesRecursiveAsync(string rootFolder, string path, object userState) + { + if ((this.GetFilesRecursiveOperationCompleted == null)) + { this.GetFilesRecursiveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFilesRecursiveOperationCompleted); } this.InvokeAsync("GetFilesRecursive", new object[] { rootFolder, path}, this.GetFilesRecursiveOperationCompleted, userState); } - - private void OnGetFilesRecursiveOperationCompleted(object arg) { - if ((this.GetFilesRecursiveCompleted != null)) { + + private void OnGetFilesRecursiveOperationCompleted(object arg) + { + if ((this.GetFilesRecursiveCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFilesRecursiveCompleted(this, new GetFilesRecursiveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFilesRecursiveByPattern", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public SystemFile[] GetFilesRecursiveByPattern(string rootFolder, string path, string pattern) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFilesRecursiveByPattern", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public SystemFile[] GetFilesRecursiveByPattern(string rootFolder, string path, string pattern) + { object[] results = this.Invoke("GetFilesRecursiveByPattern", new object[] { rootFolder, path, pattern}); return ((SystemFile[])(results[0])); } - + /// - public System.IAsyncResult BeginGetFilesRecursiveByPattern(string rootFolder, string path, string pattern, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFilesRecursiveByPattern(string rootFolder, string path, string pattern, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFilesRecursiveByPattern", new object[] { rootFolder, path, pattern}, callback, asyncState); } - + /// - public SystemFile[] EndGetFilesRecursiveByPattern(System.IAsyncResult asyncResult) { + public SystemFile[] EndGetFilesRecursiveByPattern(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemFile[])(results[0])); } - + /// - public void GetFilesRecursiveByPatternAsync(string rootFolder, string path, string pattern) { + public void GetFilesRecursiveByPatternAsync(string rootFolder, string path, string pattern) + { this.GetFilesRecursiveByPatternAsync(rootFolder, path, pattern, null); } - + /// - public void GetFilesRecursiveByPatternAsync(string rootFolder, string path, string pattern, object userState) { - if ((this.GetFilesRecursiveByPatternOperationCompleted == null)) { + public void GetFilesRecursiveByPatternAsync(string rootFolder, string path, string pattern, object userState) + { + if ((this.GetFilesRecursiveByPatternOperationCompleted == null)) + { this.GetFilesRecursiveByPatternOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFilesRecursiveByPatternOperationCompleted); } this.InvokeAsync("GetFilesRecursiveByPattern", new object[] { @@ -604,137 +645,161 @@ namespace WebsitePanel.Providers.OS { path, pattern}, this.GetFilesRecursiveByPatternOperationCompleted, userState); } - - private void OnGetFilesRecursiveByPatternOperationCompleted(object arg) { - if ((this.GetFilesRecursiveByPatternCompleted != null)) { + + private void OnGetFilesRecursiveByPatternOperationCompleted(object arg) + { + if ((this.GetFilesRecursiveByPatternCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFilesRecursiveByPatternCompleted(this, new GetFilesRecursiveByPatternCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileBinaryContent", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] - public byte[] GetFileBinaryContent(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileBinaryContent", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] + public byte[] GetFileBinaryContent(string path) + { object[] results = this.Invoke("GetFileBinaryContent", new object[] { path}); return ((byte[])(results[0])); } - + /// - public System.IAsyncResult BeginGetFileBinaryContent(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFileBinaryContent(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFileBinaryContent", new object[] { path}, callback, asyncState); } - + /// - public byte[] EndGetFileBinaryContent(System.IAsyncResult asyncResult) { + public byte[] EndGetFileBinaryContent(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((byte[])(results[0])); } - + /// - public void GetFileBinaryContentAsync(string path) { + public void GetFileBinaryContentAsync(string path) + { this.GetFileBinaryContentAsync(path, null); } - + /// - public void GetFileBinaryContentAsync(string path, object userState) { - if ((this.GetFileBinaryContentOperationCompleted == null)) { + public void GetFileBinaryContentAsync(string path, object userState) + { + if ((this.GetFileBinaryContentOperationCompleted == null)) + { this.GetFileBinaryContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileBinaryContentOperationCompleted); } this.InvokeAsync("GetFileBinaryContent", new object[] { path}, this.GetFileBinaryContentOperationCompleted, userState); } - - private void OnGetFileBinaryContentOperationCompleted(object arg) { - if ((this.GetFileBinaryContentCompleted != null)) { + + private void OnGetFileBinaryContentOperationCompleted(object arg) + { + if ((this.GetFileBinaryContentCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFileBinaryContentCompleted(this, new GetFileBinaryContentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileBinaryContentUsingEncoding", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] - public byte[] GetFileBinaryContentUsingEncoding(string path, string encoding) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileBinaryContentUsingEncoding", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] + public byte[] GetFileBinaryContentUsingEncoding(string path, string encoding) + { object[] results = this.Invoke("GetFileBinaryContentUsingEncoding", new object[] { path, encoding}); return ((byte[])(results[0])); } - + /// - public System.IAsyncResult BeginGetFileBinaryContentUsingEncoding(string path, string encoding, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFileBinaryContentUsingEncoding(string path, string encoding, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFileBinaryContentUsingEncoding", new object[] { path, encoding}, callback, asyncState); } - + /// - public byte[] EndGetFileBinaryContentUsingEncoding(System.IAsyncResult asyncResult) { + public byte[] EndGetFileBinaryContentUsingEncoding(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((byte[])(results[0])); } - + /// - public void GetFileBinaryContentUsingEncodingAsync(string path, string encoding) { + public void GetFileBinaryContentUsingEncodingAsync(string path, string encoding) + { this.GetFileBinaryContentUsingEncodingAsync(path, encoding, null); } - + /// - public void GetFileBinaryContentUsingEncodingAsync(string path, string encoding, object userState) { - if ((this.GetFileBinaryContentUsingEncodingOperationCompleted == null)) { + public void GetFileBinaryContentUsingEncodingAsync(string path, string encoding, object userState) + { + if ((this.GetFileBinaryContentUsingEncodingOperationCompleted == null)) + { this.GetFileBinaryContentUsingEncodingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileBinaryContentUsingEncodingOperationCompleted); } this.InvokeAsync("GetFileBinaryContentUsingEncoding", new object[] { path, encoding}, this.GetFileBinaryContentUsingEncodingOperationCompleted, userState); } - - private void OnGetFileBinaryContentUsingEncodingOperationCompleted(object arg) { - if ((this.GetFileBinaryContentUsingEncodingCompleted != null)) { + + private void OnGetFileBinaryContentUsingEncodingOperationCompleted(object arg) + { + if ((this.GetFileBinaryContentUsingEncodingCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFileBinaryContentUsingEncodingCompleted(this, new GetFileBinaryContentUsingEncodingCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileBinaryChunk", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] - public byte[] GetFileBinaryChunk(string path, int offset, int length) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileBinaryChunk", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] + public byte[] GetFileBinaryChunk(string path, int offset, int length) + { object[] results = this.Invoke("GetFileBinaryChunk", new object[] { path, offset, length}); return ((byte[])(results[0])); } - + /// - public System.IAsyncResult BeginGetFileBinaryChunk(string path, int offset, int length, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFileBinaryChunk(string path, int offset, int length, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFileBinaryChunk", new object[] { path, offset, length}, callback, asyncState); } - + /// - public byte[] EndGetFileBinaryChunk(System.IAsyncResult asyncResult) { + public byte[] EndGetFileBinaryChunk(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((byte[])(results[0])); } - + /// - public void GetFileBinaryChunkAsync(string path, int offset, int length) { + public void GetFileBinaryChunkAsync(string path, int offset, int length) + { this.GetFileBinaryChunkAsync(path, offset, length, null); } - + /// - public void GetFileBinaryChunkAsync(string path, int offset, int length, object userState) { - if ((this.GetFileBinaryChunkOperationCompleted == null)) { + public void GetFileBinaryChunkAsync(string path, int offset, int length, object userState) + { + if ((this.GetFileBinaryChunkOperationCompleted == null)) + { this.GetFileBinaryChunkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileBinaryChunkOperationCompleted); } this.InvokeAsync("GetFileBinaryChunk", new object[] { @@ -742,167 +807,199 @@ namespace WebsitePanel.Providers.OS { offset, length}, this.GetFileBinaryChunkOperationCompleted, userState); } - - private void OnGetFileBinaryChunkOperationCompleted(object arg) { - if ((this.GetFileBinaryChunkCompleted != null)) { + + private void OnGetFileBinaryChunkOperationCompleted(object arg) + { + if ((this.GetFileBinaryChunkCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFileBinaryChunkCompleted(this, new GetFileBinaryChunkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileTextContent", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string GetFileTextContent(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFileTextContent", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string GetFileTextContent(string path) + { object[] results = this.Invoke("GetFileTextContent", new object[] { path}); return ((string)(results[0])); } - + /// - public System.IAsyncResult BeginGetFileTextContent(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetFileTextContent(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetFileTextContent", new object[] { path}, callback, asyncState); } - + /// - public string EndGetFileTextContent(System.IAsyncResult asyncResult) { + public string EndGetFileTextContent(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// - public void GetFileTextContentAsync(string path) { + public void GetFileTextContentAsync(string path) + { this.GetFileTextContentAsync(path, null); } - + /// - public void GetFileTextContentAsync(string path, object userState) { - if ((this.GetFileTextContentOperationCompleted == null)) { + public void GetFileTextContentAsync(string path, object userState) + { + if ((this.GetFileTextContentOperationCompleted == null)) + { this.GetFileTextContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileTextContentOperationCompleted); } this.InvokeAsync("GetFileTextContent", new object[] { path}, this.GetFileTextContentOperationCompleted, userState); } - - private void OnGetFileTextContentOperationCompleted(object arg) { - if ((this.GetFileTextContentCompleted != null)) { + + private void OnGetFileTextContentOperationCompleted(object arg) + { + if ((this.GetFileTextContentCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFileTextContentCompleted(this, new GetFileTextContentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateFile", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void CreateFile(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateFile", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void CreateFile(string path) + { this.Invoke("CreateFile", new object[] { path}); } - + /// - public System.IAsyncResult BeginCreateFile(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateFile(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateFile", new object[] { path}, callback, asyncState); } - + /// - public void EndCreateFile(System.IAsyncResult asyncResult) { + public void EndCreateFile(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateFileAsync(string path) { + public void CreateFileAsync(string path) + { this.CreateFileAsync(path, null); } - + /// - public void CreateFileAsync(string path, object userState) { - if ((this.CreateFileOperationCompleted == null)) { + public void CreateFileAsync(string path, object userState) + { + if ((this.CreateFileOperationCompleted == null)) + { this.CreateFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateFileOperationCompleted); } this.InvokeAsync("CreateFile", new object[] { path}, this.CreateFileOperationCompleted, userState); } - - private void OnCreateFileOperationCompleted(object arg) { - if ((this.CreateFileCompleted != null)) { + + private void OnCreateFileOperationCompleted(object arg) + { + if ((this.CreateFileCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateFileCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDirectory", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void CreateDirectory(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDirectory", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void CreateDirectory(string path) + { this.Invoke("CreateDirectory", new object[] { path}); } - + /// - public System.IAsyncResult BeginCreateDirectory(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateDirectory(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateDirectory", new object[] { path}, callback, asyncState); } - + /// - public void EndCreateDirectory(System.IAsyncResult asyncResult) { + public void EndCreateDirectory(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateDirectoryAsync(string path) { + public void CreateDirectoryAsync(string path) + { this.CreateDirectoryAsync(path, null); } - + /// - public void CreateDirectoryAsync(string path, object userState) { - if ((this.CreateDirectoryOperationCompleted == null)) { + public void CreateDirectoryAsync(string path, object userState) + { + if ((this.CreateDirectoryOperationCompleted == null)) + { this.CreateDirectoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDirectoryOperationCompleted); } this.InvokeAsync("CreateDirectory", new object[] { path}, this.CreateDirectoryOperationCompleted, userState); } - - private void OnCreateDirectoryOperationCompleted(object arg) { - if ((this.CreateDirectoryCompleted != null)) { + + private void OnCreateDirectoryOperationCompleted(object arg) + { + if ((this.CreateDirectoryCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateDirectoryCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeFileAttributes", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void ChangeFileAttributes(string path, System.DateTime createdTime, System.DateTime changedTime) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeFileAttributes", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void ChangeFileAttributes(string path, System.DateTime createdTime, System.DateTime changedTime) + { this.Invoke("ChangeFileAttributes", new object[] { path, createdTime, changedTime}); } - + /// - public System.IAsyncResult BeginChangeFileAttributes(string path, System.DateTime createdTime, System.DateTime changedTime, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginChangeFileAttributes(string path, System.DateTime createdTime, System.DateTime changedTime, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ChangeFileAttributes", new object[] { path, createdTime, changedTime}, callback, asyncState); } - + /// - public void EndChangeFileAttributes(System.IAsyncResult asyncResult) { + public void EndChangeFileAttributes(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void ChangeFileAttributesAsync(string path, System.DateTime createdTime, System.DateTime changedTime) { + public void ChangeFileAttributesAsync(string path, System.DateTime createdTime, System.DateTime changedTime) + { this.ChangeFileAttributesAsync(path, createdTime, changedTime, null); } - + /// - public void ChangeFileAttributesAsync(string path, System.DateTime createdTime, System.DateTime changedTime, object userState) { - if ((this.ChangeFileAttributesOperationCompleted == null)) { + public void ChangeFileAttributesAsync(string path, System.DateTime createdTime, System.DateTime changedTime, object userState) + { + if ((this.ChangeFileAttributesOperationCompleted == null)) + { this.ChangeFileAttributesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeFileAttributesOperationCompleted); } this.InvokeAsync("ChangeFileAttributes", new object[] { @@ -910,208 +1007,248 @@ namespace WebsitePanel.Providers.OS { createdTime, changedTime}, this.ChangeFileAttributesOperationCompleted, userState); } - - private void OnChangeFileAttributesOperationCompleted(object arg) { - if ((this.ChangeFileAttributesCompleted != null)) { + + private void OnChangeFileAttributesOperationCompleted(object arg) + { + if ((this.ChangeFileAttributesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ChangeFileAttributesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteFile", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteFile(string path) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteFile", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteFile(string path) + { this.Invoke("DeleteFile", new object[] { path}); } - + /// - public System.IAsyncResult BeginDeleteFile(string path, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteFile(string path, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteFile", new object[] { path}, callback, asyncState); } - + /// - public void EndDeleteFile(System.IAsyncResult asyncResult) { + public void EndDeleteFile(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteFileAsync(string path) { + public void DeleteFileAsync(string path) + { this.DeleteFileAsync(path, null); } - + /// - public void DeleteFileAsync(string path, object userState) { - if ((this.DeleteFileOperationCompleted == null)) { + public void DeleteFileAsync(string path, object userState) + { + if ((this.DeleteFileOperationCompleted == null)) + { this.DeleteFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteFileOperationCompleted); } this.InvokeAsync("DeleteFile", new object[] { path}, this.DeleteFileOperationCompleted, userState); } - - private void OnDeleteFileOperationCompleted(object arg) { - if ((this.DeleteFileCompleted != null)) { + + private void OnDeleteFileOperationCompleted(object arg) + { + if ((this.DeleteFileCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteFileCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteFiles", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteFiles(string[] files) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteFiles", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteFiles(string[] files) + { this.Invoke("DeleteFiles", new object[] { files}); } - + /// - public System.IAsyncResult BeginDeleteFiles(string[] files, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteFiles(string[] files, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteFiles", new object[] { files}, callback, asyncState); } - + /// - public void EndDeleteFiles(System.IAsyncResult asyncResult) { + public void EndDeleteFiles(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteFilesAsync(string[] files) { + public void DeleteFilesAsync(string[] files) + { this.DeleteFilesAsync(files, null); } - + /// - public void DeleteFilesAsync(string[] files, object userState) { - if ((this.DeleteFilesOperationCompleted == null)) { + public void DeleteFilesAsync(string[] files, object userState) + { + if ((this.DeleteFilesOperationCompleted == null)) + { this.DeleteFilesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteFilesOperationCompleted); } this.InvokeAsync("DeleteFiles", new object[] { files}, this.DeleteFilesOperationCompleted, userState); } - - private void OnDeleteFilesOperationCompleted(object arg) { - if ((this.DeleteFilesCompleted != null)) { + + private void OnDeleteFilesOperationCompleted(object arg) + { + if ((this.DeleteFilesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteFilesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteEmptyDirectories", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteEmptyDirectories(string[] directories) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteEmptyDirectories", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteEmptyDirectories(string[] directories) + { this.Invoke("DeleteEmptyDirectories", new object[] { directories}); } - + /// - public System.IAsyncResult BeginDeleteEmptyDirectories(string[] directories, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteEmptyDirectories(string[] directories, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteEmptyDirectories", new object[] { directories}, callback, asyncState); } - + /// - public void EndDeleteEmptyDirectories(System.IAsyncResult asyncResult) { + public void EndDeleteEmptyDirectories(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteEmptyDirectoriesAsync(string[] directories) { + public void DeleteEmptyDirectoriesAsync(string[] directories) + { this.DeleteEmptyDirectoriesAsync(directories, null); } - + /// - public void DeleteEmptyDirectoriesAsync(string[] directories, object userState) { - if ((this.DeleteEmptyDirectoriesOperationCompleted == null)) { + public void DeleteEmptyDirectoriesAsync(string[] directories, object userState) + { + if ((this.DeleteEmptyDirectoriesOperationCompleted == null)) + { this.DeleteEmptyDirectoriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteEmptyDirectoriesOperationCompleted); } this.InvokeAsync("DeleteEmptyDirectories", new object[] { directories}, this.DeleteEmptyDirectoriesOperationCompleted, userState); } - - private void OnDeleteEmptyDirectoriesOperationCompleted(object arg) { - if ((this.DeleteEmptyDirectoriesCompleted != null)) { + + private void OnDeleteEmptyDirectoriesOperationCompleted(object arg) + { + if ((this.DeleteEmptyDirectoriesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteEmptyDirectoriesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateFileBinaryContent", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void UpdateFileBinaryContent(string path, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] content) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateFileBinaryContent", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void UpdateFileBinaryContent(string path, [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] byte[] content) + { this.Invoke("UpdateFileBinaryContent", new object[] { path, content}); } - + /// - public System.IAsyncResult BeginUpdateFileBinaryContent(string path, byte[] content, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateFileBinaryContent(string path, byte[] content, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateFileBinaryContent", new object[] { path, content}, callback, asyncState); } - + /// - public void EndUpdateFileBinaryContent(System.IAsyncResult asyncResult) { + public void EndUpdateFileBinaryContent(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void UpdateFileBinaryContentAsync(string path, byte[] content) { + public void UpdateFileBinaryContentAsync(string path, byte[] content) + { this.UpdateFileBinaryContentAsync(path, content, null); } - + /// - public void UpdateFileBinaryContentAsync(string path, byte[] content, object userState) { - if ((this.UpdateFileBinaryContentOperationCompleted == null)) { + public void UpdateFileBinaryContentAsync(string path, byte[] content, object userState) + { + if ((this.UpdateFileBinaryContentOperationCompleted == null)) + { this.UpdateFileBinaryContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateFileBinaryContentOperationCompleted); } this.InvokeAsync("UpdateFileBinaryContent", new object[] { path, content}, this.UpdateFileBinaryContentOperationCompleted, userState); } - - private void OnUpdateFileBinaryContentOperationCompleted(object arg) { - if ((this.UpdateFileBinaryContentCompleted != null)) { + + private void OnUpdateFileBinaryContentOperationCompleted(object arg) + { + if ((this.UpdateFileBinaryContentCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateFileBinaryContentCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateFileBinaryContentUsingEncoding", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void UpdateFileBinaryContentUsingEncoding(string path, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] content, string encoding) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateFileBinaryContentUsingEncoding", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void UpdateFileBinaryContentUsingEncoding(string path, [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] byte[] content, string encoding) + { this.Invoke("UpdateFileBinaryContentUsingEncoding", new object[] { path, content, encoding}); } - + /// - public System.IAsyncResult BeginUpdateFileBinaryContentUsingEncoding(string path, byte[] content, string encoding, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateFileBinaryContentUsingEncoding(string path, byte[] content, string encoding, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateFileBinaryContentUsingEncoding", new object[] { path, content, encoding}, callback, asyncState); } - + /// - public void EndUpdateFileBinaryContentUsingEncoding(System.IAsyncResult asyncResult) { + public void EndUpdateFileBinaryContentUsingEncoding(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void UpdateFileBinaryContentUsingEncodingAsync(string path, byte[] content, string encoding) { + public void UpdateFileBinaryContentUsingEncodingAsync(string path, byte[] content, string encoding) + { this.UpdateFileBinaryContentUsingEncodingAsync(path, content, encoding, null); } - + /// - public void UpdateFileBinaryContentUsingEncodingAsync(string path, byte[] content, string encoding, object userState) { - if ((this.UpdateFileBinaryContentUsingEncodingOperationCompleted == null)) { + public void UpdateFileBinaryContentUsingEncodingAsync(string path, byte[] content, string encoding, object userState) + { + if ((this.UpdateFileBinaryContentUsingEncodingOperationCompleted == null)) + { this.UpdateFileBinaryContentUsingEncodingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateFileBinaryContentUsingEncodingOperationCompleted); } this.InvokeAsync("UpdateFileBinaryContentUsingEncoding", new object[] { @@ -1119,217 +1256,257 @@ namespace WebsitePanel.Providers.OS { content, encoding}, this.UpdateFileBinaryContentUsingEncodingOperationCompleted, userState); } - - private void OnUpdateFileBinaryContentUsingEncodingOperationCompleted(object arg) { - if ((this.UpdateFileBinaryContentUsingEncodingCompleted != null)) { + + private void OnUpdateFileBinaryContentUsingEncodingOperationCompleted(object arg) + { + if ((this.UpdateFileBinaryContentUsingEncodingCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateFileBinaryContentUsingEncodingCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AppendFileBinaryContent", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void AppendFileBinaryContent(string path, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] chunk) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AppendFileBinaryContent", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void AppendFileBinaryContent(string path, [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] byte[] chunk) + { this.Invoke("AppendFileBinaryContent", new object[] { path, chunk}); } - + /// - public System.IAsyncResult BeginAppendFileBinaryContent(string path, byte[] chunk, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginAppendFileBinaryContent(string path, byte[] chunk, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("AppendFileBinaryContent", new object[] { path, chunk}, callback, asyncState); } - + /// - public void EndAppendFileBinaryContent(System.IAsyncResult asyncResult) { + public void EndAppendFileBinaryContent(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void AppendFileBinaryContentAsync(string path, byte[] chunk) { + public void AppendFileBinaryContentAsync(string path, byte[] chunk) + { this.AppendFileBinaryContentAsync(path, chunk, null); } - + /// - public void AppendFileBinaryContentAsync(string path, byte[] chunk, object userState) { - if ((this.AppendFileBinaryContentOperationCompleted == null)) { + public void AppendFileBinaryContentAsync(string path, byte[] chunk, object userState) + { + if ((this.AppendFileBinaryContentOperationCompleted == null)) + { this.AppendFileBinaryContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAppendFileBinaryContentOperationCompleted); } this.InvokeAsync("AppendFileBinaryContent", new object[] { path, chunk}, this.AppendFileBinaryContentOperationCompleted, userState); } - - private void OnAppendFileBinaryContentOperationCompleted(object arg) { - if ((this.AppendFileBinaryContentCompleted != null)) { + + private void OnAppendFileBinaryContentOperationCompleted(object arg) + { + if ((this.AppendFileBinaryContentCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AppendFileBinaryContentCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateFileTextContent", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void UpdateFileTextContent(string path, string content) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateFileTextContent", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void UpdateFileTextContent(string path, string content) + { this.Invoke("UpdateFileTextContent", new object[] { path, content}); } - + /// - public System.IAsyncResult BeginUpdateFileTextContent(string path, string content, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateFileTextContent(string path, string content, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateFileTextContent", new object[] { path, content}, callback, asyncState); } - + /// - public void EndUpdateFileTextContent(System.IAsyncResult asyncResult) { + public void EndUpdateFileTextContent(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void UpdateFileTextContentAsync(string path, string content) { + public void UpdateFileTextContentAsync(string path, string content) + { this.UpdateFileTextContentAsync(path, content, null); } - + /// - public void UpdateFileTextContentAsync(string path, string content, object userState) { - if ((this.UpdateFileTextContentOperationCompleted == null)) { + public void UpdateFileTextContentAsync(string path, string content, object userState) + { + if ((this.UpdateFileTextContentOperationCompleted == null)) + { this.UpdateFileTextContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateFileTextContentOperationCompleted); } this.InvokeAsync("UpdateFileTextContent", new object[] { path, content}, this.UpdateFileTextContentOperationCompleted, userState); } - - private void OnUpdateFileTextContentOperationCompleted(object arg) { - if ((this.UpdateFileTextContentCompleted != null)) { + + private void OnUpdateFileTextContentOperationCompleted(object arg) + { + if ((this.UpdateFileTextContentCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateFileTextContentCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/MoveFile", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void MoveFile(string sourcePath, string destinationPath) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/MoveFile", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void MoveFile(string sourcePath, string destinationPath) + { this.Invoke("MoveFile", new object[] { sourcePath, destinationPath}); } - + /// - public System.IAsyncResult BeginMoveFile(string sourcePath, string destinationPath, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginMoveFile(string sourcePath, string destinationPath, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("MoveFile", new object[] { sourcePath, destinationPath}, callback, asyncState); } - + /// - public void EndMoveFile(System.IAsyncResult asyncResult) { + public void EndMoveFile(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void MoveFileAsync(string sourcePath, string destinationPath) { + public void MoveFileAsync(string sourcePath, string destinationPath) + { this.MoveFileAsync(sourcePath, destinationPath, null); } - + /// - public void MoveFileAsync(string sourcePath, string destinationPath, object userState) { - if ((this.MoveFileOperationCompleted == null)) { + public void MoveFileAsync(string sourcePath, string destinationPath, object userState) + { + if ((this.MoveFileOperationCompleted == null)) + { this.MoveFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMoveFileOperationCompleted); } this.InvokeAsync("MoveFile", new object[] { sourcePath, destinationPath}, this.MoveFileOperationCompleted, userState); } - - private void OnMoveFileOperationCompleted(object arg) { - if ((this.MoveFileCompleted != null)) { + + private void OnMoveFileOperationCompleted(object arg) + { + if ((this.MoveFileCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.MoveFileCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CopyFile", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void CopyFile(string sourcePath, string destinationPath) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CopyFile", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void CopyFile(string sourcePath, string destinationPath) + { this.Invoke("CopyFile", new object[] { sourcePath, destinationPath}); } - + /// - public System.IAsyncResult BeginCopyFile(string sourcePath, string destinationPath, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCopyFile(string sourcePath, string destinationPath, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CopyFile", new object[] { sourcePath, destinationPath}, callback, asyncState); } - + /// - public void EndCopyFile(System.IAsyncResult asyncResult) { + public void EndCopyFile(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CopyFileAsync(string sourcePath, string destinationPath) { + public void CopyFileAsync(string sourcePath, string destinationPath) + { this.CopyFileAsync(sourcePath, destinationPath, null); } - + /// - public void CopyFileAsync(string sourcePath, string destinationPath, object userState) { - if ((this.CopyFileOperationCompleted == null)) { + public void CopyFileAsync(string sourcePath, string destinationPath, object userState) + { + if ((this.CopyFileOperationCompleted == null)) + { this.CopyFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCopyFileOperationCompleted); } this.InvokeAsync("CopyFile", new object[] { sourcePath, destinationPath}, this.CopyFileOperationCompleted, userState); } - - private void OnCopyFileOperationCompleted(object arg) { - if ((this.CopyFileCompleted != null)) { + + private void OnCopyFileOperationCompleted(object arg) + { + if ((this.CopyFileCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CopyFileCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ZipFiles", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void ZipFiles(string zipFile, string rootPath, string[] files) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ZipFiles", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void ZipFiles(string zipFile, string rootPath, string[] files) + { this.Invoke("ZipFiles", new object[] { zipFile, rootPath, files}); } - + /// - public System.IAsyncResult BeginZipFiles(string zipFile, string rootPath, string[] files, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginZipFiles(string zipFile, string rootPath, string[] files, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ZipFiles", new object[] { zipFile, rootPath, files}, callback, asyncState); } - + /// - public void EndZipFiles(System.IAsyncResult asyncResult) { + public void EndZipFiles(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void ZipFilesAsync(string zipFile, string rootPath, string[] files) { + public void ZipFilesAsync(string zipFile, string rootPath, string[] files) + { this.ZipFilesAsync(zipFile, rootPath, files, null); } - + /// - public void ZipFilesAsync(string zipFile, string rootPath, string[] files, object userState) { - if ((this.ZipFilesOperationCompleted == null)) { + public void ZipFilesAsync(string zipFile, string rootPath, string[] files, object userState) + { + if ((this.ZipFilesOperationCompleted == null)) + { this.ZipFilesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZipFilesOperationCompleted); } this.InvokeAsync("ZipFiles", new object[] { @@ -1337,132 +1514,156 @@ namespace WebsitePanel.Providers.OS { rootPath, files}, this.ZipFilesOperationCompleted, userState); } - - private void OnZipFilesOperationCompleted(object arg) { - if ((this.ZipFilesCompleted != null)) { + + private void OnZipFilesOperationCompleted(object arg) + { + if ((this.ZipFilesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ZipFilesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UnzipFiles", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string[] UnzipFiles(string zipFile, string destFolder) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UnzipFiles", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string[] UnzipFiles(string zipFile, string destFolder) + { object[] results = this.Invoke("UnzipFiles", new object[] { zipFile, destFolder}); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginUnzipFiles(string zipFile, string destFolder, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUnzipFiles(string zipFile, string destFolder, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UnzipFiles", new object[] { zipFile, destFolder}, callback, asyncState); } - + /// - public string[] EndUnzipFiles(System.IAsyncResult asyncResult) { + public string[] EndUnzipFiles(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void UnzipFilesAsync(string zipFile, string destFolder) { + public void UnzipFilesAsync(string zipFile, string destFolder) + { this.UnzipFilesAsync(zipFile, destFolder, null); } - + /// - public void UnzipFilesAsync(string zipFile, string destFolder, object userState) { - if ((this.UnzipFilesOperationCompleted == null)) { + public void UnzipFilesAsync(string zipFile, string destFolder, object userState) + { + if ((this.UnzipFilesOperationCompleted == null)) + { this.UnzipFilesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUnzipFilesOperationCompleted); } this.InvokeAsync("UnzipFiles", new object[] { zipFile, destFolder}, this.UnzipFilesOperationCompleted, userState); } - - private void OnUnzipFilesOperationCompleted(object arg) { - if ((this.UnzipFilesCompleted != null)) { + + private void OnUnzipFilesOperationCompleted(object arg) + { + if ((this.UnzipFilesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UnzipFilesCompleted(this, new UnzipFilesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateAccessDatabase", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void CreateAccessDatabase(string databasePath) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateAccessDatabase", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void CreateAccessDatabase(string databasePath) + { this.Invoke("CreateAccessDatabase", new object[] { databasePath}); } - + /// - public System.IAsyncResult BeginCreateAccessDatabase(string databasePath, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateAccessDatabase(string databasePath, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateAccessDatabase", new object[] { databasePath}, callback, asyncState); } - + /// - public void EndCreateAccessDatabase(System.IAsyncResult asyncResult) { + public void EndCreateAccessDatabase(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateAccessDatabaseAsync(string databasePath) { + public void CreateAccessDatabaseAsync(string databasePath) + { this.CreateAccessDatabaseAsync(databasePath, null); } - + /// - public void CreateAccessDatabaseAsync(string databasePath, object userState) { - if ((this.CreateAccessDatabaseOperationCompleted == null)) { + public void CreateAccessDatabaseAsync(string databasePath, object userState) + { + if ((this.CreateAccessDatabaseOperationCompleted == null)) + { this.CreateAccessDatabaseOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateAccessDatabaseOperationCompleted); } this.InvokeAsync("CreateAccessDatabase", new object[] { databasePath}, this.CreateAccessDatabaseOperationCompleted, userState); } - - private void OnCreateAccessDatabaseOperationCompleted(object arg) { - if ((this.CreateAccessDatabaseCompleted != null)) { + + private void OnCreateAccessDatabaseOperationCompleted(object arg) + { + if ((this.CreateAccessDatabaseCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateAccessDatabaseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetGroupNtfsPermissions", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public UserPermission[] GetGroupNtfsPermissions(string path, UserPermission[] users, string usersOU) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetGroupNtfsPermissions", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public UserPermission[] GetGroupNtfsPermissions(string path, UserPermission[] users, string usersOU) + { object[] results = this.Invoke("GetGroupNtfsPermissions", new object[] { path, users, usersOU}); return ((UserPermission[])(results[0])); } - + /// - public System.IAsyncResult BeginGetGroupNtfsPermissions(string path, UserPermission[] users, string usersOU, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetGroupNtfsPermissions(string path, UserPermission[] users, string usersOU, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetGroupNtfsPermissions", new object[] { path, users, usersOU}, callback, asyncState); } - + /// - public UserPermission[] EndGetGroupNtfsPermissions(System.IAsyncResult asyncResult) { + public UserPermission[] EndGetGroupNtfsPermissions(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((UserPermission[])(results[0])); } - + /// - public void GetGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU) { + public void GetGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU) + { this.GetGroupNtfsPermissionsAsync(path, users, usersOU, null); } - + /// - public void GetGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU, object userState) { - if ((this.GetGroupNtfsPermissionsOperationCompleted == null)) { + public void GetGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU, object userState) + { + if ((this.GetGroupNtfsPermissionsOperationCompleted == null)) + { this.GetGroupNtfsPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGroupNtfsPermissionsOperationCompleted); } this.InvokeAsync("GetGroupNtfsPermissions", new object[] { @@ -1470,47 +1671,55 @@ namespace WebsitePanel.Providers.OS { users, usersOU}, this.GetGroupNtfsPermissionsOperationCompleted, userState); } - - private void OnGetGroupNtfsPermissionsOperationCompleted(object arg) { - if ((this.GetGroupNtfsPermissionsCompleted != null)) { + + private void OnGetGroupNtfsPermissionsOperationCompleted(object arg) + { + if ((this.GetGroupNtfsPermissionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetGroupNtfsPermissionsCompleted(this, new GetGroupNtfsPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GrantGroupNtfsPermissions", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void GrantGroupNtfsPermissions(string path, UserPermission[] users, string usersOU, bool resetChildPermissions) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GrantGroupNtfsPermissions", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void GrantGroupNtfsPermissions(string path, UserPermission[] users, string usersOU, bool resetChildPermissions) + { this.Invoke("GrantGroupNtfsPermissions", new object[] { path, users, usersOU, resetChildPermissions}); } - + /// - public System.IAsyncResult BeginGrantGroupNtfsPermissions(string path, UserPermission[] users, string usersOU, bool resetChildPermissions, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGrantGroupNtfsPermissions(string path, UserPermission[] users, string usersOU, bool resetChildPermissions, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GrantGroupNtfsPermissions", new object[] { path, users, usersOU, resetChildPermissions}, callback, asyncState); } - + /// - public void EndGrantGroupNtfsPermissions(System.IAsyncResult asyncResult) { + public void EndGrantGroupNtfsPermissions(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void GrantGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU, bool resetChildPermissions) { + public void GrantGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU, bool resetChildPermissions) + { this.GrantGroupNtfsPermissionsAsync(path, users, usersOU, resetChildPermissions, null); } - + /// - public void GrantGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU, bool resetChildPermissions, object userState) { - if ((this.GrantGroupNtfsPermissionsOperationCompleted == null)) { + public void GrantGroupNtfsPermissionsAsync(string path, UserPermission[] users, string usersOU, bool resetChildPermissions, object userState) + { + if ((this.GrantGroupNtfsPermissionsOperationCompleted == null)) + { this.GrantGroupNtfsPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGrantGroupNtfsPermissionsOperationCompleted); } this.InvokeAsync("GrantGroupNtfsPermissions", new object[] { @@ -1519,135 +1728,71 @@ namespace WebsitePanel.Providers.OS { usersOU, resetChildPermissions}, this.GrantGroupNtfsPermissionsOperationCompleted, userState); } - - private void OnGrantGroupNtfsPermissionsOperationCompleted(object arg) { - if ((this.GrantGroupNtfsPermissionsCompleted != null)) { + + private void OnGrantGroupNtfsPermissionsOperationCompleted(object arg) + { + if ((this.GrantGroupNtfsPermissionsCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GrantGroupNtfsPermissionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFolderGraph", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public FolderGraph GetFolderGraph(string path) { - object[] results = this.Invoke("GetFolderGraph", new object[] { - path}); - return ((FolderGraph)(results[0])); - } - - /// - public System.IAsyncResult BeginGetFolderGraph(string path, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetFolderGraph", new object[] { - path}, callback, asyncState); - } - - /// - public FolderGraph EndGetFolderGraph(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((FolderGraph)(results[0])); - } - - /// - public void GetFolderGraphAsync(string path) { - this.GetFolderGraphAsync(path, null); - } - - /// - public void GetFolderGraphAsync(string path, object userState) { - if ((this.GetFolderGraphOperationCompleted == null)) { - this.GetFolderGraphOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFolderGraphOperationCompleted); - } - this.InvokeAsync("GetFolderGraph", new object[] { - path}, this.GetFolderGraphOperationCompleted, userState); - } - - private void OnGetFolderGraphOperationCompleted(object arg) { - if ((this.GetFolderGraphCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetFolderGraphCompleted(this, new GetFolderGraphCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExecuteSyncActions", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void ExecuteSyncActions(FileSyncAction[] actions) { - this.Invoke("ExecuteSyncActions", new object[] { - actions}); - } - - /// - public System.IAsyncResult BeginExecuteSyncActions(FileSyncAction[] actions, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("ExecuteSyncActions", new object[] { - actions}, callback, asyncState); - } - - /// - public void EndExecuteSyncActions(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void ExecuteSyncActionsAsync(FileSyncAction[] actions) { - this.ExecuteSyncActionsAsync(actions, null); - } - - /// - public void ExecuteSyncActionsAsync(FileSyncAction[] actions, object userState) { - if ((this.ExecuteSyncActionsOperationCompleted == null)) { - this.ExecuteSyncActionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExecuteSyncActionsOperationCompleted); - } - this.InvokeAsync("ExecuteSyncActions", new object[] { - actions}, this.ExecuteSyncActionsOperationCompleted, userState); - } - - private void OnExecuteSyncActionsOperationCompleted(object arg) { - if ((this.ExecuteSyncActionsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.ExecuteSyncActionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetQuotaLimitOnFolder", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword) + public void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword) { - object[] results = this.Invoke("SetQuotaLimitOnFolder", new object[] { - folderPath, shareNameDrive, quotaLimit, mode, wmiUserName, wmiPassword}); - return ((bool)(results[0])); + this.Invoke("SetQuotaLimitOnFolder", new object[] { + folderPath, + shareNameDrive, + quotaType, + quotaLimit, + mode, + wmiUserName, + wmiPassword}); } /// - public System.IAsyncResult BeginSetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword, System.AsyncCallback callback, object asyncState) + public System.IAsyncResult BeginSetQuotaLimitOnFolder(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetQuotaLimitOnFolder", new object[] { - folderPath, shareNameDrive, quotaLimit, mode, wmiUserName, wmiPassword}, callback, asyncState); + folderPath, + shareNameDrive, + quotaType, + quotaLimit, + mode, + wmiUserName, + wmiPassword}, callback, asyncState); } /// - public bool EndSetQuotaLimitOnFolder(System.IAsyncResult asyncResult) + public void EndSetQuotaLimitOnFolder(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((bool)(results[0])); + this.EndInvoke(asyncResult); } /// - public void SetQuotaLimitOnFolderAsync(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword) + public void SetQuotaLimitOnFolderAsync(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword) { - this.SetQuotaLimitOnFolderAsync(folderPath, shareNameDrive, quotaLimit, mode, wmiUserName, wmiPassword, null); + this.SetQuotaLimitOnFolderAsync(folderPath, shareNameDrive, quotaType, quotaLimit, mode, wmiUserName, wmiPassword, null); } /// - public void SetQuotaLimitOnFolderAsync(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword, object userState) + public void SetQuotaLimitOnFolderAsync(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword, object userState) { if ((this.SetQuotaLimitOnFolderOperationCompleted == null)) { this.SetQuotaLimitOnFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetQuotaLimitOnFolderOperationCompleted); } this.InvokeAsync("SetQuotaLimitOnFolder", new object[] { - folderPath, shareNameDrive, quotaLimit, mode, wmiUserName, wmiPassword}, this.SetQuotaLimitOnFolderOperationCompleted, userState); + folderPath, + shareNameDrive, + quotaType, + quotaLimit, + mode, + wmiUserName, + wmiPassword}, this.SetQuotaLimitOnFolderOperationCompleted, userState); } private void OnSetQuotaLimitOnFolderOperationCompleted(object arg) @@ -1655,18 +1800,73 @@ namespace WebsitePanel.Providers.OS { if ((this.SetQuotaLimitOnFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.SetQuotaLimitOnFolderCompleted(this, new SetQuotaLimitOnFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + this.SetQuotaLimitOnFolderCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetQuotaLimitOnFolder", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public int GetQuotaLimitOnFolder(string folderPath, string wmiUserName, string wmiPassword) + { + object[] results = this.Invoke("GetQuotaLimitOnFolder", new object[] { + folderPath, + wmiUserName, + wmiPassword}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginGetQuotaLimitOnFolder(string folderPath, string wmiUserName, string wmiPassword, System.AsyncCallback callback, object asyncState) + { + return this.BeginInvoke("GetQuotaLimitOnFolder", new object[] { + folderPath, + wmiUserName, + wmiPassword}, callback, asyncState); + } + + /// + public int EndGetQuotaLimitOnFolder(System.IAsyncResult asyncResult) + { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void GetQuotaLimitOnFolderAsync(string folderPath, string wmiUserName, string wmiPassword) + { + this.GetQuotaLimitOnFolderAsync(folderPath, wmiUserName, wmiPassword, null); + } + + /// + public void GetQuotaLimitOnFolderAsync(string folderPath, string wmiUserName, string wmiPassword, object userState) + { + if ((this.GetQuotaLimitOnFolderOperationCompleted == null)) + { + this.GetQuotaLimitOnFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetQuotaLimitOnFolderOperationCompleted); + } + this.InvokeAsync("GetQuotaLimitOnFolder", new object[] { + folderPath, + wmiUserName, + wmiPassword}, this.GetQuotaLimitOnFolderOperationCompleted, userState); + } + + private void OnGetQuotaLimitOnFolderOperationCompleted(object arg) + { + if ((this.GetQuotaLimitOnFolderCompleted != null)) + { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetQuotaLimitOnFolderCompleted(this, new GetQuotaLimitOnFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDirectoryRecursive", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool DeleteDirectoryRecursive(string rootPath) + public void DeleteDirectoryRecursive(string rootPath) { - object[] results = this.Invoke("DeleteDirectoryRecursive", new object[] { - rootPath }); - return ((bool)(results[0])); + this.Invoke("DeleteDirectoryRecursive", new object[] { + rootPath}); } /// @@ -1677,10 +1877,9 @@ namespace WebsitePanel.Providers.OS { } /// - public bool EndDeleteDirectoryRecursive(System.IAsyncResult asyncResult) + public void EndDeleteDirectoryRecursive(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((bool)(results[0])); + this.EndInvoke(asyncResult); } /// @@ -1705,7 +1904,7 @@ namespace WebsitePanel.Providers.OS { if ((this.DeleteDirectoryRecursiveCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteDirectoryRecursiveCompleted(this, new DeleteDirectoryRecursiveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + this.DeleteDirectoryRecursiveCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } @@ -1758,817 +1957,441 @@ namespace WebsitePanel.Providers.OS { /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetInstalledOdbcDrivers", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string[] GetInstalledOdbcDrivers() { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetFolderGraph", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public FolderGraph GetFolderGraph(string path) + { + object[] results = this.Invoke("GetFolderGraph", new object[] { + path}); + return ((FolderGraph)(results[0])); + } + + /// + public System.IAsyncResult BeginGetFolderGraph(string path, System.AsyncCallback callback, object asyncState) + { + return this.BeginInvoke("GetFolderGraph", new object[] { + path}, callback, asyncState); + } + + /// + public FolderGraph EndGetFolderGraph(System.IAsyncResult asyncResult) + { + object[] results = this.EndInvoke(asyncResult); + return ((FolderGraph)(results[0])); + } + + /// + public void GetFolderGraphAsync(string path) + { + this.GetFolderGraphAsync(path, null); + } + + /// + public void GetFolderGraphAsync(string path, object userState) + { + if ((this.GetFolderGraphOperationCompleted == null)) + { + this.GetFolderGraphOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFolderGraphOperationCompleted); + } + this.InvokeAsync("GetFolderGraph", new object[] { + path}, this.GetFolderGraphOperationCompleted, userState); + } + + private void OnGetFolderGraphOperationCompleted(object arg) + { + if ((this.GetFolderGraphCompleted != null)) + { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetFolderGraphCompleted(this, new GetFolderGraphCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExecuteSyncActions", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void ExecuteSyncActions(FileSyncAction[] actions) + { + this.Invoke("ExecuteSyncActions", new object[] { + actions}); + } + + /// + public System.IAsyncResult BeginExecuteSyncActions(FileSyncAction[] actions, System.AsyncCallback callback, object asyncState) + { + return this.BeginInvoke("ExecuteSyncActions", new object[] { + actions}, callback, asyncState); + } + + /// + public void EndExecuteSyncActions(System.IAsyncResult asyncResult) + { + this.EndInvoke(asyncResult); + } + + /// + public void ExecuteSyncActionsAsync(FileSyncAction[] actions) + { + this.ExecuteSyncActionsAsync(actions, null); + } + + /// + public void ExecuteSyncActionsAsync(FileSyncAction[] actions, object userState) + { + if ((this.ExecuteSyncActionsOperationCompleted == null)) + { + this.ExecuteSyncActionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExecuteSyncActionsOperationCompleted); + } + this.InvokeAsync("ExecuteSyncActions", new object[] { + actions}, this.ExecuteSyncActionsOperationCompleted, userState); + } + + private void OnExecuteSyncActionsOperationCompleted(object arg) + { + if ((this.ExecuteSyncActionsCompleted != null)) + { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.ExecuteSyncActionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetInstalledOdbcDrivers", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string[] GetInstalledOdbcDrivers() + { object[] results = this.Invoke("GetInstalledOdbcDrivers", new object[0]); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetInstalledOdbcDrivers(System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetInstalledOdbcDrivers(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetInstalledOdbcDrivers", new object[0], callback, asyncState); } - + /// - public string[] EndGetInstalledOdbcDrivers(System.IAsyncResult asyncResult) { + public string[] EndGetInstalledOdbcDrivers(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetInstalledOdbcDriversAsync() { + public void GetInstalledOdbcDriversAsync() + { this.GetInstalledOdbcDriversAsync(null); } - + /// - public void GetInstalledOdbcDriversAsync(object userState) { - if ((this.GetInstalledOdbcDriversOperationCompleted == null)) { + public void GetInstalledOdbcDriversAsync(object userState) + { + if ((this.GetInstalledOdbcDriversOperationCompleted == null)) + { this.GetInstalledOdbcDriversOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetInstalledOdbcDriversOperationCompleted); } this.InvokeAsync("GetInstalledOdbcDrivers", new object[0], this.GetInstalledOdbcDriversOperationCompleted, userState); } - - private void OnGetInstalledOdbcDriversOperationCompleted(object arg) { - if ((this.GetInstalledOdbcDriversCompleted != null)) { + + private void OnGetInstalledOdbcDriversOperationCompleted(object arg) + { + if ((this.GetInstalledOdbcDriversCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetInstalledOdbcDriversCompleted(this, new GetInstalledOdbcDriversCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDSNNames", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string[] GetDSNNames() { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDSNNames", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string[] GetDSNNames() + { object[] results = this.Invoke("GetDSNNames", new object[0]); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDSNNames(System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDSNNames(System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDSNNames", new object[0], callback, asyncState); } - + /// - public string[] EndGetDSNNames(System.IAsyncResult asyncResult) { + public string[] EndGetDSNNames(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetDSNNamesAsync() { + public void GetDSNNamesAsync() + { this.GetDSNNamesAsync(null); } - + /// - public void GetDSNNamesAsync(object userState) { - if ((this.GetDSNNamesOperationCompleted == null)) { + public void GetDSNNamesAsync(object userState) + { + if ((this.GetDSNNamesOperationCompleted == null)) + { this.GetDSNNamesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDSNNamesOperationCompleted); } this.InvokeAsync("GetDSNNames", new object[0], this.GetDSNNamesOperationCompleted, userState); } - - private void OnGetDSNNamesOperationCompleted(object arg) { - if ((this.GetDSNNamesCompleted != null)) { + + private void OnGetDSNNamesOperationCompleted(object arg) + { + if ((this.GetDSNNamesCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDSNNamesCompleted(this, new GetDSNNamesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDSN", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public SystemDSN GetDSN(string dsnName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDSN", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public SystemDSN GetDSN(string dsnName) + { object[] results = this.Invoke("GetDSN", new object[] { dsnName}); return ((SystemDSN)(results[0])); } - + /// - public System.IAsyncResult BeginGetDSN(string dsnName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginGetDSN(string dsnName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("GetDSN", new object[] { dsnName}, callback, asyncState); } - + /// - public SystemDSN EndGetDSN(System.IAsyncResult asyncResult) { + public SystemDSN EndGetDSN(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((SystemDSN)(results[0])); } - + /// - public void GetDSNAsync(string dsnName) { + public void GetDSNAsync(string dsnName) + { this.GetDSNAsync(dsnName, null); } - + /// - public void GetDSNAsync(string dsnName, object userState) { - if ((this.GetDSNOperationCompleted == null)) { + public void GetDSNAsync(string dsnName, object userState) + { + if ((this.GetDSNOperationCompleted == null)) + { this.GetDSNOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDSNOperationCompleted); } this.InvokeAsync("GetDSN", new object[] { dsnName}, this.GetDSNOperationCompleted, userState); } - - private void OnGetDSNOperationCompleted(object arg) { - if ((this.GetDSNCompleted != null)) { + + private void OnGetDSNOperationCompleted(object arg) + { + if ((this.GetDSNCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDSNCompleted(this, new GetDSNCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDSN", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void CreateDSN(SystemDSN dsn) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDSN", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void CreateDSN(SystemDSN dsn) + { this.Invoke("CreateDSN", new object[] { dsn}); } - + /// - public System.IAsyncResult BeginCreateDSN(SystemDSN dsn, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginCreateDSN(SystemDSN dsn, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("CreateDSN", new object[] { dsn}, callback, asyncState); } - + /// - public void EndCreateDSN(System.IAsyncResult asyncResult) { + public void EndCreateDSN(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void CreateDSNAsync(SystemDSN dsn) { + public void CreateDSNAsync(SystemDSN dsn) + { this.CreateDSNAsync(dsn, null); } - + /// - public void CreateDSNAsync(SystemDSN dsn, object userState) { - if ((this.CreateDSNOperationCompleted == null)) { + public void CreateDSNAsync(SystemDSN dsn, object userState) + { + if ((this.CreateDSNOperationCompleted == null)) + { this.CreateDSNOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDSNOperationCompleted); } this.InvokeAsync("CreateDSN", new object[] { dsn}, this.CreateDSNOperationCompleted, userState); } - - private void OnCreateDSNOperationCompleted(object arg) { - if ((this.CreateDSNCompleted != null)) { + + private void OnCreateDSNOperationCompleted(object arg) + { + if ((this.CreateDSNCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateDSNCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateDSN", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void UpdateDSN(SystemDSN dsn) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateDSN", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void UpdateDSN(SystemDSN dsn) + { this.Invoke("UpdateDSN", new object[] { dsn}); } - + /// - public System.IAsyncResult BeginUpdateDSN(SystemDSN dsn, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginUpdateDSN(SystemDSN dsn, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("UpdateDSN", new object[] { dsn}, callback, asyncState); } - + /// - public void EndUpdateDSN(System.IAsyncResult asyncResult) { + public void EndUpdateDSN(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void UpdateDSNAsync(SystemDSN dsn) { + public void UpdateDSNAsync(SystemDSN dsn) + { this.UpdateDSNAsync(dsn, null); } - + /// - public void UpdateDSNAsync(SystemDSN dsn, object userState) { - if ((this.UpdateDSNOperationCompleted == null)) { + public void UpdateDSNAsync(SystemDSN dsn, object userState) + { + if ((this.UpdateDSNOperationCompleted == null)) + { this.UpdateDSNOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDSNOperationCompleted); } this.InvokeAsync("UpdateDSN", new object[] { dsn}, this.UpdateDSNOperationCompleted, userState); } - - private void OnUpdateDSNOperationCompleted(object arg) { - if ((this.UpdateDSNCompleted != null)) { + + private void OnUpdateDSNOperationCompleted(object arg) + { + if ((this.UpdateDSNCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateDSNCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDSN", RequestNamespace="http://smbsaas/websitepanel/server/", ResponseNamespace="http://smbsaas/websitepanel/server/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteDSN(string dsnName) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDSN", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteDSN(string dsnName) + { this.Invoke("DeleteDSN", new object[] { dsnName}); } - + /// - public System.IAsyncResult BeginDeleteDSN(string dsnName, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginDeleteDSN(string dsnName, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("DeleteDSN", new object[] { dsnName}, callback, asyncState); } - + /// - public void EndDeleteDSN(System.IAsyncResult asyncResult) { + public void EndDeleteDSN(System.IAsyncResult asyncResult) + { this.EndInvoke(asyncResult); } - + /// - public void DeleteDSNAsync(string dsnName) { + public void DeleteDSNAsync(string dsnName) + { this.DeleteDSNAsync(dsnName, null); } - + /// - public void DeleteDSNAsync(string dsnName, object userState) { - if ((this.DeleteDSNOperationCompleted == null)) { + public void DeleteDSNAsync(string dsnName, object userState) + { + if ((this.DeleteDSNOperationCompleted == null)) + { this.DeleteDSNOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDSNOperationCompleted); } this.InvokeAsync("DeleteDSN", new object[] { dsnName}, this.DeleteDSNOperationCompleted, userState); } - - private void OnDeleteDSNOperationCompleted(object arg) { - if ((this.DeleteDSNCompleted != null)) { + + private void OnDeleteDSNOperationCompleted(object arg) + { + if ((this.DeleteDSNCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDSNCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) { + public new void CancelAsync(object userState) + { base.CancelAsync(userState); } } - - - - - - - - - - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CreatePackageFolderCompletedEventHandler(object sender, CreatePackageFolderCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreatePackageFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal CreatePackageFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void FileExistsCompletedEventHandler(object sender, FileExistsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class FileExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal FileExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public bool Result { - get { - this.RaiseExceptionIfNecessary(); - return ((bool)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DirectoryExistsCompletedEventHandler(object sender, DirectoryExistsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DirectoryExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DirectoryExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public bool Result { - get { - this.RaiseExceptionIfNecessary(); - return ((bool)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFileCompletedEventHandler(object sender, GetFileCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemFile Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemFile)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFilesCompletedEventHandler(object sender, GetFilesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFilesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFilesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemFile[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemFile[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDirectoriesRecursiveCompletedEventHandler(object sender, GetDirectoriesRecursiveCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDirectoriesRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDirectoriesRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemFile[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemFile[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFilesRecursiveCompletedEventHandler(object sender, GetFilesRecursiveCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFilesRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFilesRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemFile[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemFile[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFilesRecursiveByPatternCompletedEventHandler(object sender, GetFilesRecursiveByPatternCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFilesRecursiveByPatternCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFilesRecursiveByPatternCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemFile[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemFile[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFileBinaryContentCompletedEventHandler(object sender, GetFileBinaryContentCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFileBinaryContentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFileBinaryContentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public byte[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((byte[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFileBinaryContentUsingEncodingCompletedEventHandler(object sender, GetFileBinaryContentUsingEncodingCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFileBinaryContentUsingEncodingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFileBinaryContentUsingEncodingCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public byte[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((byte[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFileBinaryChunkCompletedEventHandler(object sender, GetFileBinaryChunkCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFileBinaryChunkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFileBinaryChunkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public byte[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((byte[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFileTextContentCompletedEventHandler(object sender, GetFileTextContentCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFileTextContentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFileTextContentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateDirectoryCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void ChangeFileAttributesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteFilesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteEmptyDirectoriesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateFileBinaryContentCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateFileBinaryContentUsingEncodingCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AppendFileBinaryContentCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateFileTextContentCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void MoveFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CopyFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void ZipFilesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UnzipFilesCompletedEventHandler(object sender, UnzipFilesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UnzipFilesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UnzipFilesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateAccessDatabaseCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetGroupNtfsPermissionsCompletedEventHandler(object sender, GetGroupNtfsPermissionsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetGroupNtfsPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetGroupNtfsPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public UserPermission[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((UserPermission[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GrantGroupNtfsPermissionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetFolderGraphCompletedEventHandler(object sender, GetFolderGraphCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetFolderGraphCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetFolderGraphCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public FolderGraph Result { - get { - this.RaiseExceptionIfNecessary(); - return ((FolderGraph)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void ExecuteSyncActionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetInstalledOdbcDriversCompletedEventHandler(object sender, GetInstalledOdbcDriversCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetInstalledOdbcDriversCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetInstalledOdbcDriversCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDSNNamesCompletedEventHandler(object sender, GetDSNNamesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDSNNamesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDSNNamesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public string[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((string[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetDSNCompletedEventHandler(object sender, GetDSNCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDSNCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetDSNCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public SystemDSN Result { - get { - this.RaiseExceptionIfNecessary(); - return ((SystemDSN)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateDSNCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateDSNCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteDSNCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void SetQuotaLimitOnFolderCompletedEventHandler(object sender, SetQuotaLimitOnFolderCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetQuotaLimitOnFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + public partial class CreatePackageFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; - internal SetQuotaLimitOnFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + internal CreatePackageFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public string Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void FileExistsCompletedEventHandler(object sender, FileExistsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class FileExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal FileExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; @@ -2585,6 +2408,464 @@ namespace WebsitePanel.Providers.OS { } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DirectoryExistsCompletedEventHandler(object sender, DirectoryExistsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DirectoryExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal DirectoryExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public bool Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((bool)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFileCompletedEventHandler(object sender, GetFileCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public SystemFile Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((SystemFile)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFilesCompletedEventHandler(object sender, GetFilesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFilesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFilesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public SystemFile[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((SystemFile[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDirectoriesRecursiveCompletedEventHandler(object sender, GetDirectoriesRecursiveCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDirectoriesRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetDirectoriesRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public SystemFile[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((SystemFile[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFilesRecursiveCompletedEventHandler(object sender, GetFilesRecursiveCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFilesRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFilesRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public SystemFile[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((SystemFile[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFilesRecursiveByPatternCompletedEventHandler(object sender, GetFilesRecursiveByPatternCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFilesRecursiveByPatternCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFilesRecursiveByPatternCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public SystemFile[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((SystemFile[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFileBinaryContentCompletedEventHandler(object sender, GetFileBinaryContentCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFileBinaryContentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFileBinaryContentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public byte[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((byte[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFileBinaryContentUsingEncodingCompletedEventHandler(object sender, GetFileBinaryContentUsingEncodingCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFileBinaryContentUsingEncodingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFileBinaryContentUsingEncodingCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public byte[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((byte[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFileBinaryChunkCompletedEventHandler(object sender, GetFileBinaryChunkCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFileBinaryChunkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFileBinaryChunkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public byte[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((byte[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetFileTextContentCompletedEventHandler(object sender, GetFileTextContentCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetFileTextContentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetFileTextContentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public string Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CreateFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CreateDirectoryCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void ChangeFileAttributesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteFilesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteEmptyDirectoriesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateFileBinaryContentCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateFileBinaryContentUsingEncodingCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void AppendFileBinaryContentCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateFileTextContentCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void MoveFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CopyFileCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void ZipFilesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UnzipFilesCompletedEventHandler(object sender, UnzipFilesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class UnzipFilesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal UnzipFilesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public string[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((string[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CreateAccessDatabaseCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetGroupNtfsPermissionsCompletedEventHandler(object sender, GetGroupNtfsPermissionsCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetGroupNtfsPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetGroupNtfsPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public UserPermission[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((UserPermission[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GrantGroupNtfsPermissionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void SetQuotaLimitOnFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetQuotaLimitOnFolderCompletedEventHandler(object sender, GetQuotaLimitOnFolderCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetQuotaLimitOnFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetQuotaLimitOnFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public int Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteDirectoryRecursiveCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void CheckFileServicesInstallationCompletedEventHandler(object sender, CheckFileServicesInstallationCompletedEventArgs e); @@ -2615,34 +2896,139 @@ namespace WebsitePanel.Providers.OS { } } - /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteDirectoryRecursiveCompletedEventHandler(object sender, DeleteDirectoryRecursiveCompletedEventArgs e); + public delegate void GetFolderGraphCompletedEventHandler(object sender, GetFolderGraphCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteDirectoryRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + public partial class GetFolderGraphCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; - internal DeleteDirectoryRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + internal GetFolderGraphCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// - public bool Result + public FolderGraph Result { get { this.RaiseExceptionIfNecessary(); - return ((bool)(this.results[0])); + return ((FolderGraph)(this.results[0])); } } } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void ExecuteSyncActionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetInstalledOdbcDriversCompletedEventHandler(object sender, GetInstalledOdbcDriversCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetInstalledOdbcDriversCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetInstalledOdbcDriversCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public string[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((string[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDSNNamesCompletedEventHandler(object sender, GetDSNNamesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDSNNamesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetDSNNamesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public string[] Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((string[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void GetDSNCompletedEventHandler(object sender, GetDSNCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetDSNCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs + { + + private object[] results; + + internal GetDSNCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { + this.results = results; + } + + /// + public SystemDSN Result + { + get + { + this.RaiseExceptionIfNecessary(); + return ((SystemDSN)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void CreateDSNCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void UpdateDSNCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + public delegate void DeleteDSNCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); } diff --git a/WebsitePanel/Sources/WebsitePanel.Server/LyncServer.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/LyncServer.asmx.cs index 9e0e09e6..d5b8f677 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/LyncServer.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/LyncServer.asmx.cs @@ -70,6 +70,23 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] + public string GetOrganizationTenantId(string organizationId) + { + try + { + Log.WriteStart("{0}.GetOrganizationTenantId", ProviderSettings.ProviderName); + string ret = Lync.GetOrganizationTenantId(organizationId); + Log.WriteEnd("{0}.GetOrganizationTenantId", ProviderSettings.ProviderName); + return ret; + } + catch (Exception ex) + { + Log.WriteError(String.Format("Error: {0}.GetOrganizationTenantId", ProviderSettings.ProviderName), ex); + throw; + } + } + [WebMethod, SoapHeader("settings")] public bool DeleteOrganization(string organizationId, string sipDomain) { diff --git a/WebsitePanel/Sources/WebsitePanel.Server/OperatingSystem.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/OperatingSystem.asmx.cs index 235fb03d..8348ddea 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/OperatingSystem.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/OperatingSystem.asmx.cs @@ -536,12 +536,12 @@ namespace WebsitePanel.Server [WebMethod, SoapHeader("settings")] - public void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, string quotaLimit, int mode, string wmiUserName, string wmiPassword) + public void SetQuotaLimitOnFolder(string folderPath, string shareNameDrive, QuotaType quotaType, string quotaLimit, int mode, string wmiUserName, string wmiPassword) { try { Log.WriteStart("'{0}' SetQuotaLimitOnFolder", ProviderSettings.ProviderName); - OsProvider.SetQuotaLimitOnFolder(folderPath, shareNameDrive, quotaLimit, mode, wmiUserName, wmiPassword); + OsProvider.SetQuotaLimitOnFolder(folderPath, shareNameDrive, quotaType, quotaLimit, mode, wmiUserName, wmiPassword); Log.WriteEnd("'{0}' SetQuotaLimitOnFolder", ProviderSettings.ProviderName); } catch (Exception ex) @@ -551,6 +551,23 @@ namespace WebsitePanel.Server } } + [WebMethod, SoapHeader("settings")] + public Quota GetQuotaOnFolder(string folderPath, string wmiUserName, string wmiPassword) + { + try + { + Log.WriteStart("'{0}' GetQuotaOnFolder", ProviderSettings.ProviderName); + var result = OsProvider.GetQuotaOnFolder(folderPath, wmiUserName, wmiPassword); + Log.WriteEnd("'{0}' GetQuotaOnFolder", ProviderSettings.ProviderName); + return result; + } + catch (Exception ex) + { + Log.WriteError(String.Format("'{0}' GetQuotaOnFolder", ProviderSettings.ProviderName), ex); + throw; + } + } + [WebMethod, SoapHeader("settings")] public void DeleteDirectoryRecursive(string rootPath) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx index ed3482bd..0f3de7a5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx @@ -315,6 +315,9 @@ Error renaming file + + Error: Folder already exist + Error extracting files @@ -5110,10 +5113,10 @@ Recoverable Items Storage, MB - - Disk Storage Space, MB + + Disk Storage Space, Mb - + Number of Root Folders @@ -5350,6 +5353,9 @@ Error reading group settings + + Error creating folder + Error updating group settings diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Styles/Skin.css b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Styles/Skin.css index ff510896..ce4f9f0e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Styles/Skin.css +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Styles/Skin.css @@ -141,6 +141,11 @@ SPAN.Checkbox.Bold border-top: solid 1px #DFDFDF; } +.FormRBtnL +{ + padding-top: 10px; +} + .FormLabel150 { font-size: 8pt; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceQuotas.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceQuotas.ascx.resx index fd22fa9b..166f40c5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceQuotas.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceQuotas.ascx.resx @@ -201,4 +201,10 @@ Lync Phone Numbers: + + Folders: + + + Enterprise Storage, MB: + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolderGeneralSettings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolderGeneralSettings.ascx.resx index 1dabc5e0..371dc3d8 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolderGeneralSettings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolderGeneralSettings.ascx.resx @@ -147,4 +147,25 @@ Folder Url: + + Folder Limit Size (Gb): + + + * + + + Enter Folder Size + + + Quota Type: + + + * + + + Hard + + + Soft + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolders.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolders.ascx.resx index 0dd3e88c..f49dd179 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolders.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/App_LocalResources/EnterpriseStorageFolders.ascx.resx @@ -135,7 +135,7 @@ - + Total Folders Allocated: @@ -145,7 +145,7 @@ Folder Name - Folder Size + Used Space Folders @@ -153,4 +153,13 @@ Url + + Total Space Allocated (Gb): + + + Allocated Space + + + Used Diskspace (Mb): + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageCreateFolder.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageCreateFolder.ascx.cs index ecf80a9b..1d369fa8 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageCreateFolder.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageCreateFolder.ascx.cs @@ -73,7 +73,7 @@ namespace WebsitePanel.Portal.ExchangeServer if (!result.IsSuccess && result.ErrorCodes.Count > 0) { - messageBox.ShowMessage(result, "ENTERPRISE_STORAGE_FOLDER", "EnterpriseStorage"); + messageBox.ShowMessage(result, "ENTERPRISE_STORAGE_CREATE_FOLDER", "Enterprise Storage"); return; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx index d6305bc2..583c509f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx @@ -30,13 +30,31 @@ - + -
-
+ + + + + + + + + + + + + +
+
+ + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.cs index 0536121b..65cd24c9 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.cs @@ -45,6 +45,12 @@ namespace WebsitePanel.Portal.ExchangeServer { public partial class EnterpriseStorageFolderGeneralSettings : WebsitePanelModuleBase { + #region Constants + + private const int OneGb = 1024; + + #endregion + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) @@ -56,6 +62,17 @@ namespace WebsitePanel.Portal.ExchangeServer } BindSettings(); + + OrganizationStatistics organizationStats = ES.Services.Organizations.GetOrganizationStatisticsByOrganization(PanelRequest.ItemID); + + if (organizationStats.AllocatedEnterpriseStorageSpace != -1) + { + OrganizationStatistics tenantStats = ES.Services.Organizations.GetOrganizationStatistics(PanelRequest.ItemID); + + rangeFolderSize.MaximumValue = Math.Round((tenantStats.AllocatedEnterpriseStorageSpace - (decimal)tenantStats.UsedEnterpriseStorageSpace)/OneGb + + Utils.ParseDecimal(txtFolderSize.Text, 0), 2).ToString(); + rangeFolderSize.ErrorMessage = string.Format("The quota you’ve entered exceeds the available quota for tenant ({0}Gb)", rangeFolderSize.MaximumValue); + } } } @@ -64,7 +81,6 @@ namespace WebsitePanel.Portal.ExchangeServer try { // get settings - Organization org = ES.Services.Organizations.GetOrganization(PanelRequest.ItemID); SystemFile folder = ES.Services.EnterpriseStorage.GetEnterpriseFolder( @@ -75,13 +91,27 @@ namespace WebsitePanel.Portal.ExchangeServer // bind form txtFolderName.Text = folder.Name; lblFolderUrl.Text = folder.Url; + + if (folder.FRSMQuotaMB != -1) + { + txtFolderSize.Text = (Math.Round((decimal)folder.FRSMQuotaMB / OneGb, 2)).ToString(); + } + + switch (folder.FsrmQuotaType) + { + case QuotaType.Hard: + rbtnQuotaHard.Checked = true; + break; + case QuotaType.Soft: + rbtnQuotaSoft.Checked = true; + break; + } var esPermissions = ES.Services.EnterpriseStorage.GetEnterpriseFolderPermissions(PanelRequest.ItemID,folder.Name); chkDirectoryBrowsing.Checked = ES.Services.EnterpriseStorage.GetDirectoryBrowseEnabled(PanelRequest.ItemID, folder.Url); permissions.SetPermissions(esPermissions); - } catch (Exception ex) { @@ -96,8 +126,6 @@ namespace WebsitePanel.Portal.ExchangeServer try { - bool redirectNeeded = false; - litFolderName.Text = txtFolderName.Text; SystemFile folder = new SystemFile { Name = PanelRequest.FolderID, Url = lblFolderUrl.Text }; @@ -123,18 +151,25 @@ namespace WebsitePanel.Portal.ExchangeServer folder = ES.Services.EnterpriseStorage.RenameEnterpriseFolder(PanelRequest.ItemID, PanelRequest.FolderID, txtFolderName.Text); - redirectNeeded = true; + if (folder == null) + { + messageBox.ShowErrorMessage("FOLDER_ALREADY_EXIST"); + + return; + } } - ES.Services.EnterpriseStorage.SetEnterpriseFolderSettings(PanelRequest.ItemID, folder, permissions.GetPemissions(), chkDirectoryBrowsing.Checked); + ES.Services.EnterpriseStorage.SetEnterpriseFolderSettings( + PanelRequest.ItemID, + folder, + permissions.GetPemissions(), + chkDirectoryBrowsing.Checked, + (int)(decimal.Parse(txtFolderSize.Text) * OneGb), + rbtnQuotaSoft.Checked ? QuotaType.Soft : QuotaType.Hard); - if (redirectNeeded) - { - Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "enterprisestorage_folders", + + Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "enterprisestorage_folders", "ItemID=" + PanelRequest.ItemID)); - } - - messageBox.ShowSuccessMessage("ENTERPRISE_STORAGE_UPDATE_FOLDER_SETTINGS"); } catch (Exception ex) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.designer.cs index b6b60896..a599c116 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolderGeneralSettings.ascx.designer.cs @@ -130,6 +130,69 @@ namespace WebsitePanel.Portal.ExchangeServer { ///
protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireFolderName; + /// + /// locFolderSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize locFolderSize; + + /// + /// txtFolderSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFolderSize; + + /// + /// valRequireFolderSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireFolderSize; + + /// + /// rangeFolderSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RangeValidator rangeFolderSize; + + /// + /// locQuotaType control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize locQuotaType; + + /// + /// rbtnQuotaSoft control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButton rbtnQuotaSoft; + + /// + /// rbtnQuotaHard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButton rbtnQuotaHard; + /// /// locFolderUrl control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx index 4070ea3d..0d0d958b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx @@ -60,10 +60,16 @@ + + + + + + - + @@ -93,9 +99,21 @@
- +     +
+
+ + +     + +
+
+ + +     + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.cs index 6695ba5b..fa4e1e50 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.cs @@ -37,6 +37,12 @@ namespace WebsitePanel.Portal.ExchangeServer { public partial class EnterpriseStorageFolders : WebsitePanelModuleBase { + #region Constants + + private const int OneGb = 1024; + + #endregion + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) @@ -61,16 +67,26 @@ namespace WebsitePanel.Portal.ExchangeServer "ItemID=" + PanelRequest.ItemID); } + public decimal ConvertMBytesToGB(object size) + { + return Math.Round(Convert.ToDecimal(size) / OneGb, 2); + } + protected void BindEnterpriseStorageStats() { - OrganizationStatistics organizationStats = ES.Services.Organizations.GetOrganizationStatisticsByOrganization(PanelRequest.ItemID); - - OrganizationStatistics tenantStats = ES.Services.Organizations.GetOrganizationStatistics(PanelRequest.ItemID); + btnAddFolder.Enabled = true; + + OrganizationStatistics organizationStats = ES.Services.EnterpriseStorage.GetStatisticsByOrganization/*ES.Services.Organizations.GetOrganizationStatisticsByOrganization*/(PanelRequest.ItemID); + OrganizationStatistics tenantStats = ES.Services.EnterpriseStorage.GetStatistics/*ES.Services.Organizations.GetOrganizationStatistics*/(PanelRequest.ItemID); foldersQuota.QuotaUsedValue = organizationStats.CreatedEnterpriseStorageFolders; - foldersQuota.QuotaValue = organizationStats.AllocatedEnterpriseStorageFolders; + spaceAvailableQuota.QuotaUsedValue = organizationStats.UsedEnterpriseStorageSpace; + spaceAvailableQuota.QuotaValue = organizationStats.AllocatedEnterpriseStorageSpace; + + spaceQuota.QuotaValue = (int)Math.Round(ConvertMBytesToGB(organizationStats.UsedEnterpriseStorageSpace), 0); + if (organizationStats.AllocatedEnterpriseStorageFolders != -1) { int folderAvailable = foldersQuota.QuotaAvailable = tenantStats.AllocatedEnterpriseStorageFolders - tenantStats.CreatedEnterpriseStorageFolders; @@ -80,6 +96,16 @@ namespace WebsitePanel.Portal.ExchangeServer btnAddFolder.Enabled = false; } } + + if (organizationStats.AllocatedEnterpriseStorageSpace != -1) + { + int spaceAvailable = spaceAvailableQuota.QuotaAvailable = tenantStats.AllocatedEnterpriseStorageSpace - tenantStats.UsedEnterpriseStorageSpace; + + if (spaceAvailable <= 0) + { + btnAddFolder.Enabled = false; + } + } } protected void btnAddFolder_Click(object sender, EventArgs e) @@ -105,6 +131,8 @@ namespace WebsitePanel.Portal.ExchangeServer } gvFolders.DataBind(); + + BindEnterpriseStorageStats(); } catch (Exception ex) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.designer.cs index 841ed74b..1cfab2dd 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/EnterpriseStorageFolders.ascx.designer.cs @@ -167,13 +167,13 @@ namespace WebsitePanel.Portal.ExchangeServer { protected global::System.Web.UI.WebControls.ObjectDataSource odsEnterpriseFoldersPaged; /// - /// locQuota control. + /// locQuotaFolders control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locQuota; + protected global::System.Web.UI.WebControls.Localize locQuotaFolders; /// /// foldersQuota control. @@ -183,5 +183,41 @@ namespace WebsitePanel.Portal.ExchangeServer { /// To modify move field declaration from designer file to code-behind file. /// protected global::WebsitePanel.Portal.QuotaViewer foldersQuota; + + /// + /// locQuotaSpace control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize locQuotaSpace; + + /// + /// spaceQuota control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.QuotaViewer spaceQuota; + + /// + /// locQuotaAvailableSpace control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize locQuotaAvailableSpace; + + /// + /// spaceAvailableQuota control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.QuotaViewer spaceAvailableQuota; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs index 034e4adc..481699f4 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs @@ -150,7 +150,6 @@ namespace WebsitePanel.Portal.ExchangeServer if (!hideItems) { - domainStats.QuotaUsedValue = orgStats.CreatedDomains; domainStats.QuotaValue = orgStats.AllocatedDomains; if (orgStats.AllocatedDomains != -1) domainStats.QuotaAvailable = tenantStats.AllocatedDomains - tenantStats.CreatedDomains; @@ -170,9 +169,6 @@ namespace WebsitePanel.Portal.ExchangeServer else organizationStatsPanel.Visible = false; - - - if (cntx.Groups.ContainsKey(ResourceGroups.Exchange)) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/EnterpriseStoragePermissions.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/EnterpriseStoragePermissions.ascx.cs index aeda8efd..0e52b390 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/EnterpriseStoragePermissions.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/EnterpriseStoragePermissions.ascx.cs @@ -203,9 +203,6 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls if (chkSelect == null) continue; - ExchangeAccount[] accounts = ES.Services.EnterpriseStorage.SearchESAccounts(PanelRequest.ItemID, - ddlSearchColumn.SelectedValue, txtSearchValue.Text + "%", ""); - ESPermission permission = new ESPermission(); permission.Account = (string)gvPermissions.DataKeys[i][0]; permission.Access = ((Literal)row.FindControl("litAccess")).Text; @@ -277,7 +274,7 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls CheckBox chkSelect = (CheckBox)row.FindControl("chkSelect"); Literal litAccess = (Literal)row.FindControl("litAccess"); - + if (chkSelect == null || litAccess == null) continue; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/EnterpriseStorage_Settings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/EnterpriseStorage_Settings.ascx.resx index 304ec438..a253249e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/EnterpriseStorage_Settings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/EnterpriseStorage_Settings.ascx.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Enable Hard Quota: - Enterprise Storage Path: diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx index aeb0beaf..f67f906a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx @@ -24,19 +24,4 @@ ControlToValidate="txtDomain" ErrorMessage="*"> - - - - - - - - - - -
-
-
- - diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.cs index 4e37d26a..18e6b533 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.cs @@ -48,14 +48,9 @@ namespace WebsitePanel.Portal.ProviderControls { try { - chkEnableHardQuota.Enabled = ES.Services.EnterpriseStorage.CheckFileServicesInstallation(PanelRequest.ServiceId); - txtFolder.Enabled = chkEnableHardQuota.Enabled; - if (!chkEnableHardQuota.Enabled) - lblFileServiceInfo.Visible = true; - } - catch - { + txtFolder.Enabled = ES.Services.EnterpriseStorage.CheckFileServicesInstallation(PanelRequest.ServiceId); } + catch { } } } @@ -65,7 +60,6 @@ namespace WebsitePanel.Portal.ProviderControls txtFolder.Text = path; txtDomain.Text = settings["UsersDomain"]; - chkEnableHardQuota.Checked = settings["EnableHardQuota"] == "true" ? true : false; } public void SaveSettings(StringDictionary settings) @@ -79,7 +73,6 @@ namespace WebsitePanel.Portal.ProviderControls settings["LocationDrive"] = drive.Split(':')[0]; settings["UsersHome"] = folder; settings["UsersDomain"] = domain; - settings["EnableHardQuota"] = chkEnableHardQuota.Checked.ToString().ToLower(); } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.designer.cs index 21b155b1..79f0aabe 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/EnterpriseStorage_Settings.ascx.designer.cs @@ -111,23 +111,5 @@ namespace WebsitePanel.Portal.ProviderControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.RegularExpressionValidator valExpressionDomain; - - /// - /// chkEnableHardQuota control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CheckBox chkEnableHardQuota; - - /// - /// lblFileServiceInfo control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblFileServiceInfo; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IIS70_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IIS70_Settings.ascx index f6ad5853..3c44ec57 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IIS70_Settings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IIS70_Settings.ascx @@ -39,7 +39,7 @@ - + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx index fc4e2a8f..2507167b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx @@ -86,6 +86,14 @@ + + + + + + + +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs index 5dc822e6..c9d51f24 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs @@ -70,7 +70,9 @@ namespace WebsitePanel.Portal { "quotaDatabases", "pnlDatabases" }, { "quotaNumberOfVm", "pnlHyperVForPC" }, { "quotaFtpAccounts", "pnlFtpAccounts" }, - { "quotaExchangeStorage", "pnlExchangeStorage" } + { "quotaExchangeStorage", "pnlExchangeStorage" }, + { "quotaNumberOfFolders", "pnlFolders" }, + { "quotaEnterpriseStorage", "pnlEnterpriseStorage" } }; protected void Page_Load(object sender, EventArgs e) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs index 34fea34c..456467b5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs @@ -29,10 +29,9 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.3074 // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -47,7 +46,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlDiskspace; @@ -57,7 +55,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaDiskspace; @@ -67,7 +64,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.HyperLink lnkViewDiskspaceDetails; @@ -77,7 +73,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlBandwidth; @@ -87,7 +82,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaBandwidth; @@ -97,7 +91,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.HyperLink lnkViewBandwidthDetails; @@ -107,7 +100,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlDomains; @@ -117,7 +109,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblDomains; @@ -127,7 +118,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaDomains; @@ -137,7 +127,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlSubDomains; @@ -147,7 +136,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblSubDomains; @@ -157,7 +145,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaSubDomains; @@ -167,7 +154,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlDomainPointers; @@ -177,7 +163,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblDomainPointers; @@ -187,7 +172,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaDomainPointers; @@ -197,7 +181,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlOrganizations; @@ -207,7 +190,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblOrganizations; @@ -217,7 +199,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaOrganizations; @@ -227,7 +208,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlUserAccounts; @@ -237,7 +217,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblUserAccounts; @@ -247,7 +226,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaUserAccounts; @@ -257,7 +235,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlExchangeAccounts; @@ -267,7 +244,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblExchangeAccounts; @@ -277,7 +253,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaExchangeAccounts; @@ -287,7 +262,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlExchangeStorage; @@ -297,7 +271,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblExchangeStorage; @@ -307,7 +280,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaExchangeStorage; @@ -317,7 +289,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlMailAccounts; @@ -327,7 +298,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblMailAccounts; @@ -337,7 +307,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaMailAccounts; @@ -347,7 +316,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlOCSUsers; @@ -357,7 +325,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblOCSUsers; @@ -367,7 +334,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaOCSUsers; @@ -377,7 +343,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlLyncUsers; @@ -387,7 +352,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblLyncUsers; @@ -397,7 +361,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaLyncUsers; @@ -407,7 +370,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlLyncPhone; @@ -417,7 +379,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label Label1; @@ -427,7 +388,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaLyncPhone; @@ -437,7 +397,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlBlackBerryUsers; @@ -447,7 +406,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblBlackBerryUsers; @@ -457,7 +415,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaBlackBerryUsers; @@ -467,7 +424,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlSharepointSites; @@ -477,7 +433,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblSharepointSites; @@ -487,7 +442,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaSharepointSites; @@ -497,7 +451,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlWebSites; @@ -507,7 +460,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblWebSites; @@ -517,7 +469,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaWebSites; @@ -527,7 +478,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlFtpAccounts; @@ -537,7 +487,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblFtpAccounts; @@ -547,7 +496,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaFtpAccounts; @@ -557,7 +505,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlDatabases; @@ -567,7 +514,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblDatabases; @@ -577,7 +523,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaDatabases; @@ -587,7 +532,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlHyperVForPC; @@ -597,7 +541,6 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Label lblHyperVForPC; @@ -607,17 +550,69 @@ namespace WebsitePanel.Portal { /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::WebsitePanel.Portal.Quota quotaNumberOfVm; + /// + /// pnlFolders control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlFolders; + + /// + /// lblFolders control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblFolders; + + /// + /// quotaNumberOfFolders control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.Quota quotaNumberOfFolders; + + /// + /// pnlEnterpriseStorage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlEnterpriseStorage; + + /// + /// lblEnterpriseStorage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblEnterpriseStorage; + + /// + /// quotaEnterpriseStorage control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.Quota quotaEnterpriseStorage; + /// /// btnViewQuotas control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. - /// protected global::System.Web.UI.WebControls.Button btnViewQuotas; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj index 89216e4a..a379d819 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj @@ -5291,7 +5291,9 @@ Designer - + + Designer + Designer