diff --git a/WebsitePanel/Database/install_db.sql b/WebsitePanel/Database/install_db.sql index b9a05217..cebc7caf 100644 --- a/WebsitePanel/Database/install_db.sql +++ b/WebsitePanel/Database/install_db.sql @@ -3708,14 +3708,6 @@ INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDe GO INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (332, 2, 21, N'Web.SSL', N'SSL', 1, 0, NULL) GO -INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (340, 33, 1, N'ExchangeHostedEdition.Domains', N'Domains', 3, 0, NULL) -GO -INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (341, 33, 2, N'ExchangeHostedEdition.Mailboxes', N'Mailboxes', 3, 0, NULL) -GO -INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (342, 33, 3, N'ExchangeHostedEdition.Contacts', N'Contacts', 3, 0, NULL) -GO -INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (343, 33, 4, N'ExchangeHostedEdition.DistributionLists', N'Distribution Lists', 3, 0, NULL) -GO INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (344, 2, 9, N'Web.Htaccess', N'htaccess', 1, 0, NULL) GO INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (345, 40, 1, N'VPSForPC.ServersNumber', N'Number of VPS', 2, 0, 35) @@ -10517,8 +10509,6 @@ INSERT [dbo].[ResourceGroups] ([GroupID], [GroupName], [GroupOrder], [GroupContr GO INSERT [dbo].[ResourceGroups] ([GroupID], [GroupName], [GroupOrder], [GroupController]) VALUES (32, N'OCS', 22, NULL) GO -INSERT [dbo].[ResourceGroups] ([GroupID], [GroupName], [GroupOrder], [GroupController]) VALUES (33, N'ExchangeHostedEdition', 7, N'WebsitePanel.EnterpriseServer.ExchangeHostedEditionController') -GO INSERT [dbo].[ResourceGroups] ([GroupID], [GroupName], [GroupOrder], [GroupController]) VALUES (40, N'VPSForPC', 20, NULL) GO SET ANSI_NULLS ON @@ -22300,8 +22290,6 @@ INSERT [dbo].[ServiceItemTypes] ([ItemTypeID], [GroupID], [DisplayName], [TypeNa GO INSERT [dbo].[ServiceItemTypes] ([ItemTypeID], [GroupID], [DisplayName], [TypeName], [TypeOrder], [CalculateDiskspace], [CalculateBandwidth], [Suspendable], [Disposable], [Searchable], [Importable], [Backupable]) VALUES (38, 23, N'MsSQL2012User', N'WebsitePanel.Providers.Database.SqlUser, WebsitePanel.Providers.Base', 1, 0, 0, 0, 1, 1, 1, 1) GO -INSERT [dbo].[ServiceItemTypes] ([ItemTypeID], [GroupID], [DisplayName], [TypeName], [TypeOrder], [CalculateDiskspace], [CalculateBandwidth], [Suspendable], [Disposable], [Searchable], [Importable], [Backupable]) VALUES (40, 33, N'ExchangeOrganization', N'WebsitePanel.Providers.ExchangeHostedEdition.ExchangeOrganization, WebsitePanel.Providers.Base', 1, 0, 0, 1, 1, 1, 0, 0) -GO INSERT [dbo].[ServiceItemTypes] ([ItemTypeID], [GroupID], [DisplayName], [TypeName], [TypeOrder], [CalculateDiskspace], [CalculateBandwidth], [Suspendable], [Disposable], [Searchable], [Importable], [Backupable]) VALUES (200, 20, N'SharePointSiteCollection', N'WebsitePanel.Providers.SharePoint.SharePointSiteCollection, WebsitePanel.Providers.Base', 25, 1, 0, 0, 1, 1, 1, 1) GO SET ANSI_NULLS ON @@ -23259,8 +23247,6 @@ INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName] GO INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName], [ProviderType], [EditorControl], [DisableAutoDiscovery]) VALUES (206, 32, N'OCSEdge', N'OCS Edge server', N'WebsitePanel.Providers.HostedSolution.OCSEdge2007R2, WebsitePanel.Providers.HostedSolution', N'OCS_Edge', 1) GO -INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName], [ProviderType], [EditorControl], [DisableAutoDiscovery]) VALUES (207, 33, N'Exchange2010SP1', N'Exchange Server 2010 SP1 Hosting Mode', N'WebsitePanel.Providers.ExchangeHostedEdition.Exchange2010SP1, WebsitePanel.Providers.ExchangeHostedEdition', N'Exchange2010SP1', 1) -GO INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName], [ProviderType], [EditorControl], [DisableAutoDiscovery]) VALUES (208, 20, N'HostedSharePoint2010', N'Hosted SharePoint Foundation 2010', N'WebsitePanel.Providers.HostedSolution.HostedSharePointServer2010, WebsitePanel.Providers.HostedSolution', N'HostedSharePoint30', NULL) GO INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName], [ProviderType], [EditorControl], [DisableAutoDiscovery]) VALUES (209, 23, N'MsSQL', N'Microsoft SQL Server 2012', N'WebsitePanel.Providers.Database.MsSqlServer2012, WebsitePanel.Providers.Database.SqlServer', N'MSSQL', NULL) diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index ebfc3189..cb5595fa 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -36,37 +36,35 @@ UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 5 WHERE [GroupName] = N'Exchang GO UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 6 WHERE [GroupName] = N'Hosted Organizations' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 7 WHERE [GroupName] = N'ExchangeHostedEdition' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 7 WHERE [GroupName] = N'MsSQL2000' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 8 WHERE [GroupName] = N'MsSQL2000' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 8 WHERE [GroupName] = N'MsSQL2005' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 9 WHERE [GroupName] = N'MsSQL2005' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 9 WHERE [GroupName] = N'MsSQL2008' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 10 WHERE [GroupName] = N'MsSQL2008' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 10 WHERE [GroupName] = N'MsSQL2012' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 11 WHERE [GroupName] = N'MsSQL2012' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 11 WHERE [GroupName] = N'MySQL4' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 12 WHERE [GroupName] = N'MySQL4' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 12 WHERE [GroupName] = N'MySQL5' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 13 WHERE [GroupName] = N'MySQL5' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 13 WHERE [GroupName] = N'SharePoint' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 14 WHERE [GroupName] = N'SharePoint' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 14 WHERE [GroupName] = N'Hosted SharePoint' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 15 WHERE [GroupName] = N'Hosted SharePoint' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 15 WHERE [GroupName] = N'Hosted CRM' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 16 WHERE [GroupName] = N'Hosted CRM' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 16 WHERE [GroupName] = N'DNS' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 17 WHERE [GroupName] = N'DNS' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 17 WHERE [GroupName] = N'Statistics' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 18 WHERE [GroupName] = N'Statistics' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 18 WHERE [GroupName] = N'VPS' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 19 WHERE [GroupName] = N'VPS' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 19 WHERE [GroupName] = N'VPSForPC' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 20 WHERE [GroupName] = N'VPSForPC' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 20 WHERE [GroupName] = N'BlackBerry' GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 21 WHERE [GroupName] = N'BlackBerry' -GO -UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 22 WHERE [GroupName] = N'OCS' +UPDATE [dbo].[ResourceGroups] SET [GroupOrder] = 21 WHERE [GroupName] = N'OCS' GO IF NOT EXISTS (SELECT * FROM [dbo].[ServiceItemTypes] WHERE [DisplayName] = 'MsSQL2012Database') @@ -1497,4 +1495,38 @@ GO UPDATE dbo.Quotas SET QuotaTypeID = 2 WHERE QuotaName = 'HostedSharePoint.Sites' +GO + + + + +-- Remove ExchangeHostedEdition Quotas +DELETE FROM Quotas WHERE QuotaID = 340 +GO +DELETE FROM Quotas WHERE QuotaID = 341 +GO +DELETE FROM Quotas WHERE QuotaID = 342 +GO +DELETE FROM Quotas WHERE QuotaID = 343 +GO + + +-- Remove ExchangeHostedEdition ServiceItemType +DELETE FROM ServiceItemTypes WHERE ItemTypeID = 40 +GO + + +-- Remove ExchangeHostedEdition ServiceDefaultProperties +DELETE FROM ServiceDefaultProperties WHERE ProviderID = 207 +GO + + + +-- Remove ExchangeHostedEdition Provider +DELETE FROM Providers WHERE ProviderID = 207 +GO + + +-- Remove ExchangeHostedEdition ResourceGroups +DELETE FROM ResourceGroups WHERE GRoupID = 33 GO \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/PackageSettings.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/PackageSettings.cs index 254bd1af..6d2ba63c 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/PackageSettings.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/PackageSettings.cs @@ -42,7 +42,6 @@ namespace WebsitePanel.EnterpriseServer public const string NAME_SERVERS = "NameServers"; public const string SHARED_SSL_SITES = "SharedSslSites"; public const string EXCHANGE_SERVER = "ExchangeServer"; - public const string EXCHANGE_HOSTED_EDITION = "ExchangeHostedEdition"; public const string HOSTED_SOLLUTION = "HostedSollution"; public const string VIRTUAL_PRIVATE_SERVERS = "VirtualPrivateServers"; diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs index 0f353415..98a45a86 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs @@ -105,10 +105,6 @@ order by rg.groupOrder public const string EXCHANGE2007_OWAENABLED = "Exchange2007.OWAEnabled"; // OWA Enabled by default public const string EXCHANGE2007_MAPIENABLED = "Exchange2007.MAPIEnabled"; // MAPI Enabled by default public const string EXCHANGE2007_ACTIVESYNCENABLED = "Exchange2007.ActiveSyncEnabled"; // ActiveSync Enabled by default - public const string EXCHANGEHOSTEDEDITION_DOMAINS = "ExchangeHostedEdition.Domains"; - public const string EXCHANGEHOSTEDEDITION_MAILBOXES = "ExchangeHostedEdition.Mailboxes"; - public const string EXCHANGEHOSTEDEDITION_CONTACTS = "ExchangeHostedEdition.Contacts"; - public const string EXCHANGEHOSTEDEDITION_DISTRIBUTIONLISTS = "ExchangeHostedEdition.DistributionLists"; public const string MSSQL2000_DATABASES = "MsSQL2000.Databases"; // Databases public const string MSSQL2000_USERS = "MsSQL2000.Users"; // Users public const string MSSQL2000_MAXDATABASESIZE = "MsSQL2000.MaxDatabaseSize"; // Max Database Size diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/ResourceGroups.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/ResourceGroups.cs index a4813bba..c9ad1502 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/ResourceGroups.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Servers/ResourceGroups.cs @@ -45,7 +45,6 @@ namespace WebsitePanel.EnterpriseServer public const string SharePoint = "SharePoint"; public const string HostedSharePoint = "Hosted SharePoint"; public const string Exchange = "Exchange"; - public const string ExchangeHostedEdition = "ExchangeHostedEdition"; public const string HostedOrganizations = "Hosted Organizations"; public const string HostedCRM = "Hosted CRM"; public const string VPS = "VPS"; diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Users/UserSettings.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Users/UserSettings.cs index 29f3df22..faacf9de 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Users/UserSettings.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Users/UserSettings.cs @@ -41,7 +41,6 @@ namespace WebsitePanel.EnterpriseServer public const string PACKAGE_SUMMARY_LETTER = "PackageSummaryLetter"; public const string PASSWORD_REMINDER_LETTER = "PasswordReminderLetter"; public const string EXCHANGE_MAILBOX_SETUP_LETTER = "ExchangeMailboxSetupLetter"; - public const string EXCHANGE_HOSTED_EDITION_ORGANIZATION_SUMMARY = "ExchangeHostedEditionOrganizationSummary"; public const string HOSTED_SOLUTION_REPORT = "HostedSoluitonReportSummaryLetter"; public const string ORGANIZATION_USER_SUMMARY_LETTER = "OrganizationUserSummaryLetter"; public const string VPS_SUMMARY_LETTER = "VpsSummaryLetter"; @@ -53,7 +52,6 @@ namespace WebsitePanel.EnterpriseServer public const string SHAREPOINT_POLICY = "SharePointPolicy"; public const string OS_POLICY = "OsPolicy"; public const string EXCHANGE_POLICY = "ExchangePolicy"; - public const string EXCHANGE_HOSTED_EDITION_POLICY = "ExchangeHostedEditionPolicy"; public const string WEBSITEPANEL_POLICY = "WebsitePanelPolicy"; public const string VPS_POLICY = "VpsPolicy"; public const string DISPLAY_PREFS = "DisplayPreferences"; diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeHostedEditionProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeHostedEditionProxy.cs deleted file mode 100644 index e8b723c4..00000000 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeHostedEditionProxy.cs +++ /dev/null @@ -1,950 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4952 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -// -// This source code was auto-generated by wsdl, Version=2.0.50727.42. -// -namespace WebsitePanel.EnterpriseServer { - using System.Xml.Serialization; - using System.Web.Services; - using System.ComponentModel; - using System.Web.Services.Protocols; - using System; - using System.Diagnostics; - - using WebsitePanel.Providers; - using WebsitePanel.Providers.Common; - using WebsitePanel.Providers.ExchangeHostedEdition; - using WebsitePanel.Providers.ResultObjects; - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name="esExchangeHostedEditionSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class esExchangeHostedEdition : Microsoft.Web.Services3.WebServicesClientProtocol { - - private System.Threading.SendOrPostCallback GetOrganizationsOperationCompleted; - - private System.Threading.SendOrPostCallback CreateExchangeOrganizationOperationCompleted; - - private System.Threading.SendOrPostCallback GetExchangeOrganizationDetailsOperationCompleted; - - private System.Threading.SendOrPostCallback GetExchangeOrganizationDomainsOperationCompleted; - - private System.Threading.SendOrPostCallback GetExchangeOrganizationSummaryOperationCompleted; - - private System.Threading.SendOrPostCallback SendExchangeOrganizationSummaryOperationCompleted; - - private System.Threading.SendOrPostCallback AddExchangeOrganizationDomainOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteExchangeOrganizationDomainOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateExchangeOrganizationQuotasOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateExchangeOrganizationCatchAllAddressOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateExchangeOrganizationServicePlanOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteExchangeOrganizationOperationCompleted; - - /// - public esExchangeHostedEdition() { - this.Url = "http://localhost:9002/esExchangeHostedEdition.asmx"; - } - - /// - public event GetOrganizationsCompletedEventHandler GetOrganizationsCompleted; - - /// - public event CreateExchangeOrganizationCompletedEventHandler CreateExchangeOrganizationCompleted; - - /// - public event GetExchangeOrganizationDetailsCompletedEventHandler GetExchangeOrganizationDetailsCompleted; - - /// - public event GetExchangeOrganizationDomainsCompletedEventHandler GetExchangeOrganizationDomainsCompleted; - - /// - public event GetExchangeOrganizationSummaryCompletedEventHandler GetExchangeOrganizationSummaryCompleted; - - /// - public event SendExchangeOrganizationSummaryCompletedEventHandler SendExchangeOrganizationSummaryCompleted; - - /// - public event AddExchangeOrganizationDomainCompletedEventHandler AddExchangeOrganizationDomainCompleted; - - /// - public event DeleteExchangeOrganizationDomainCompletedEventHandler DeleteExchangeOrganizationDomainCompleted; - - /// - public event UpdateExchangeOrganizationQuotasCompletedEventHandler UpdateExchangeOrganizationQuotasCompleted; - - /// - public event UpdateExchangeOrganizationCatchAllAddressCompletedEventHandler UpdateExchangeOrganizationCatchAllAddressCompleted; - - /// - public event UpdateExchangeOrganizationServicePlanCompletedEventHandler UpdateExchangeOrganizationServicePlanCompleted; - - /// - public event DeleteExchangeOrganizationCompletedEventHandler DeleteExchangeOrganizationCompleted; - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizations", 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 ExchangeOrganization[] GetOrganizations(int packageId) { - object[] results = this.Invoke("GetOrganizations", new object[] { - packageId}); - return ((ExchangeOrganization[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetOrganizations(int packageId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetOrganizations", new object[] { - packageId}, callback, asyncState); - } - - /// - public ExchangeOrganization[] EndGetOrganizations(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeOrganization[])(results[0])); - } - - /// - public void GetOrganizationsAsync(int packageId) { - this.GetOrganizationsAsync(packageId, null); - } - - /// - public void GetOrganizationsAsync(int packageId, object userState) { - if ((this.GetOrganizationsOperationCompleted == null)) { - this.GetOrganizationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationsOperationCompleted); - } - this.InvokeAsync("GetOrganizations", new object[] { - packageId}, this.GetOrganizationsOperationCompleted, userState); - } - - private void OnGetOrganizationsOperationCompleted(object arg) { - if ((this.GetOrganizationsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetOrganizationsCompleted(this, new GetOrganizationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateExchangeOrganization", 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 IntResult CreateExchangeOrganization(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword) { - object[] results = this.Invoke("CreateExchangeOrganization", new object[] { - packageId, - organizationId, - domain, - adminName, - adminEmail, - adminPassword}); - return ((IntResult)(results[0])); - } - - /// - public System.IAsyncResult BeginCreateExchangeOrganization(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("CreateExchangeOrganization", new object[] { - packageId, - organizationId, - domain, - adminName, - adminEmail, - adminPassword}, callback, asyncState); - } - - /// - public IntResult EndCreateExchangeOrganization(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((IntResult)(results[0])); - } - - /// - public void CreateExchangeOrganizationAsync(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword) { - this.CreateExchangeOrganizationAsync(packageId, organizationId, domain, adminName, adminEmail, adminPassword, null); - } - - /// - public void CreateExchangeOrganizationAsync(int packageId, string organizationId, string domain, string adminName, string adminEmail, string adminPassword, object userState) { - if ((this.CreateExchangeOrganizationOperationCompleted == null)) { - this.CreateExchangeOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateExchangeOrganizationOperationCompleted); - } - this.InvokeAsync("CreateExchangeOrganization", new object[] { - packageId, - organizationId, - domain, - adminName, - adminEmail, - adminPassword}, this.CreateExchangeOrganizationOperationCompleted, userState); - } - - private void OnCreateExchangeOrganizationOperationCompleted(object arg) { - if ((this.CreateExchangeOrganizationCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.CreateExchangeOrganizationCompleted(this, new CreateExchangeOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetExchangeOrganizationDetails", 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 ExchangeOrganization GetExchangeOrganizationDetails(int itemId) { - object[] results = this.Invoke("GetExchangeOrganizationDetails", new object[] { - itemId}); - return ((ExchangeOrganization)(results[0])); - } - - /// - public System.IAsyncResult BeginGetExchangeOrganizationDetails(int itemId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetExchangeOrganizationDetails", new object[] { - itemId}, callback, asyncState); - } - - /// - public ExchangeOrganization EndGetExchangeOrganizationDetails(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeOrganization)(results[0])); - } - - /// - public void GetExchangeOrganizationDetailsAsync(int itemId) { - this.GetExchangeOrganizationDetailsAsync(itemId, null); - } - - /// - public void GetExchangeOrganizationDetailsAsync(int itemId, object userState) { - if ((this.GetExchangeOrganizationDetailsOperationCompleted == null)) { - this.GetExchangeOrganizationDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExchangeOrganizationDetailsOperationCompleted); - } - this.InvokeAsync("GetExchangeOrganizationDetails", new object[] { - itemId}, this.GetExchangeOrganizationDetailsOperationCompleted, userState); - } - - private void OnGetExchangeOrganizationDetailsOperationCompleted(object arg) { - if ((this.GetExchangeOrganizationDetailsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetExchangeOrganizationDetailsCompleted(this, new GetExchangeOrganizationDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetExchangeOrganizationDomains", 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 ExchangeOrganizationDomain[] GetExchangeOrganizationDomains(int itemId) { - object[] results = this.Invoke("GetExchangeOrganizationDomains", new object[] { - itemId}); - return ((ExchangeOrganizationDomain[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetExchangeOrganizationDomains(int itemId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetExchangeOrganizationDomains", new object[] { - itemId}, callback, asyncState); - } - - /// - public ExchangeOrganizationDomain[] EndGetExchangeOrganizationDomains(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeOrganizationDomain[])(results[0])); - } - - /// - public void GetExchangeOrganizationDomainsAsync(int itemId) { - this.GetExchangeOrganizationDomainsAsync(itemId, null); - } - - /// - public void GetExchangeOrganizationDomainsAsync(int itemId, object userState) { - if ((this.GetExchangeOrganizationDomainsOperationCompleted == null)) { - this.GetExchangeOrganizationDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExchangeOrganizationDomainsOperationCompleted); - } - this.InvokeAsync("GetExchangeOrganizationDomains", new object[] { - itemId}, this.GetExchangeOrganizationDomainsOperationCompleted, userState); - } - - private void OnGetExchangeOrganizationDomainsOperationCompleted(object arg) { - if ((this.GetExchangeOrganizationDomainsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetExchangeOrganizationDomainsCompleted(this, new GetExchangeOrganizationDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetExchangeOrganizationSummary", 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 string GetExchangeOrganizationSummary(int itemId) { - object[] results = this.Invoke("GetExchangeOrganizationSummary", new object[] { - itemId}); - return ((string)(results[0])); - } - - /// - public System.IAsyncResult BeginGetExchangeOrganizationSummary(int itemId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetExchangeOrganizationSummary", new object[] { - itemId}, callback, asyncState); - } - - /// - public string EndGetExchangeOrganizationSummary(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((string)(results[0])); - } - - /// - public void GetExchangeOrganizationSummaryAsync(int itemId) { - this.GetExchangeOrganizationSummaryAsync(itemId, null); - } - - /// - public void GetExchangeOrganizationSummaryAsync(int itemId, object userState) { - if ((this.GetExchangeOrganizationSummaryOperationCompleted == null)) { - this.GetExchangeOrganizationSummaryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetExchangeOrganizationSummaryOperationCompleted); - } - this.InvokeAsync("GetExchangeOrganizationSummary", new object[] { - itemId}, this.GetExchangeOrganizationSummaryOperationCompleted, userState); - } - - private void OnGetExchangeOrganizationSummaryOperationCompleted(object arg) { - if ((this.GetExchangeOrganizationSummaryCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetExchangeOrganizationSummaryCompleted(this, new GetExchangeOrganizationSummaryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SendExchangeOrganizationSummary", 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 ResultObject SendExchangeOrganizationSummary(int itemId, string toEmail) { - object[] results = this.Invoke("SendExchangeOrganizationSummary", new object[] { - itemId, - toEmail}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginSendExchangeOrganizationSummary(int itemId, string toEmail, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("SendExchangeOrganizationSummary", new object[] { - itemId, - toEmail}, callback, asyncState); - } - - /// - public ResultObject EndSendExchangeOrganizationSummary(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void SendExchangeOrganizationSummaryAsync(int itemId, string toEmail) { - this.SendExchangeOrganizationSummaryAsync(itemId, toEmail, null); - } - - /// - public void SendExchangeOrganizationSummaryAsync(int itemId, string toEmail, object userState) { - if ((this.SendExchangeOrganizationSummaryOperationCompleted == null)) { - this.SendExchangeOrganizationSummaryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendExchangeOrganizationSummaryOperationCompleted); - } - this.InvokeAsync("SendExchangeOrganizationSummary", new object[] { - itemId, - toEmail}, this.SendExchangeOrganizationSummaryOperationCompleted, userState); - } - - private void OnSendExchangeOrganizationSummaryOperationCompleted(object arg) { - if ((this.SendExchangeOrganizationSummaryCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.SendExchangeOrganizationSummaryCompleted(this, new SendExchangeOrganizationSummaryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddExchangeOrganizationDomain", 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 ResultObject AddExchangeOrganizationDomain(int itemId, string domain) { - object[] results = this.Invoke("AddExchangeOrganizationDomain", new object[] { - itemId, - domain}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginAddExchangeOrganizationDomain(int itemId, string domain, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddExchangeOrganizationDomain", new object[] { - itemId, - domain}, callback, asyncState); - } - - /// - public ResultObject EndAddExchangeOrganizationDomain(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void AddExchangeOrganizationDomainAsync(int itemId, string domain) { - this.AddExchangeOrganizationDomainAsync(itemId, domain, null); - } - - /// - public void AddExchangeOrganizationDomainAsync(int itemId, string domain, object userState) { - if ((this.AddExchangeOrganizationDomainOperationCompleted == null)) { - this.AddExchangeOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddExchangeOrganizationDomainOperationCompleted); - } - this.InvokeAsync("AddExchangeOrganizationDomain", new object[] { - itemId, - domain}, this.AddExchangeOrganizationDomainOperationCompleted, userState); - } - - private void OnAddExchangeOrganizationDomainOperationCompleted(object arg) { - if ((this.AddExchangeOrganizationDomainCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddExchangeOrganizationDomainCompleted(this, new AddExchangeOrganizationDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteExchangeOrganizationDomain", 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 ResultObject DeleteExchangeOrganizationDomain(int itemId, string domain) { - object[] results = this.Invoke("DeleteExchangeOrganizationDomain", new object[] { - itemId, - domain}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteExchangeOrganizationDomain(int itemId, string domain, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteExchangeOrganizationDomain", new object[] { - itemId, - domain}, callback, asyncState); - } - - /// - public ResultObject EndDeleteExchangeOrganizationDomain(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void DeleteExchangeOrganizationDomainAsync(int itemId, string domain) { - this.DeleteExchangeOrganizationDomainAsync(itemId, domain, null); - } - - /// - public void DeleteExchangeOrganizationDomainAsync(int itemId, string domain, object userState) { - if ((this.DeleteExchangeOrganizationDomainOperationCompleted == null)) { - this.DeleteExchangeOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteExchangeOrganizationDomainOperationCompleted); - } - this.InvokeAsync("DeleteExchangeOrganizationDomain", new object[] { - itemId, - domain}, this.DeleteExchangeOrganizationDomainOperationCompleted, userState); - } - - private void OnDeleteExchangeOrganizationDomainOperationCompleted(object arg) { - if ((this.DeleteExchangeOrganizationDomainCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteExchangeOrganizationDomainCompleted(this, new DeleteExchangeOrganizationDomainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateExchangeOrganizationQuotas", 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 ResultObject UpdateExchangeOrganizationQuotas(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) { - object[] results = this.Invoke("UpdateExchangeOrganizationQuotas", new object[] { - itemId, - mailboxesNumber, - contactsNumber, - distributionListsNumber}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateExchangeOrganizationQuotas(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateExchangeOrganizationQuotas", new object[] { - itemId, - mailboxesNumber, - contactsNumber, - distributionListsNumber}, callback, asyncState); - } - - /// - public ResultObject EndUpdateExchangeOrganizationQuotas(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void UpdateExchangeOrganizationQuotasAsync(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) { - this.UpdateExchangeOrganizationQuotasAsync(itemId, mailboxesNumber, contactsNumber, distributionListsNumber, null); - } - - /// - public void UpdateExchangeOrganizationQuotasAsync(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, object userState) { - if ((this.UpdateExchangeOrganizationQuotasOperationCompleted == null)) { - this.UpdateExchangeOrganizationQuotasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateExchangeOrganizationQuotasOperationCompleted); - } - this.InvokeAsync("UpdateExchangeOrganizationQuotas", new object[] { - itemId, - mailboxesNumber, - contactsNumber, - distributionListsNumber}, this.UpdateExchangeOrganizationQuotasOperationCompleted, userState); - } - - private void OnUpdateExchangeOrganizationQuotasOperationCompleted(object arg) { - if ((this.UpdateExchangeOrganizationQuotasCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateExchangeOrganizationQuotasCompleted(this, new UpdateExchangeOrganizationQuotasCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateExchangeOrganizationCatchAllAd" + - "dress", 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 ResultObject UpdateExchangeOrganizationCatchAllAddress(int itemId, string catchAllEmail) { - object[] results = this.Invoke("UpdateExchangeOrganizationCatchAllAddress", new object[] { - itemId, - catchAllEmail}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateExchangeOrganizationCatchAllAddress(int itemId, string catchAllEmail, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateExchangeOrganizationCatchAllAddress", new object[] { - itemId, - catchAllEmail}, callback, asyncState); - } - - /// - public ResultObject EndUpdateExchangeOrganizationCatchAllAddress(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void UpdateExchangeOrganizationCatchAllAddressAsync(int itemId, string catchAllEmail) { - this.UpdateExchangeOrganizationCatchAllAddressAsync(itemId, catchAllEmail, null); - } - - /// - public void UpdateExchangeOrganizationCatchAllAddressAsync(int itemId, string catchAllEmail, object userState) { - if ((this.UpdateExchangeOrganizationCatchAllAddressOperationCompleted == null)) { - this.UpdateExchangeOrganizationCatchAllAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateExchangeOrganizationCatchAllAddressOperationCompleted); - } - this.InvokeAsync("UpdateExchangeOrganizationCatchAllAddress", new object[] { - itemId, - catchAllEmail}, this.UpdateExchangeOrganizationCatchAllAddressOperationCompleted, userState); - } - - private void OnUpdateExchangeOrganizationCatchAllAddressOperationCompleted(object arg) { - if ((this.UpdateExchangeOrganizationCatchAllAddressCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateExchangeOrganizationCatchAllAddressCompleted(this, new UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/UpdateExchangeOrganizationServicePla" + - "n", 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 ResultObject UpdateExchangeOrganizationServicePlan(int itemId, int newServiceId) { - object[] results = this.Invoke("UpdateExchangeOrganizationServicePlan", new object[] { - itemId, - newServiceId}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginUpdateExchangeOrganizationServicePlan(int itemId, int newServiceId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateExchangeOrganizationServicePlan", new object[] { - itemId, - newServiceId}, callback, asyncState); - } - - /// - public ResultObject EndUpdateExchangeOrganizationServicePlan(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void UpdateExchangeOrganizationServicePlanAsync(int itemId, int newServiceId) { - this.UpdateExchangeOrganizationServicePlanAsync(itemId, newServiceId, null); - } - - /// - public void UpdateExchangeOrganizationServicePlanAsync(int itemId, int newServiceId, object userState) { - if ((this.UpdateExchangeOrganizationServicePlanOperationCompleted == null)) { - this.UpdateExchangeOrganizationServicePlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateExchangeOrganizationServicePlanOperationCompleted); - } - this.InvokeAsync("UpdateExchangeOrganizationServicePlan", new object[] { - itemId, - newServiceId}, this.UpdateExchangeOrganizationServicePlanOperationCompleted, userState); - } - - private void OnUpdateExchangeOrganizationServicePlanOperationCompleted(object arg) { - if ((this.UpdateExchangeOrganizationServicePlanCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateExchangeOrganizationServicePlanCompleted(this, new UpdateExchangeOrganizationServicePlanCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteExchangeOrganization", 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 ResultObject DeleteExchangeOrganization(int itemId) { - object[] results = this.Invoke("DeleteExchangeOrganization", new object[] { - itemId}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteExchangeOrganization(int itemId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteExchangeOrganization", new object[] { - itemId}, callback, asyncState); - } - - /// - public ResultObject EndDeleteExchangeOrganization(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void DeleteExchangeOrganizationAsync(int itemId) { - this.DeleteExchangeOrganizationAsync(itemId, null); - } - - /// - public void DeleteExchangeOrganizationAsync(int itemId, object userState) { - if ((this.DeleteExchangeOrganizationOperationCompleted == null)) { - this.DeleteExchangeOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteExchangeOrganizationOperationCompleted); - } - this.InvokeAsync("DeleteExchangeOrganization", new object[] { - itemId}, this.DeleteExchangeOrganizationOperationCompleted, userState); - } - - private void OnDeleteExchangeOrganizationOperationCompleted(object arg) { - if ((this.DeleteExchangeOrganizationCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteExchangeOrganizationCompleted(this, new DeleteExchangeOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - public new void CancelAsync(object userState) { - base.CancelAsync(userState); - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetOrganizationsCompletedEventHandler(object sender, GetOrganizationsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetOrganizationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ExchangeOrganization[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ExchangeOrganization[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateExchangeOrganizationCompletedEventHandler(object sender, CreateExchangeOrganizationCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal CreateExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public IntResult Result { - get { - this.RaiseExceptionIfNecessary(); - return ((IntResult)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetExchangeOrganizationDetailsCompletedEventHandler(object sender, GetExchangeOrganizationDetailsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetExchangeOrganizationDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetExchangeOrganizationDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ExchangeOrganization Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ExchangeOrganization)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetExchangeOrganizationDomainsCompletedEventHandler(object sender, GetExchangeOrganizationDomainsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetExchangeOrganizationDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetExchangeOrganizationDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ExchangeOrganizationDomain[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ExchangeOrganizationDomain[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetExchangeOrganizationSummaryCompletedEventHandler(object sender, GetExchangeOrganizationSummaryCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetExchangeOrganizationSummaryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetExchangeOrganizationSummaryCompletedEventArgs(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 SendExchangeOrganizationSummaryCompletedEventHandler(object sender, SendExchangeOrganizationSummaryCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SendExchangeOrganizationSummaryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal SendExchangeOrganizationSummaryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AddExchangeOrganizationDomainCompletedEventHandler(object sender, AddExchangeOrganizationDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddExchangeOrganizationDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal AddExchangeOrganizationDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteExchangeOrganizationDomainCompletedEventHandler(object sender, DeleteExchangeOrganizationDomainCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteExchangeOrganizationDomainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteExchangeOrganizationDomainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateExchangeOrganizationQuotasCompletedEventHandler(object sender, UpdateExchangeOrganizationQuotasCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateExchangeOrganizationQuotasCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UpdateExchangeOrganizationQuotasCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateExchangeOrganizationCatchAllAddressCompletedEventHandler(object sender, UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UpdateExchangeOrganizationCatchAllAddressCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateExchangeOrganizationServicePlanCompletedEventHandler(object sender, UpdateExchangeOrganizationServicePlanCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class UpdateExchangeOrganizationServicePlanCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal UpdateExchangeOrganizationServicePlanCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteExchangeOrganizationCompletedEventHandler(object sender, DeleteExchangeOrganizationCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ResultObject Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/WebsitePanel.EnterpriseServer.Client.csproj b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/WebsitePanel.EnterpriseServer.Client.csproj index 57eb796c..dfd4d020 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/WebsitePanel.EnterpriseServer.Client.csproj +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/WebsitePanel.EnterpriseServer.Client.csproj @@ -93,7 +93,6 @@ - diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/ExchangeHostedEdition/ExchangeHostedEditionController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/ExchangeHostedEdition/ExchangeHostedEditionController.cs deleted file mode 100644 index 0fb1f80f..00000000 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/ExchangeHostedEdition/ExchangeHostedEditionController.cs +++ /dev/null @@ -1,896 +0,0 @@ -// 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.Web; -using WebsitePanel.Providers.ExchangeHostedEdition; -using WebsitePanel.Providers.ResultObjects; -using WebsitePanel.Providers.Common; -using WebsitePanel.Providers; -using System.Collections.Specialized; -using System.Collections; -using System.Net.Mail; - -namespace WebsitePanel.EnterpriseServer -{ - public class ExchangeHostedEditionController - { - // messages - public const string GeneralError = "GeneralError"; - public const string ExchangeServiceNotEnabledError = "ExchangeServiceNotEnabledError"; - public const string ProgramIdIsNotSetError = "ProgramIdIsNotSetError"; - public const string OfferIdIsNotSetError = "OfferIdIsNotSetError"; - public const string CreateOrganizationError = "CreateOrganizationError"; - public const string OrganizationNotFoundError = "OrganizationNotFoundError"; - public const string SendOrganizationSummaryError = "SendOrganizationSummaryError"; - public const string SendOrganizationTemplateNotSetError = "SendOrganizationTemplateNotSetError"; - public const string AddDomainError = "AddDomainError"; - public const string AddDomainQuotaExceededError = "AddDomainQuotaExceededError"; - public const string AddDomainExistsError = "AddDomainExistsError"; - public const string AddDomainAlreadyUsedError = "AddDomainAlreadyUsedError"; - public const string DeleteDomainError = "DeleteDomainError"; - public const string UpdateQuotasError = "UpdateQuotasError"; - public const string UpdateQuotasWrongQuotaError = "UpdateQuotasWrongQuotaError"; - public const string UpdateCatchAllError = "UpdateCatchAllError"; - public const string UpdateServicePlanError = "UpdateServicePlanError"; - public const string DeleteOrganizationError = "DeleteOrganizationError"; - - public const string TempDomainSetting = "temporaryDomain"; - public const string ExchangeControlPanelUrlSetting = "ecpURL"; - - // other constants - public const string TaskManagerSource = "ExchangeHostedEdition"; - - public static IntResult CreateOrganization(int packageId, string organizationId, - string domain, string adminName, string adminEmail, string adminPassword) - { - IntResult result = new IntResult(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "CREATE_ORGANIZATION"); - TaskManager.WriteParameter("packageId", packageId); - TaskManager.WriteParameter("organizationId", organizationId); - TaskManager.WriteParameter("domain", domain); - TaskManager.WriteParameter("adminName", adminName); - TaskManager.WriteParameter("adminEmail", adminEmail); - TaskManager.WriteParameter("adminPassword", adminPassword); - - // get Exchange service ID - int serviceId = PackageController.GetPackageServiceId(packageId, ResourceGroups.ExchangeHostedEdition); - if(serviceId < 1) - return Error(ExchangeServiceNotEnabledError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(packageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(serviceId); - - // load service settings to know ProgramID, OfferID - StringDictionary serviceSettings = ServerController.GetServiceSettings(serviceId); - string programId = serviceSettings["programID"]; - string offerId = serviceSettings["offerID"]; - - // check settings - if(String.IsNullOrEmpty(programId)) - result.ErrorCodes.Add(ProgramIdIsNotSetError); - if (String.IsNullOrEmpty(offerId)) - result.ErrorCodes.Add(OfferIdIsNotSetError); - - if (result.ErrorCodes.Count > 0) - { - result.IsSuccess = false; - return result; - } - - #region Create organization - int itemId = -1; - ExchangeOrganization org = null; - try - { - // create organization - exchange.CreateOrganization(organizationId, programId, offerId, domain, adminName, adminEmail, adminPassword); - - // save item into meta-base - org = new ExchangeOrganization(); - org.Name = organizationId; - org.PackageId = packageId; - org.ServiceId = serviceId; - itemId = PackageController.AddPackageItem(org); - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - return Error(CreateOrganizationError); - } - #endregion - - #region Update organization quotas - // update max org quotas - UpdateOrganizationQuotas(org); - - // override quotas - ResultObject quotasResult = ExchangeHostedEditionController.UpdateOrganizationQuotas(itemId, - org.MaxMailboxCountQuota, - org.MaxContactCountQuota, - org.MaxDistributionListCountQuota); - - if (!quotasResult.IsSuccess) - return Error(quotasResult, CreateOrganizationError); - #endregion - - #region Add temporary domain - // load settings - PackageSettings settings = GetExchangePackageSettings(org); - string tempDomainTemplate = settings[TempDomainSetting]; - if (!String.IsNullOrEmpty(tempDomainTemplate)) - { - // add temp domain - string tempDomain = String.Format("{0}.{1}", domain, tempDomainTemplate); - AddOrganizationDomain(itemId, tempDomain); - } - - #endregion - - result.Value = itemId; - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(GeneralError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static List GetOrganizations(int packageId) - { - List items = PackageController.GetPackageItemsByType( - packageId, typeof(ExchangeOrganization), false); - - return items.ConvertAll(i => { return (ExchangeOrganization)i; }); - } - - public static ExchangeOrganization GetOrganizationDetails(int itemId) - { - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return null; // organization item not found - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // get organization details - ExchangeOrganization org = exchange.GetOrganizationDetails(item.Name); - - //ExchangeOrganization org = new ExchangeOrganization - //{ - // Id = item.Id, - // PackageId = item.PackageId, - // ServiceId = item.ServiceId, - // Name = item.Name, - // AdministratorEmail = "admin@email.com", - // AdministratorName = "Administrator Mailbox", - // CatchAllAddress = "", - // ContactCount = 1, - // ContactCountQuota = 2, - // MaxContactCountQuota = 3, - // DistinguishedName = "DN=....", - // DistributionListCount = 2, - // DistributionListCountQuota = 3, - // MaxDistributionListCountQuota = 3, - // MaxDomainsCountQuota = 4, - // ExchangeControlPanelUrl = "http://ecp.domain.com", - // MailboxCount = 3, - // MailboxCountQuota = 4, - // MaxMailboxCountQuota = 4, - // ProgramId = "HostedExchange", - // OfferId = "2", - // ServicePlan = "HostedExchange_Basic", - // Domains = GetOrganizationDomains(item.Id).ToArray() - //}; - - // update item props - org.Id = item.Id; - org.PackageId = item.PackageId; - org.ServiceId = item.ServiceId; - org.Name = item.Name; - org.CatchAllAddress = item.CatchAllAddress; - - // update max quotas - UpdateOrganizationQuotas(org); - - // process summary information - org.SummaryInformation = GetExchangeOrganizationSummary(org); - - // process domains - PackageSettings settings = GetExchangePackageSettings(org); - if(settings != null) - { - // get settings - string tempDomain = settings[TempDomainSetting]; - string ecpUrl = settings[ExchangeControlPanelUrlSetting]; - - // iterate through domains - foreach (ExchangeOrganizationDomain domain in org.Domains) - { - if (tempDomain != null && domain.Name.EndsWith("." + tempDomain, StringComparison.InvariantCultureIgnoreCase)) - domain.IsTemp = true; - if (domain.IsDefault && ecpUrl != null) - org.ExchangeControlPanelUrl = Utils.ReplaceStringVariable(ecpUrl, "domain_name", domain.Name); - } - } - - // return org - return org; - } - - public static void UpdateOrganizationQuotas(ExchangeOrganization org) - { - // load default package quotas - PackageContext cntx = PackageController.GetPackageContext(org.PackageId); - if (!cntx.Groups.ContainsKey(ResourceGroups.ExchangeHostedEdition)) - return; - - org.MaxMailboxCountQuota = cntx.Quotas[Quotas.EXCHANGEHOSTEDEDITION_MAILBOXES].QuotaAllocatedValue; - org.MaxContactCountQuota = cntx.Quotas[Quotas.EXCHANGEHOSTEDEDITION_CONTACTS].QuotaAllocatedValue; - org.MaxDistributionListCountQuota = cntx.Quotas[Quotas.EXCHANGEHOSTEDEDITION_DISTRIBUTIONLISTS].QuotaAllocatedValue; - org.MaxDomainsCountQuota = cntx.Quotas[Quotas.EXCHANGEHOSTEDEDITION_DOMAINS].QuotaAllocatedValue; - } - - public static List GetOrganizationDomains(int itemId) - { - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return null; // organization item not found - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // get organization domains - List domains = new List(); - domains.AddRange(exchange.GetOrganizationDomains(item.Name)); - return domains; - - //return new List - //{ - // new ExchangeOrganizationDomain { Identity = "org101\\domain1.com", Name = "domain1.com", IsDefault = true, IsTemp = false }, - // new ExchangeOrganizationDomain { Identity = "org101\\org101.tempdomain.com", Name = "org101.tempdomain.com", IsDefault = false, IsTemp = true }, - // new ExchangeOrganizationDomain { Identity = "org101\\myseconddomain.com", Name = "myseconddomain.com", IsDefault = false, IsTemp = false } - //}; - } - - public static string GetExchangeOrganizationSummary(int itemId) - { - // load organization details - ExchangeOrganization org = GetOrganizationDetails(itemId); - if (org == null) - return null; // organization not found - - return GetExchangeOrganizationSummary(org); - } - - private static string GetExchangeOrganizationSummary(ExchangeOrganization org) - { - // evaluate template - MailTemplate template = EvaluateOrganizationSummaryTemplate(org); - if (template == null || template.Body == null) - return null; - - return template.IsHtml ? template.Body : template.Body.Replace("\n", "
"); - } - - private static MailTemplate EvaluateOrganizationSummaryTemplate(ExchangeOrganization org) - { - #region create template context - Hashtable items = new Hashtable(); - - // add organization - items["org"] = org; - - // add package information - PackageInfo space = PackageController.GetPackage(org.PackageId); - items["space"] = space; - - // add user information - UserInfo user = UserController.GetUser(space.UserId); - items["user"] = user; - #endregion - - #region load template - // load template settings - UserSettings settings = UserController.GetUserSettings(user.UserId, UserSettings.EXCHANGE_HOSTED_EDITION_ORGANIZATION_SUMMARY); - if(settings == null) - return null; - - // create template - MailTemplate template = new MailTemplate(); - - // from - template.From = settings["From"]; - - // BCC - template.Bcc = settings["CC"]; - - // subject - template.Subject = settings["Subject"]; - - // body - template.IsHtml = user.HtmlMail; - string bodySetting = template.IsHtml ? "HtmlBody" : "TextBody"; - template.Body = settings[bodySetting]; - - // priority - string priority = settings["Priority"]; - template.Priority = String.IsNullOrEmpty(priority) - ? MailPriority.Normal - : (MailPriority)Enum.Parse(typeof(MailPriority), priority, true); - #endregion - - #region evaluate template - if(template.Subject != null) - template.Subject = PackageController.EvaluateTemplate(template.Subject, items); - - if(template.Body != null) - template.Body = PackageController.EvaluateTemplate(template.Body, items); - #endregion - - return template; - } - - private static PackageSettings GetExchangePackageSettings(ExchangeOrganization org) - { - // load package settings - return PackageController.GetPackageSettings(org.PackageId, PackageSettings.EXCHANGE_HOSTED_EDITION); - } - - public static ResultObject SendExchangeOrganizationSummary(int itemId, string toEmail) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "SEND_SUMMARY"); - TaskManager.WriteParameter("Item ID", itemId); - TaskManager.WriteParameter("To e-mail", toEmail); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // load organization details - ExchangeOrganization org = GetOrganizationDetails(item.Id); - if(org == null) - return Error(OrganizationNotFoundError); - - // get evaluated summary information - MailTemplate msg = EvaluateOrganizationSummaryTemplate(org); - if (msg == null) - return Error(SendOrganizationTemplateNotSetError); - - // send message - int sendResult = MailHelper.SendMessage(msg.From, toEmail, msg.Bcc, msg.Subject, msg.Body, msg.Priority, msg.IsHtml); - if (sendResult < 0) - return Error((-sendResult).ToString()); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(SendOrganizationSummaryError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static ResultObject AddOrganizationDomain(int itemId, string domainName) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "ADD_DOMAIN"); - TaskManager.WriteParameter("itemId", itemId); - TaskManager.WriteParameter("domain", domainName); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // get organization details - ExchangeOrganization org = GetOrganizationDetails(item.Id); - if (org == null) - return Error(OrganizationNotFoundError); - - // check domains quota - if(org.MaxDomainsCountQuota > -1 && org.Domains.Length >= org.MaxDomainsCountQuota) - return Error(AddDomainQuotaExceededError); - - // check if the domain already exists - DomainInfo domain = null; - int checkResult = ServerController.CheckDomain(domainName); - if (checkResult == BusinessErrorCodes.ERROR_DOMAIN_ALREADY_EXISTS) - { - // domain exists - // check if it belongs to the same space - domain = ServerController.GetDomain(domainName); - if (domain == null) - return Error((-checkResult).ToString()); - - if (domain.PackageId != org.PackageId) - return Error((-checkResult).ToString()); - - // check if domain is already used in this organization - foreach (ExchangeOrganizationDomain orgDomain in org.Domains) - { - if(String.Equals(orgDomain.Name, domainName, StringComparison.InvariantCultureIgnoreCase)) - return Error(AddDomainAlreadyUsedError); - } - } - else if (checkResult == BusinessErrorCodes.ERROR_RESTRICTED_DOMAIN) - { - return Error((-checkResult).ToString()); - } - - // create domain if required - if (domain == null) - { - domain = new DomainInfo(); - domain.PackageId = org.PackageId; - domain.DomainName = domainName; - domain.IsInstantAlias = false; - domain.IsSubDomain = false; - - int domainId = ServerController.AddDomain(domain); - if (domainId < 0) - return Error((-domainId).ToString()); - - // add domain - domain.DomainId = domainId; - } - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // add domain - exchange.AddOrganizationDomain(item.Name, domainName); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(AddDomainError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static ResultObject DeleteOrganizationDomain(int itemId, string domainName) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "DELETE_DOMAIN"); - TaskManager.WriteParameter("itemId", itemId); - TaskManager.WriteParameter("domain", domainName); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // delete domain - exchange.DeleteOrganizationDomain(item.Name, domainName); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(DeleteDomainError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static ResultObject UpdateOrganizationQuotas(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "UPDATE_QUOTAS"); - TaskManager.WriteParameter("itemId", itemId); - TaskManager.WriteParameter("mailboxesNumber", mailboxesNumber); - TaskManager.WriteParameter("contactsNumber", contactsNumber); - TaskManager.WriteParameter("distributionListsNumber", distributionListsNumber); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // check quotas - UpdateOrganizationQuotas(item); - - if(item.MaxMailboxCountQuota > -1 && mailboxesNumber > item.MaxMailboxCountQuota) - return Error(UpdateQuotasWrongQuotaError); - if (item.MaxContactCountQuota > -1 && contactsNumber > item.MaxContactCountQuota) - return Error(UpdateQuotasWrongQuotaError); - if (item.MaxDistributionListCountQuota > -1 && distributionListsNumber > item.MaxDistributionListCountQuota) - return Error(UpdateQuotasWrongQuotaError); - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // update quotas - exchange.UpdateOrganizationQuotas(item.Name, mailboxesNumber, contactsNumber, distributionListsNumber); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(UpdateQuotasError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static ResultObject UpdateOrganizationCatchAllAddress(int itemId, string catchAllEmail) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "UPDATE_CATCHALL"); - TaskManager.WriteParameter("itemId", itemId); - TaskManager.WriteParameter("catchAllEmail", catchAllEmail); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // update catch-all - exchange.UpdateOrganizationCatchAllAddress(item.Name, catchAllEmail); - - // save new catch-all in the item - item.CatchAllAddress = catchAllEmail; - PackageController.UpdatePackageItem(item); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(UpdateCatchAllError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static ResultObject UpdateOrganizationServicePlan(int itemId, int newServiceId) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "UPDATE_SERVICE"); - TaskManager.WriteParameter("itemId", itemId); - TaskManager.WriteParameter("newServiceId", newServiceId); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsAdmin | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // load service settings to know ProgramID, OfferID - StringDictionary serviceSettings = ServerController.GetServiceSettings(newServiceId); - string programId = serviceSettings["programID"]; - string offerId = serviceSettings["offerID"]; - - // check settings - if(String.IsNullOrEmpty(programId)) - result.ErrorCodes.Add(ProgramIdIsNotSetError); - if (String.IsNullOrEmpty(offerId)) - result.ErrorCodes.Add(OfferIdIsNotSetError); - - // update service plan - exchange.UpdateOrganizationServicePlan(item.Name, programId, offerId); - - // move item between services - int moveResult = PackageController.MovePackageItem(itemId, newServiceId); - if (moveResult < 0) - return Error((-moveResult).ToString()); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(UpdateServicePlanError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - public static ResultObject DeleteOrganization(int itemId) - { - ResultObject result = new ResultObject(); - result.IsSuccess = true; - - try - { - // initialize task manager - TaskManager.StartTask(TaskManagerSource, "DELETE_ORGANIZATION"); - TaskManager.WriteParameter("itemId", itemId); - - // load organization item - ExchangeOrganization item = PackageController.GetPackageItem(itemId) as ExchangeOrganization; - if (item == null) - return Error(OrganizationNotFoundError); - - #region Check Space and Account - // Check account - int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); - if (accountCheck < 0) - return Warning((-accountCheck).ToString()); - - // Check space - int packageCheck = SecurityContext.CheckPackage(item.PackageId, DemandPackage.IsActive); - if (packageCheck < 0) - return Warning((-packageCheck).ToString()); - #endregion - - // get Exchange service - ExchangeServerHostedEdition exchange = GetExchangeService(item.ServiceId); - - // delete organization - exchange.DeleteOrganization(item.Name); - - // delete meta-item - PackageController.DeletePackageItem(itemId); - - return result; - } - catch (Exception ex) - { - // log error - TaskManager.WriteError(ex); - - // exit with error code - return Error(DeleteOrganizationError, ex.Message); - } - finally - { - TaskManager.CompleteTask(); - } - } - - #region Private helpers - public static ExchangeServerHostedEdition GetExchangeService(int serviceId) - { - ExchangeServerHostedEdition ws = new ExchangeServerHostedEdition(); - ServiceProviderProxy.Init(ws, serviceId); - return ws; - } - #endregion - - #region Result object routines - private static T Warning(params string[] messageParts) - { - return Warning(null, messageParts); - } - - private static T Warning(ResultObject innerResult, params string[] messageParts) - { - return Result(innerResult, false, messageParts); - } - - private static T Error(params string[] messageParts) - { - return Error(null, messageParts); - } - - private static T Error(ResultObject innerResult, params string[] messageParts) - { - return Result(innerResult, true, messageParts); - } - - private static T Result(ResultObject innerResult, bool isError, params string[] messageParts) - { - object obj = Activator.CreateInstance(); - ResultObject result = (ResultObject)obj; - - // set error - result.IsSuccess = !isError; - - // add message - if (messageParts != null) - result.ErrorCodes.Add(String.Join(":", messageParts)); - - // copy errors from inner result - if (innerResult != null) - result.ErrorCodes.AddRange(innerResult.ErrorCodes); - - return (T)obj; - } - #endregion - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs index c4d60460..baf64911 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/Packages/PackageController.cs @@ -1521,19 +1521,6 @@ namespace WebsitePanel.EnterpriseServer } } - // Exchange Hosted Edition - else if (String.Compare(PackageSettings.EXCHANGE_HOSTED_EDITION, settingsName, true) == 0) - { - // load Exchange service settings - int exchServiceId = GetPackageServiceId(packageId, ResourceGroups.ExchangeHostedEdition); - if (exchServiceId > 0) - { - StringDictionary exchSettings = ServerController.GetServiceSettings(exchServiceId); - settings["temporaryDomain"] = exchSettings["temporaryDomain"]; - settings["ecpURL"] = exchSettings["ecpURL"]; - } - } - // VPS else if (String.Compare(PackageSettings.VIRTUAL_PRIVATE_SERVERS, settingsName, true) == 0) { diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/WebsitePanel.EnterpriseServer.csproj b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/WebsitePanel.EnterpriseServer.csproj index cae3c3b8..a2556f80 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/WebsitePanel.EnterpriseServer.csproj +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/WebsitePanel.EnterpriseServer.csproj @@ -89,7 +89,6 @@ - @@ -164,7 +163,6 @@ - @@ -292,10 +290,6 @@ esDatabaseServers.asmx Component - - esExchangeHostedEdition.asmx - Component - esExchangeServer.asmx Component diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeHostedEdition.asmx b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeHostedEdition.asmx deleted file mode 100644 index e6c85aa8..00000000 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeHostedEdition.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="esExchangeHostedEdition.asmx.cs" Class="WebsitePanel.EnterpriseServer.esExchangeHostedEdition" %> diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeHostedEdition.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeHostedEdition.asmx.cs deleted file mode 100644 index 300f93b9..00000000 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeHostedEdition.asmx.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.Services; -using Microsoft.Web.Services3; -using System.ComponentModel; -using WebsitePanel.Providers.ExchangeHostedEdition; -using WebsitePanel.Providers.Common; -using WebsitePanel.Providers.ResultObjects; - -namespace WebsitePanel.EnterpriseServer -{ - /// - /// Summary description for esExchangeHostedEdition - /// - [WebService(Namespace = "http://smbsaas/websitepanel/enterpriseserver")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [Policy("ServerPolicy")] - [ToolboxItem(false)] - public class esExchangeHostedEdition : WebService - { - [WebMethod] - public List GetOrganizations(int packageId) - { - return ExchangeHostedEditionController.GetOrganizations(packageId); - } - - [WebMethod] - public IntResult CreateExchangeOrganization(int packageId, string organizationId, - string domain, string adminName, string adminEmail, string adminPassword) - { - return ExchangeHostedEditionController.CreateOrganization(packageId, organizationId, domain, adminName, adminEmail, adminPassword); - } - - [WebMethod] - public ExchangeOrganization GetExchangeOrganizationDetails(int itemId) - { - return ExchangeHostedEditionController.GetOrganizationDetails(itemId); - } - - [WebMethod] - public List GetExchangeOrganizationDomains(int itemId) - { - return ExchangeHostedEditionController.GetOrganizationDomains(itemId); - } - - [WebMethod] - public string GetExchangeOrganizationSummary(int itemId) - { - return ExchangeHostedEditionController.GetExchangeOrganizationSummary(itemId); - } - - [WebMethod] - public ResultObject SendExchangeOrganizationSummary(int itemId, string toEmail) - { - return ExchangeHostedEditionController.SendExchangeOrganizationSummary(itemId, toEmail); - } - - [WebMethod] - public ResultObject AddExchangeOrganizationDomain(int itemId, string domain) - { - return ExchangeHostedEditionController.AddOrganizationDomain(itemId, domain); - } - - [WebMethod] - public ResultObject DeleteExchangeOrganizationDomain(int itemId, string domain) - { - return ExchangeHostedEditionController.DeleteOrganizationDomain(itemId, domain); - } - - [WebMethod] - public ResultObject UpdateExchangeOrganizationQuotas(int itemId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) - { - return ExchangeHostedEditionController.UpdateOrganizationQuotas(itemId, mailboxesNumber, contactsNumber, distributionListsNumber); - } - - [WebMethod] - public ResultObject UpdateExchangeOrganizationCatchAllAddress(int itemId, string catchAllEmail) - { - return ExchangeHostedEditionController.UpdateOrganizationCatchAllAddress(itemId, catchAllEmail); - } - - [WebMethod] - public ResultObject UpdateExchangeOrganizationServicePlan(int itemId, int newServiceId) - { - return ExchangeHostedEditionController.UpdateOrganizationServicePlan(itemId, newServiceId); - } - - [WebMethod] - public ResultObject DeleteExchangeOrganization(int itemId) - { - return ExchangeHostedEditionController.DeleteOrganization(itemId); - } - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/ExchangeOrganization.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/ExchangeOrganization.cs deleted file mode 100644 index 71a6d441..00000000 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/ExchangeOrganization.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace WebsitePanel.Providers.ExchangeHostedEdition -{ - public class ExchangeOrganization : ServiceProviderItem - { - // basic props - public string ExchangeControlPanelUrl { get; set; } - public string DistinguishedName { get; set; } - public string ServicePlan { get; set; } - public string ProgramId { get; set; } - public string OfferId { get; set; } - public string AdministratorName { get; set; } - public string AdministratorEmail { get; set; } - - // domains - public ExchangeOrganizationDomain[] Domains { get; set; } - - // this is real usage - public int MailboxCount { get; set; } - public int ContactCount { get; set; } - public int DistributionListCount { get; set; } - - // these quotas are set in Exchange for the organization - public int MailboxCountQuota { get; set; } - public int ContactCountQuota { get; set; } - public int DistributionListCountQuota { get; set; } - - // these quotas are set in the hosting plan + add-ons - public int MaxDomainsCountQuota { get; set; } - public int MaxMailboxCountQuota { get; set; } - public int MaxContactCountQuota { get; set; } - public int MaxDistributionListCountQuota { get; set; } - - // summary information - public string SummaryInformation { get; set; } - - [Persistent] - public string CatchAllAddress { get; set; } - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/ExchangeOrganizationDomain.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/ExchangeOrganizationDomain.cs deleted file mode 100644 index 26cd4090..00000000 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/ExchangeOrganizationDomain.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace WebsitePanel.Providers.ExchangeHostedEdition -{ - public class ExchangeOrganizationDomain - { - public string Identity { get; set; } - public string Name { get; set; } - public bool IsDefault { get; set; } - public bool IsTemp { get; set; } - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/IExchangeHostedEdition.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/IExchangeHostedEdition.cs deleted file mode 100644 index cc119413..00000000 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/ExchangeHostedEdition/IExchangeHostedEdition.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace WebsitePanel.Providers.ExchangeHostedEdition -{ - public interface IExchangeHostedEdition - { - void CreateOrganization(string organizationId, string programId, string offerId, - string domain, string adminName, string adminEmail, string adminPassword); - ExchangeOrganization GetOrganizationDetails(string organizationId); - - List GetOrganizationDomains(string organizationId); - void AddOrganizationDomain(string organizationId, string domain); - void DeleteOrganizationDomain(string organizationId, string domain); - - void UpdateOrganizationQuotas(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber); - void UpdateOrganizationCatchAllAddress(string organizationId, string catchAllEmail); - void UpdateOrganizationServicePlan(string organizationId, string programId, string offerId); - void DeleteOrganization(string organizationId); - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj b/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj index df882803..1d281456 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj @@ -74,9 +74,6 @@ - - - diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerHostedEditionProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerHostedEditionProxy.cs deleted file mode 100644 index 54257b39..00000000 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerHostedEditionProxy.cs +++ /dev/null @@ -1,574 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4952 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -// -// This source code was auto-generated by wsdl, Version=2.0.50727.42. -// -namespace WebsitePanel.Providers.ExchangeHostedEdition { - 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.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name="ExchangeServerHostedEditionSoap", Namespace="http://smbsaas/websitepanel/server/")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class ExchangeServerHostedEdition : Microsoft.Web.Services3.WebServicesClientProtocol { - - public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; - - private System.Threading.SendOrPostCallback CreateOrganizationOperationCompleted; - - private System.Threading.SendOrPostCallback GetOrganizationDomainsOperationCompleted; - - private System.Threading.SendOrPostCallback AddOrganizationDomainOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteOrganizationDomainOperationCompleted; - - private System.Threading.SendOrPostCallback GetOrganizationDetailsOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateOrganizationQuotasOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateOrganizationCatchAllAddressOperationCompleted; - - private System.Threading.SendOrPostCallback UpdateOrganizationServicePlanOperationCompleted; - - private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted; - - /// - public ExchangeServerHostedEdition() { - this.Url = "http://localhost:9003/ExchangeServerHostedEdition.asmx"; - } - - /// - public event CreateOrganizationCompletedEventHandler CreateOrganizationCompleted; - - /// - public event GetOrganizationDomainsCompletedEventHandler GetOrganizationDomainsCompleted; - - /// - public event AddOrganizationDomainCompletedEventHandler AddOrganizationDomainCompleted; - - /// - public event DeleteOrganizationDomainCompletedEventHandler DeleteOrganizationDomainCompleted; - - /// - public event GetOrganizationDetailsCompletedEventHandler GetOrganizationDetailsCompleted; - - /// - public event UpdateOrganizationQuotasCompletedEventHandler UpdateOrganizationQuotasCompleted; - - /// - public event UpdateOrganizationCatchAllAddressCompletedEventHandler UpdateOrganizationCatchAllAddressCompleted; - - /// - public event UpdateOrganizationServicePlanCompletedEventHandler UpdateOrganizationServicePlanCompleted; - - /// - public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted; - - /// - [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)] - public void CreateOrganization(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword) { - this.Invoke("CreateOrganization", new object[] { - organizationId, - programId, - offerId, - domain, - adminName, - adminEmail, - adminPassword}); - } - - /// - public System.IAsyncResult BeginCreateOrganization(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("CreateOrganization", new object[] { - organizationId, - programId, - offerId, - domain, - adminName, - adminEmail, - adminPassword}, callback, asyncState); - } - - /// - public void EndCreateOrganization(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void CreateOrganizationAsync(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword) { - this.CreateOrganizationAsync(organizationId, programId, offerId, domain, adminName, adminEmail, adminPassword, null); - } - - /// - public void CreateOrganizationAsync(string organizationId, string programId, string offerId, string domain, string adminName, string adminEmail, string adminPassword, object userState) { - if ((this.CreateOrganizationOperationCompleted == null)) { - this.CreateOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOperationCompleted); - } - this.InvokeAsync("CreateOrganization", new object[] { - organizationId, - programId, - offerId, - domain, - adminName, - adminEmail, - adminPassword}, this.CreateOrganizationOperationCompleted, userState); - } - - private void OnCreateOrganizationOperationCompleted(object arg) { - if ((this.CreateOrganizationCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.CreateOrganizationCompleted(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/GetOrganizationDomains", 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 ExchangeOrganizationDomain[] GetOrganizationDomains(string organizationId) { - object[] results = this.Invoke("GetOrganizationDomains", new object[] { - organizationId}); - return ((ExchangeOrganizationDomain[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetOrganizationDomains(string organizationId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetOrganizationDomains", new object[] { - organizationId}, callback, asyncState); - } - - /// - public ExchangeOrganizationDomain[] EndGetOrganizationDomains(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeOrganizationDomain[])(results[0])); - } - - /// - public void GetOrganizationDomainsAsync(string organizationId) { - this.GetOrganizationDomainsAsync(organizationId, null); - } - - /// - public void GetOrganizationDomainsAsync(string organizationId, object userState) { - if ((this.GetOrganizationDomainsOperationCompleted == null)) { - this.GetOrganizationDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationDomainsOperationCompleted); - } - this.InvokeAsync("GetOrganizationDomains", new object[] { - organizationId}, this.GetOrganizationDomainsOperationCompleted, userState); - } - - private void OnGetOrganizationDomainsOperationCompleted(object arg) { - if ((this.GetOrganizationDomainsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetOrganizationDomainsCompleted(this, new GetOrganizationDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddOrganizationDomain", 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 AddOrganizationDomain(string organizationId, string domain) { - this.Invoke("AddOrganizationDomain", new object[] { - organizationId, - domain}); - } - - /// - public System.IAsyncResult BeginAddOrganizationDomain(string organizationId, string domain, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("AddOrganizationDomain", new object[] { - organizationId, - domain}, callback, asyncState); - } - - /// - public void EndAddOrganizationDomain(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void AddOrganizationDomainAsync(string organizationId, string domain) { - this.AddOrganizationDomainAsync(organizationId, domain, null); - } - - /// - public void AddOrganizationDomainAsync(string organizationId, string domain, object userState) { - if ((this.AddOrganizationDomainOperationCompleted == null)) { - this.AddOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddOrganizationDomainOperationCompleted); - } - this.InvokeAsync("AddOrganizationDomain", new object[] { - organizationId, - domain}, this.AddOrganizationDomainOperationCompleted, userState); - } - - private void OnAddOrganizationDomainOperationCompleted(object arg) { - if ((this.AddOrganizationDomainCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.AddOrganizationDomainCompleted(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/DeleteOrganizationDomain", 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 DeleteOrganizationDomain(string organizationId, string domain) { - this.Invoke("DeleteOrganizationDomain", new object[] { - organizationId, - domain}); - } - - /// - public System.IAsyncResult BeginDeleteOrganizationDomain(string organizationId, string domain, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteOrganizationDomain", new object[] { - organizationId, - domain}, callback, asyncState); - } - - /// - public void EndDeleteOrganizationDomain(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void DeleteOrganizationDomainAsync(string organizationId, string domain) { - this.DeleteOrganizationDomainAsync(organizationId, domain, null); - } - - /// - public void DeleteOrganizationDomainAsync(string organizationId, string domain, object userState) { - if ((this.DeleteOrganizationDomainOperationCompleted == null)) { - this.DeleteOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationDomainOperationCompleted); - } - this.InvokeAsync("DeleteOrganizationDomain", new object[] { - organizationId, - domain}, this.DeleteOrganizationDomainOperationCompleted, userState); - } - - private void OnDeleteOrganizationDomainOperationCompleted(object arg) { - if ((this.DeleteOrganizationDomainCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteOrganizationDomainCompleted(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/GetOrganizationDetails", 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 ExchangeOrganization GetOrganizationDetails(string organizationId) { - object[] results = this.Invoke("GetOrganizationDetails", new object[] { - organizationId}); - return ((ExchangeOrganization)(results[0])); - } - - /// - public System.IAsyncResult BeginGetOrganizationDetails(string organizationId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetOrganizationDetails", new object[] { - organizationId}, callback, asyncState); - } - - /// - public ExchangeOrganization EndGetOrganizationDetails(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeOrganization)(results[0])); - } - - /// - public void GetOrganizationDetailsAsync(string organizationId) { - this.GetOrganizationDetailsAsync(organizationId, null); - } - - /// - public void GetOrganizationDetailsAsync(string organizationId, object userState) { - if ((this.GetOrganizationDetailsOperationCompleted == null)) { - this.GetOrganizationDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationDetailsOperationCompleted); - } - this.InvokeAsync("GetOrganizationDetails", new object[] { - organizationId}, this.GetOrganizationDetailsOperationCompleted, userState); - } - - private void OnGetOrganizationDetailsOperationCompleted(object arg) { - if ((this.GetOrganizationDetailsCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetOrganizationDetailsCompleted(this, new GetOrganizationDetailsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationQuotas", 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 UpdateOrganizationQuotas(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) { - this.Invoke("UpdateOrganizationQuotas", new object[] { - organizationId, - mailboxesNumber, - contactsNumber, - distributionListsNumber}); - } - - /// - public System.IAsyncResult BeginUpdateOrganizationQuotas(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateOrganizationQuotas", new object[] { - organizationId, - mailboxesNumber, - contactsNumber, - distributionListsNumber}, callback, asyncState); - } - - /// - public void EndUpdateOrganizationQuotas(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void UpdateOrganizationQuotasAsync(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) { - this.UpdateOrganizationQuotasAsync(organizationId, mailboxesNumber, contactsNumber, distributionListsNumber, null); - } - - /// - public void UpdateOrganizationQuotasAsync(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber, object userState) { - if ((this.UpdateOrganizationQuotasOperationCompleted == null)) { - this.UpdateOrganizationQuotasOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationQuotasOperationCompleted); - } - this.InvokeAsync("UpdateOrganizationQuotas", new object[] { - organizationId, - mailboxesNumber, - contactsNumber, - distributionListsNumber}, this.UpdateOrganizationQuotasOperationCompleted, userState); - } - - private void OnUpdateOrganizationQuotasOperationCompleted(object arg) { - if ((this.UpdateOrganizationQuotasCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateOrganizationQuotasCompleted(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/UpdateOrganizationCatchAllAddress", 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 UpdateOrganizationCatchAllAddress(string organizationId, string catchAllEmail) { - this.Invoke("UpdateOrganizationCatchAllAddress", new object[] { - organizationId, - catchAllEmail}); - } - - /// - public System.IAsyncResult BeginUpdateOrganizationCatchAllAddress(string organizationId, string catchAllEmail, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateOrganizationCatchAllAddress", new object[] { - organizationId, - catchAllEmail}, callback, asyncState); - } - - /// - public void EndUpdateOrganizationCatchAllAddress(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void UpdateOrganizationCatchAllAddressAsync(string organizationId, string catchAllEmail) { - this.UpdateOrganizationCatchAllAddressAsync(organizationId, catchAllEmail, null); - } - - /// - public void UpdateOrganizationCatchAllAddressAsync(string organizationId, string catchAllEmail, object userState) { - if ((this.UpdateOrganizationCatchAllAddressOperationCompleted == null)) { - this.UpdateOrganizationCatchAllAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationCatchAllAddressOperationCompleted); - } - this.InvokeAsync("UpdateOrganizationCatchAllAddress", new object[] { - organizationId, - catchAllEmail}, this.UpdateOrganizationCatchAllAddressOperationCompleted, userState); - } - - private void OnUpdateOrganizationCatchAllAddressOperationCompleted(object arg) { - if ((this.UpdateOrganizationCatchAllAddressCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateOrganizationCatchAllAddressCompleted(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/UpdateOrganizationServicePlan", 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 UpdateOrganizationServicePlan(string organizationId, string programId, string offerId) { - this.Invoke("UpdateOrganizationServicePlan", new object[] { - organizationId, - programId, - offerId}); - } - - /// - public System.IAsyncResult BeginUpdateOrganizationServicePlan(string organizationId, string programId, string offerId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("UpdateOrganizationServicePlan", new object[] { - organizationId, - programId, - offerId}, callback, asyncState); - } - - /// - public void EndUpdateOrganizationServicePlan(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void UpdateOrganizationServicePlanAsync(string organizationId, string programId, string offerId) { - this.UpdateOrganizationServicePlanAsync(organizationId, programId, offerId, null); - } - - /// - public void UpdateOrganizationServicePlanAsync(string organizationId, string programId, string offerId, object userState) { - if ((this.UpdateOrganizationServicePlanOperationCompleted == null)) { - this.UpdateOrganizationServicePlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationServicePlanOperationCompleted); - } - this.InvokeAsync("UpdateOrganizationServicePlan", new object[] { - organizationId, - programId, - offerId}, this.UpdateOrganizationServicePlanOperationCompleted, userState); - } - - private void OnUpdateOrganizationServicePlanOperationCompleted(object arg) { - if ((this.UpdateOrganizationServicePlanCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.UpdateOrganizationServicePlanCompleted(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/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)] - public void DeleteOrganization(string organizationId) { - this.Invoke("DeleteOrganization", new object[] { - organizationId}); - } - - /// - public System.IAsyncResult BeginDeleteOrganization(string organizationId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteOrganization", new object[] { - organizationId}, callback, asyncState); - } - - /// - public void EndDeleteOrganization(System.IAsyncResult asyncResult) { - this.EndInvoke(asyncResult); - } - - /// - public void DeleteOrganizationAsync(string organizationId) { - this.DeleteOrganizationAsync(organizationId, null); - } - - /// - public void DeleteOrganizationAsync(string organizationId, object userState) { - if ((this.DeleteOrganizationOperationCompleted == null)) { - this.DeleteOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationOperationCompleted); - } - this.InvokeAsync("DeleteOrganization", new object[] { - organizationId}, this.DeleteOrganizationOperationCompleted, userState); - } - - private void OnDeleteOrganizationOperationCompleted(object arg) { - if ((this.DeleteOrganizationCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteOrganizationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - public new void CancelAsync(object userState) { - base.CancelAsync(userState); - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateOrganizationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetOrganizationDomainsCompletedEventHandler(object sender, GetOrganizationDomainsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetOrganizationDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ExchangeOrganizationDomain[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ExchangeOrganizationDomain[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void AddOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetOrganizationDetailsCompletedEventHandler(object sender, GetOrganizationDetailsCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOrganizationDetailsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetOrganizationDetailsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ExchangeOrganization Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ExchangeOrganization)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateOrganizationQuotasCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateOrganizationCatchAllAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void UpdateOrganizationServicePlanCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void DeleteOrganizationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); -} diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/WebsitePanel.Server.Client.csproj b/WebsitePanel/Sources/WebsitePanel.Server.Client/WebsitePanel.Server.Client.csproj index 37f746e8..0ac386bf 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/WebsitePanel.Server.Client.csproj +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/WebsitePanel.Server.Client.csproj @@ -78,7 +78,6 @@ - diff --git a/WebsitePanel/Sources/WebsitePanel.Server.sln b/WebsitePanel/Sources/WebsitePanel.Server.sln index 715e7c13..c4b625b2 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.sln +++ b/WebsitePanel/Sources/WebsitePanel.Server.sln @@ -93,8 +93,6 @@ Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "WebsitePanel.Providers.Mail EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "WebsitePanel.Providers.Mail.hMailServer5", "WebsitePanel.Providers.Mail.hMail5\WebsitePanel.Providers.Mail.hMailServer5.vbproj", "{8F644D50-D602-4AD3-8EB0-CA3C3676B18D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.ExchangeHostedEdition", "WebsitePanel.Providers.ExchangeHostedEdition\WebsitePanel.Providers.ExchangeHostedEdition.csproj", "{5D30E0E3-7AAD-4BE1-8043-3F3E9994D321}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.Mail.SmarterMail7", "WebsitePanel.Providers.Mail.SmarterMail7\WebsitePanel.Providers.Mail.SmarterMail7.csproj", "{FB773A2C-1CD3-4D76-9C4F-B6B7EB9E479C}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.VirtualizationForPC.HyperVForPC", "WebsitePanel.Providers.Virtualization.HyperVForPC\WebsitePanel.Providers.VirtualizationForPC.HyperVForPC.csproj", "{64BEEB10-7F9F-4860-B2FF-84CDA02766B3}" @@ -267,10 +265,6 @@ Global {8F644D50-D602-4AD3-8EB0-CA3C3676B18D}.Debug|Any CPU.Build.0 = Debug|Any CPU {8F644D50-D602-4AD3-8EB0-CA3C3676B18D}.Release|Any CPU.ActiveCfg = Release|Any CPU {8F644D50-D602-4AD3-8EB0-CA3C3676B18D}.Release|Any CPU.Build.0 = Release|Any CPU - {5D30E0E3-7AAD-4BE1-8043-3F3E9994D321}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5D30E0E3-7AAD-4BE1-8043-3F3E9994D321}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5D30E0E3-7AAD-4BE1-8043-3F3E9994D321}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5D30E0E3-7AAD-4BE1-8043-3F3E9994D321}.Release|Any CPU.Build.0 = Release|Any CPU {FB773A2C-1CD3-4D76-9C4F-B6B7EB9E479C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FB773A2C-1CD3-4D76-9C4F-B6B7EB9E479C}.Debug|Any CPU.Build.0 = Debug|Any CPU {FB773A2C-1CD3-4D76-9C4F-B6B7EB9E479C}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServerHostedEdition.asmx b/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServerHostedEdition.asmx deleted file mode 100644 index fbecb5cd..00000000 --- a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServerHostedEdition.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="ExchangeServerHostedEdition.asmx.cs" Class="WebsitePanel.Server.ExchangeServerHostedEdition" %> diff --git a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServerHostedEdition.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServerHostedEdition.asmx.cs deleted file mode 100644 index 8d03a17a..00000000 --- a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServerHostedEdition.asmx.cs +++ /dev/null @@ -1,201 +0,0 @@ -// 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.Web; -using System.Web.Services; -using WebsitePanel.Providers; -using WebsitePanel.Providers.ExchangeHostedEdition; -using Microsoft.Web.Services3; -using System.Web.Services.Protocols; -using WebsitePanel.Server.Utils; - -namespace WebsitePanel.Server -{ - /// - /// Summary description for ExchangeHostedEdition - /// - [WebService(Namespace = "http://smbsaas/websitepanel/server/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [Policy("ServerPolicy")] - public class ExchangeServerHostedEdition : HostingServiceProviderWebService, IExchangeHostedEdition - { - private IExchangeHostedEdition ExchangeServer - { - get { return (IExchangeHostedEdition)Provider; } - } - - [WebMethod, SoapHeader("settings")] - public void CreateOrganization(string organizationId, string programId, string offerId, string domain, - string adminName, string adminEmail, string adminPassword) - { - try - { - Log.WriteStart("'{0}' CreateOrganization", ProviderSettings.ProviderName); - ExchangeServer.CreateOrganization(organizationId, programId, offerId, domain, adminName, adminEmail, adminPassword); - Log.WriteEnd("'{0}' CreateOrganization", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' CreateOrganization", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public List GetOrganizationDomains(string organizationId) - { - try - { - Log.WriteStart("'{0}' GetOrganizationDomains", ProviderSettings.ProviderName); - List result = ExchangeServer.GetOrganizationDomains(organizationId); - Log.WriteEnd("'{0}' GetOrganizationDomains", ProviderSettings.ProviderName); - return result; - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' GetOrganizationDomains", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public void AddOrganizationDomain(string organizationId, string domain) - { - try - { - Log.WriteStart("'{0}' AddOrganizationDomain", ProviderSettings.ProviderName); - ExchangeServer.AddOrganizationDomain(organizationId, domain); - Log.WriteEnd("'{0}' AddOrganizationDomain", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' AddOrganizationDomain", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public void DeleteOrganizationDomain(string organizationId, string domain) - { - try - { - Log.WriteStart("'{0}' DeleteOrganizationDomain", ProviderSettings.ProviderName); - ExchangeServer.DeleteOrganizationDomain(organizationId, domain); - Log.WriteEnd("'{0}' DeleteOrganizationDomain", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' DeleteOrganizationDomain", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public ExchangeOrganization GetOrganizationDetails(string organizationId) - { - try - { - Log.WriteStart("'{0}' GetOrganizationDetails", ProviderSettings.ProviderName); - ExchangeOrganization result = ExchangeServer.GetOrganizationDetails(organizationId); - Log.WriteEnd("'{0}' GetOrganizationDetails", ProviderSettings.ProviderName); - return result; - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' GetOrganizationDetails", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public void UpdateOrganizationQuotas(string organizationId, int mailboxesNumber, int contactsNumber, int distributionListsNumber) - { - try - { - Log.WriteStart("'{0}' UpdateOrganizationQuotas", ProviderSettings.ProviderName); - ExchangeServer.UpdateOrganizationQuotas(organizationId, mailboxesNumber, contactsNumber, distributionListsNumber); - Log.WriteEnd("'{0}' UpdateOrganizationQuotas", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' UpdateOrganizationQuotas", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public void UpdateOrganizationCatchAllAddress(string organizationId, string catchAllEmail) - { - try - { - Log.WriteStart("'{0}' UpdateOrganizationCatchAllAddress", ProviderSettings.ProviderName); - ExchangeServer.UpdateOrganizationCatchAllAddress(organizationId, catchAllEmail); - Log.WriteEnd("'{0}' UpdateOrganizationCatchAllAddress", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' UpdateOrganizationCatchAllAddress", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public void UpdateOrganizationServicePlan(string organizationId, string programId, string offerId) - { - try - { - Log.WriteStart("'{0}' UpdateOeganizationServicePlan", ProviderSettings.ProviderName); - ExchangeServer.UpdateOrganizationServicePlan(organizationId, programId, offerId); - Log.WriteEnd("'{0}' UpdateOeganizationServicePlan", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' UpdateOeganizationServicePlan", ProviderSettings.ProviderName), ex); - throw; - } - } - - [WebMethod, SoapHeader("settings")] - public void DeleteOrganization(string organizationId) - { - try - { - Log.WriteStart("'{0}' DeleteOrganization", ProviderSettings.ProviderName); - ExchangeServer.DeleteOrganization(organizationId); - Log.WriteEnd("'{0}' DeleteOrganization", ProviderSettings.ProviderName); - } - catch (Exception ex) - { - Log.WriteError(String.Format("'{0}' DeleteOrganization", ProviderSettings.ProviderName), ex); - throw; - } - } - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.Server/WebsitePanel.Server.csproj b/WebsitePanel/Sources/WebsitePanel.Server/WebsitePanel.Server.csproj index 71d04878..affbf40f 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/WebsitePanel.Server.csproj +++ b/WebsitePanel/Sources/WebsitePanel.Server/WebsitePanel.Server.csproj @@ -68,7 +68,6 @@ - @@ -109,10 +108,6 @@ - - ExchangeServerHostedEdition.asmx - Component - OCSEdgeServer.asmx Component diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config index ffd5eab9..65182013 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config @@ -68,7 +68,6 @@ - @@ -121,7 +120,6 @@ - diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config index 616e6848..c979a2a4 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Modules.config @@ -580,17 +580,4 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Pages.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Pages.config index 70ffb1a7..d9a76036 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Pages.config +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/WebsitePanel_Pages.config @@ -557,16 +557,4 @@ - - diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Modules.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Modules.ascx.resx index 184b2e80..3541969a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Modules.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Modules.ascx.resx @@ -735,9 +735,6 @@ Allocate Web Site IP Addresses - - Exchange Hosting Mode - Add Organization Domain diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Pages.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Pages.ascx.resx index 887c6a8f..7a3e2bc4 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Pages.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_Pages.ascx.resx @@ -453,12 +453,6 @@ {user} - {space} - Web - - Exchange Hosting Mode - - - {user} - {space} - Exchange Hosting Mode - Virtual Private Cloud 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 a7b4c5e9..2bf42484 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx @@ -4822,138 +4822,12 @@ SSL - - Contacts - - - Distribution Lists - - - Domains - - - Mailboxes - - - Exchange 2010 Hosting Mode - - - Exchange Hosting Mode - - - Error creating Exchange organization - - - Exchange organization cannot be deleted - - - Error sending Exchange organization summary information - - - Please contact your hosting provider. - - - Please contact your hosting provider. - Exchange Organization - - Exchange organization summary information has been sent - - - You have to tick a checkbox to confirm organization deletion - - - Organization domain cannot be added - - - Organization quotas cannot be changed - - - Organization Service Plan cannot be changed - - - Error reading Exchange organization domains - - - Organization details cannot be loaded. - - - Please contact your hosting provider. - - - Please contact your hosting provider. - - - Please contact your hosting provider. - - - Please contact your hosting provider. - - - Organization domain cannot be deleted - - - Specified domain name already added into organization. - - - Error adding organization domain. - - - Specified domain name already exists. - - - Maximum domains quota has been reached. - - - Error creating organization. See system logs for detailed messages. - - - Error deleting organization domain. - - - Error deleting organization. See system logs for detailed messages. - - - Exchange Hosting Mode service is not enabled for the hosting space. - - - General module error. - - - Offer ID is not specified on Exchange service settings. - - - Organization not found. - - - Program ID is not specified on Exchange service settings. - - - Error sending organization summary information. - - - Organization summary information template is not set. - - - Error updating catch-all account. - - - Error updating organization quotas. - - - One of the specified quotas exceed maximum value allowed. - - - Error changing organization service plan. See system logs for detailed messages. - Disable Mailbox Size Edit - - Exchange Hosting Mode - Unlimited diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceSettings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceSettings.ascx.resx index 1c04fc96..9bb30cb6 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceSettings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/SpaceSettings.ascx.resx @@ -141,9 +141,6 @@ Virtual Private Servers - - Exchange Hosting Mode - Virtual Private Servers for Private Cloud diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountMailTemplateSettings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountMailTemplateSettings.ascx.resx index dab2e293..61f11639 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountMailTemplateSettings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountMailTemplateSettings.ascx.resx @@ -141,7 +141,4 @@ VPS Summary Letter - - Exchange Hosting Mode Organization Summary - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountPolicySettings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountPolicySettings.ascx.resx index 7db6e48c..88e2ac28 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountPolicySettings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserAccountPolicySettings.ascx.resx @@ -150,7 +150,4 @@ WEB Policy - - Exchange Hosting Mode Policy - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/ES.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/ES.cs index c320efb9..845c52e4 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/ES.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/ES.cs @@ -206,11 +206,6 @@ namespace WebsitePanel.Portal get { return GetCachedProxy(); } } - public esExchangeHostedEdition ExchangeHostedEdition - { - get { return GetCachedProxy(); } - } - protected ES() { } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx deleted file mode 100644 index 70182d45..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx +++ /dev/null @@ -1,30 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddOrganizationDomain.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeHostedEdition.AddOrganizationDomain" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> - - - -
- - - - - - - - -
Domain: - - - * -
-
-
- - -
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx.cs deleted file mode 100644 index 05e0f306..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.Common; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class AddOrganizationDomain : WebsitePanelModuleBase - { - protected void Page_Load(object sender, EventArgs e) - { - } - - protected void update_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - try - { - // call service - ResultObject result = ES.Services.ExchangeHostedEdition.AddExchangeOrganizationDomain(PanelRequest.ItemID, domain.Text.Trim()); - - // check results - if (result.IsSuccess) - { - // navigate to details - RedirectBack(); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_ADD_DOMAIN", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_ADD_DOMAIN", ex); - } - } - - protected void cancel_Click(object sender, EventArgs e) - { - RedirectBack(); - } - - private void RedirectBack() - { - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString(), "ItemID=" + PanelRequest.ItemID.ToString())); - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx.designer.cs deleted file mode 100644 index 62085298..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/AddOrganizationDomain.ascx.designer.cs +++ /dev/null @@ -1,96 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class AddOrganizationDomain { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// validationErrors control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary validationErrors; - - /// - /// locDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locDomain; - - /// - /// domain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox domain; - - /// - /// requireDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireDomain; - - /// - /// requireCorrectDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RegularExpressionValidator requireCorrectDomain; - - /// - /// update control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button update; - - /// - /// cancel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button cancel; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/AddOrganizationDomain.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/AddOrganizationDomain.ascx.resx deleted file mode 100644 index edca5239..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/AddOrganizationDomain.ascx.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cancel - - - Domain: - - - Enter correct domain name in the form "mydomain.com" or "sub.mydomain.com" - - - ! - - - Select domain - - - * - - - ShowProgressDialog('Adding organization domain...'); - - - Update - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/CreateOrganization.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/CreateOrganization.ascx.resx deleted file mode 100644 index a9b8538e..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/CreateOrganization.ascx.resx +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ShowProgressDialog('Creating Exchange organization...'); - - - Create Organization - - - Administrator e-mail: - - - Administrator name: - - - Administrator password: - - - Organization name: - - - Manage domains - - - Enter administrator e-mail address - - - * - - - Enter administrator display name - - - * - - - Enter correct domain name in the form "mydomain.com" or "sub.mydomain.com" - - - ! - - - Specify organization domain - - - * - - - Enter organization name - - - * - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/DeleteOrganization.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/DeleteOrganization.ascx.resx deleted file mode 100644 index 6934db62..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/DeleteOrganization.ascx.resx +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cancel - - - I confirm deletion of this organization and all its contents - - - ShowProgressDialog('Deleting Exchange organization...'); - - - Delete - - - <p><b>All organization user accounts, contacts, distribution lists and public folders will be deleted.</b></p> - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/OrganizationDetails.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/OrganizationDetails.ascx.resx deleted file mode 100644 index 8a007bc5..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/OrganizationDetails.ascx.resx +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Add Domain - - - (not set) - - - Change Service Plan - - - if(!confirm('Are you sure you want to remove selected domain?')) return false; else ShowProgressDialog('Deleting domain...'); - - - Delete - - - Delete Organization - - - {0} of {1} - - - There are no domains allowed for this organization. Click "Add Domain" button to add domain. - - - Default - - - Temporary - - - Domain - - - This block is visible to system administrators only. - - - Administrator e-mail: - - - Administrator name: - - - Catch-all - - - Catch-all address: - - - Contacts: - - - Distribution Lists: - - - Domains - - - Total domains used: - - - Exchange Control Panel: - - - Mailboxes: - - - Offer ID: - - - Organization Details - - - Organization name: - - - Program ID: - - - Quotas - - - Send to e-mail: - - - Service: - - - Service Plan - - - Setup Instructions - - - {0} of {1} (max {2}) - - - * - - - Send - - - Set Catch-all - - - (summary information template is not set) - - - Unlimited - - - Update Quotas - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationCatchAll.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationCatchAll.ascx.resx deleted file mode 100644 index 643fbd36..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationCatchAll.ascx.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cancel - - - Disable catch-all - - - Enable catch-all - - - Catch-all mailbox: - - - Enter catch-all e-mail address - - - * - - - Enter correct e-mail address - - - ! - - - Select domain - - - * - - - <Select domain> - - - ShowProgressDialog('Updating organization Catch-all address...'); - - - Update - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationQuotas.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationQuotas.ascx.resx deleted file mode 100644 index 6bd7fc79..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationQuotas.ascx.resx +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cancel - - - Contacts: - - - Distribution Lists: - - - Mailboxes: - - - (max {0}) - - - Specify correct number - - - ! - - - Specify correct number - - - ! - - - Specify correct number - - - ! - - - Enter contacts quota - - - * - - - Enter distribution lists quota - - - * - - - Enter mailboxes quota - - - * - - - Unlimited - - - ShowProgressDialog('Updating organization quotas...'); - - - Update - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationServicePlan.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationServicePlan.ascx.resx deleted file mode 100644 index bc03f039..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/App_LocalResources/UpdateOrganizationServicePlan.ascx.resx +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ShowProgressDialog('Updating organization service plan...'); - - - Apply - - - Cancel - - - Current Service Plan - - - New Service Plan - - - Offer ID: - - - Program ID: - - - Service: - - - Select new service - - - * - - - <Select service> - - \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx deleted file mode 100644 index 49cd603a..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx +++ /dev/null @@ -1,73 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateOrganization.ascx.cs" - Inherits="WebsitePanel.Portal.ExchangeHostedEdition.CreateOrganization" %> -<%@ Register Src="../UserControls/PasswordControl.ascx" TagName="PasswordControl" - TagPrefix="wsp" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" - TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" - TagPrefix="wsp" %> - - - -
- - - - - - - - - - - - - - - - - - - -
- Organization name: - - - -
- Administrator name: - - - -
- Administrator e-mail: - - - - @ - - - * -
- Administrator password: - - - -
-
-
- -
-
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx.cs deleted file mode 100644 index d1d17829..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.ResultObjects; -using WebsitePanel.EnterpriseServer; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class CreateOrganization : WebsitePanelModuleBase - { - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - // apply password policy - administratorPassword.SetPackagePolicy(PanelSecurity.PackageId, UserSettings.EXCHANGE_HOSTED_EDITION_POLICY, "MailboxPasswordPolicy"); - } - } - - protected void createOrganization_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - try - { - string orgDomain = domain.Text.Trim(); - string adminEmail = administratorEmail.Text.Trim() + "@" + orgDomain; - - IntResult result = ES.Services.ExchangeHostedEdition.CreateExchangeOrganization(PanelSecurity.PackageId, - organizationName.Text.Trim(), - orgDomain, - administratorName.Text.Trim(), - adminEmail, - administratorPassword.Password); - - if (result.IsSuccess) - { - // navigate to details - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString(), "ItemID=" + result.Value.ToString())); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_CREATE_ORGANIZATION", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_CREATE_ORGANIZATION", ex); - } - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx.designer.cs deleted file mode 100644 index 5ec75218..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/CreateOrganization.ascx.designer.cs +++ /dev/null @@ -1,186 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class CreateOrganization { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// CreateExchangeOrganizationPanel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Panel CreateExchangeOrganizationPanel; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// validationErrors control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary validationErrors; - - /// - /// locOrganizationName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locOrganizationName; - - /// - /// organizationName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox organizationName; - - /// - /// requireOrganizationName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireOrganizationName; - - /// - /// locAdministratorName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locAdministratorName; - - /// - /// administratorName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox administratorName; - - /// - /// requireAdministratorName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireAdministratorName; - - /// - /// locAdministratorEmail control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locAdministratorEmail; - - /// - /// administratorEmail control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox administratorEmail; - - /// - /// requireAdministratorEmail control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireAdministratorEmail; - - /// - /// domain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox domain; - - /// - /// requireDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireDomain; - - /// - /// requireCorrectDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RegularExpressionValidator requireCorrectDomain; - - /// - /// locAdministratorPassword control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locAdministratorPassword; - - /// - /// administratorPassword control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.PasswordControl administratorPassword; - - /// - /// createOrganization control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button createOrganization; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx deleted file mode 100644 index 532fed8a..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx +++ /dev/null @@ -1,21 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DeleteOrganization.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeHostedEdition.DeleteOrganization" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> - - - -
- - -
- -
- - -
-
- - -
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx.cs deleted file mode 100644 index 1197cad6..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.Common; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class DeleteOrganization : WebsitePanelModuleBase - { - protected void Page_Load(object sender, EventArgs e) - { - - } - - protected void delete_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - if (!confirmDelete.Checked) - { - messageBox.ShowWarningMessage("EXCHANGE_HOSTED_CONFIRM_DELETE_ORGANIZATION"); - return; - } - - try - { - ResultObject result = ES.Services.ExchangeHostedEdition.DeleteExchangeOrganization(PanelRequest.ItemID); - - if (result.IsSuccess) - { - // navigate to details - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString())); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_DELETE_ORGANIZATION", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_DELETE_ORGANIZATION", ex); - } - } - - protected void cancel_Click(object sender, EventArgs e) - { - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString(), "ItemID=" + PanelRequest.ItemID.ToString())); - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx.designer.cs deleted file mode 100644 index 880d371f..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/DeleteOrganization.ascx.designer.cs +++ /dev/null @@ -1,69 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class DeleteOrganization { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// locWarningMessage control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locWarningMessage; - - /// - /// confirmDelete control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CheckBox confirmDelete; - - /// - /// delete control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button delete; - - /// - /// cancel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button cancel; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx deleted file mode 100644 index b8dc32c6..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx +++ /dev/null @@ -1,166 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrganizationDetails.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeHostedEdition.OrganizationDetails" %> -<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> - - - -
- -
- Organization Details - - - - - - - - - - - - - - - - - -
Organization name:
Administrator name:
Administrator e-mail:
Exchange Control Panel:
-
- -
-
- -
- Service Plan - - - - - - - - - - - - - - -
Service:
Program ID:
Offer ID:
- -
- -
-
- Visible to admins only -
-
- -
- Quotas - - - - - - - - - - - - - -
Mailboxes:0 of 0 (max 0)
Contacts:0 of 0 (max 0)
Distribution Lists:0 of 0 (max 0)
-
- -
-
- -
- Domains -
- -
- - - - - - - <%# Eval("Name") %> - - - - -
-   - -
-
-
- - -
-   - -
-
-
- - -   - - -
-
-
- -     - -
- - <%-- -
- Catch-all - - - - - -
Catch-all address:(not set)
-
- -
-
- --%> - -
- Setup Instructions -
- (not set) -
-
- - - - -
-
-
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx.cs deleted file mode 100644 index 089d2bf0..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx.cs +++ /dev/null @@ -1,211 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.Common; -using WebsitePanel.Providers.ExchangeHostedEdition; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class OrganizationDetails : WebsitePanelModuleBase - { - private int ItemID - { - get { return (ViewState["ItemID"] != null) ? (int)ViewState["ItemID"] : 0; } - set { ViewState["ItemID"] = value; } - } - - protected void Page_Load(object sender, EventArgs e) - { - // get organization details - ExchangeOrganization[] orgs = ES.Services.ExchangeHostedEdition.GetOrganizations(PanelSecurity.PackageId); - - if (orgs.Length == 0) - { - // create a new organization - Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "create_org")); - return; - } - else - { - // bind - if(!IsPostBack) - BindOrganization(orgs[0].Id); - } - } - - private void BindOrganization(int itemId) - { - // load organization details - ExchangeOrganization org = null; - try - { - org = ES.Services.ExchangeHostedEdition.GetExchangeOrganizationDetails(itemId); - if (org == null) - throw new ArgumentNullException("Organization not found"); - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_GET_ORGANIZATION", ex); - return; - } - - // basic details - ItemID = org.Id; - organizationName.Text = org.Name; - administratorName.Text = org.AdministratorName; - administratorEmail.Text = org.AdministratorEmail; - ecpURL.Text = org.ExchangeControlPanelUrl; - ecpURL.NavigateUrl = org.ExchangeControlPanelUrl; - - // service plan - serviceName.Text = org.ServicePlan; - programID.Text = org.ProgramId; - offerID.Text = org.OfferId; - servicePlanBlock.Visible = (PanelSecurity.LoggedUser.Role == EnterpriseServer.UserRole.Administrator); - - // quotas - string quotaFormat = GetLocalizedString("quota.FormatText"); - mailboxes.Text = String.Format(quotaFormat, org.MailboxCount, FormatUnlimited(org.MailboxCountQuota), FormatUnlimited(org.MaxMailboxCountQuota)); - contacts.Text = String.Format(quotaFormat, org.ContactCount, FormatUnlimited(org.ContactCountQuota), FormatUnlimited(org.MaxContactCountQuota)); - distributionLists.Text = String.Format(quotaFormat, org.DistributionListCount, FormatUnlimited(org.DistributionListCountQuota), FormatUnlimited(org.MaxDistributionListCountQuota)); - - - // catch-all - //catchAllAddress.Text = !String.IsNullOrEmpty(org.CatchAllAddress) ? org.CatchAllAddress : GetLocalizedString("catchAllNotSet.Text"); - - // domains - BindOrganizationDomains(org); - - // summary - BindOrganizationSummary(org); - } - - private string FormatUnlimited(int num) - { - return (num != -1) ? num.ToString() : GetLocalizedString("unlimited.Text"); - } - - private void BindOrganizationDomains(ExchangeOrganization org) - { - try - { - // bind grid - gvDomains.DataSource = org.Domains; - gvDomains.DataBind(); - - // set gauge - domainsQuota.QuotaValue = org.MaxDomainsCountQuota; - domainsQuota.QuotaUsedValue = org.Domains.Length; - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_GET_DOMAINS", ex); - return; - } - } - - private void BindOrganizationSummary(ExchangeOrganization org) - { - try - { - string summaryText = ES.Services.ExchangeHostedEdition.GetExchangeOrganizationSummary(org.Id); - setupInstructions.Text = !String.IsNullOrEmpty(summaryText) ? summaryText : GetLocalizedString("summaryTemplateNotSet.Text"); - - // hide block if template is not set - organizationSummary.Visible = !String.IsNullOrEmpty(summaryText) || (PanelSecurity.LoggedUser.Role != EnterpriseServer.UserRole.User); - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_GET_DOMAINS", ex); - return; - } - } - - protected void gvDomains_RowDeleting(object sender, GridViewDeleteEventArgs e) - { - // delete domain - DeleteDomain(gvDomains.DataKeys[e.RowIndex][0].ToString()); - - // cancel event - e.Cancel = true; - } - - private void DeleteDomain(string domainName) - { - try - { - // call service - ResultObject result = ES.Services.ExchangeHostedEdition.DeleteExchangeOrganizationDomain(ItemID, domainName); - - // check results - if (result.IsSuccess) - { - // refresh details - BindOrganization(ItemID); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_DELETE_DOMAIN", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_DELETE_DOMAIN", ex); - } - } - - protected void deleteOrganization_Click(object sender, EventArgs e) - { - Response.Redirect(EditUrl("ItemID", ItemID.ToString(), "delete_org", "SpaceID=" + PanelSecurity.PackageId.ToString())); - } - - protected void changeServicePlan_Click(object sender, EventArgs e) - { - Response.Redirect(EditUrl("ItemID", ItemID.ToString(), "update_org_plan", "SpaceID=" + PanelSecurity.PackageId.ToString())); - } - - protected void updateQuotas_Click(object sender, EventArgs e) - { - Response.Redirect(EditUrl("ItemID", ItemID.ToString(), "update_org_quotas", "SpaceID=" + PanelSecurity.PackageId.ToString())); - } - - protected void btnAddDomain_Click(object sender, EventArgs e) - { - Response.Redirect(EditUrl("ItemID", ItemID.ToString(), "add_org_domain", "SpaceID=" + PanelSecurity.PackageId.ToString())); - } - - protected void setCatchAll_Click(object sender, EventArgs e) - { - Response.Redirect(EditUrl("ItemID", ItemID.ToString(), "update_org_catchall", "SpaceID=" + PanelSecurity.PackageId.ToString())); - } - - protected void sendSetupInstructions_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - try - { - ResultObject result = ES.Services.ExchangeHostedEdition.SendExchangeOrganizationSummary(ItemID, sendTo.Text.Trim()); - - if (result.IsSuccess) - { - // display success message - messageBox.ShowSuccessMessage("EXCHANGE_HOSTED_SEND_SUMMARY"); - } - else - { - // display error message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_SEND_SUMMARY", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_SEND_SUMMARY", ex); - } - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx.designer.cs deleted file mode 100644 index 9c330d65..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/OrganizationDetails.ascx.designer.cs +++ /dev/null @@ -1,393 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class OrganizationDetails { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// locOrganizationDetails control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locOrganizationDetails; - - /// - /// locOrganizationName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locOrganizationName; - - /// - /// organizationName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal organizationName; - - /// - /// locAdministratorName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locAdministratorName; - - /// - /// administratorName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal administratorName; - - /// - /// locAdministratorEmail control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locAdministratorEmail; - - /// - /// administratorEmail control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal administratorEmail; - - /// - /// locEcpURL control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locEcpURL; - - /// - /// ecpURL control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.HyperLink ecpURL; - - /// - /// deleteOrganization control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button deleteOrganization; - - /// - /// servicePlanBlock control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl servicePlanBlock; - - /// - /// locServicePlan control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locServicePlan; - - /// - /// locService control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locService; - - /// - /// serviceName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal serviceName; - - /// - /// locProgramID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locProgramID; - - /// - /// programID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal programID; - - /// - /// locOfferID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locOfferID; - - /// - /// offerID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal offerID; - - /// - /// changeServicePlan control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button changeServicePlan; - - /// - /// lblAdminsWarning control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblAdminsWarning; - - /// - /// locQuotas control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locQuotas; - - /// - /// locMailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locMailboxes; - - /// - /// mailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal mailboxes; - - /// - /// locContacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locContacts; - - /// - /// contacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal contacts; - - /// - /// locDistributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locDistributionLists; - - /// - /// distributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal distributionLists; - - /// - /// updateQuotas control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button updateQuotas; - - /// - /// locDomains control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locDomains; - - /// - /// btnAddDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button btnAddDomain; - - /// - /// gvDomains control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.GridView gvDomains; - - /// - /// locDomainsQuota control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locDomainsQuota; - - /// - /// domainsQuota control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.QuotaViewer domainsQuota; - - /// - /// organizationSummary control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl organizationSummary; - - /// - /// locSetupInstructions control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locSetupInstructions; - - /// - /// setupInstructions control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal setupInstructions; - - /// - /// locSendTo control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locSendTo; - - /// - /// sendTo control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox sendTo; - - /// - /// sendSetupInstructions control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button sendSetupInstructions; - - /// - /// requireSendTo control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireSendTo; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx deleted file mode 100644 index e822eb26..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx +++ /dev/null @@ -1,44 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UpdateOrganizationCatchAll.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeHostedEdition.UpdateOrganizationCatchAll" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> - - - -
- - - - - - - - - - - -
- - - - -
-
Catch-all mailbox: - - - - @ - - -
-
-
- - -
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx.cs deleted file mode 100644 index e5dddcb5..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.Common; -using WebsitePanel.Providers.ExchangeHostedEdition; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class UpdateOrganizationCatchAll : WebsitePanelModuleBase - { - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - BindOrganizationDomains(); - BindCatchAllMode(); - } - } - - private void BindOrganizationDomains() - { - try - { - // read domains - ExchangeOrganizationDomain[] orgDomains = ES.Services.ExchangeHostedEdition.GetExchangeOrganizationDomains(PanelRequest.ItemID); - - // bind domains - domains.DataSource = orgDomains; - domains.DataBind(); - - // select default domain - foreach (ExchangeOrganizationDomain domain in orgDomains) - { - if (domain.IsDefault) - { - domains.SelectedValue = domain.Name; - break; - } - } - - // insert empty item in the beginning - domains.Items.Insert(0, new ListItem(GetLocalizedString("SelectDomain.Text"), "")); - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_GET_DOMAINS", ex); - } - } - - private void BindCatchAllMode() - { - rawCatchAllAddress.Visible = (catchAllMode.SelectedIndex > 0); - } - - protected void update_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - try - { - // collect form data - string catchAllEmail = catchAllAddress.Text.Trim() + "@" + domains.SelectedValue; - if (catchAllMode.SelectedIndex == 0) - { - catchAllEmail = ""; // disabled - } - - // call service - ResultObject result = ES.Services.ExchangeHostedEdition.UpdateExchangeOrganizationCatchAllAddress( - PanelRequest.ItemID, catchAllEmail); - - // check results - if (result.IsSuccess) - { - // navigate to details - RedirectBack(); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_CHANGE_QUOTAS", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_CHANGE_QUOTAS", ex); - } - } - - protected void cancel_Click(object sender, EventArgs e) - { - RedirectBack(); - } - - private void RedirectBack() - { - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString(), "ItemID=" + PanelRequest.ItemID.ToString())); - } - - protected void catchAllMode_SelectedIndexChanged(object sender, EventArgs e) - { - BindCatchAllMode(); - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx.designer.cs deleted file mode 100644 index 6bb1db1d..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationCatchAll.ascx.designer.cs +++ /dev/null @@ -1,132 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class UpdateOrganizationCatchAll { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// validationErrors control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary validationErrors; - - /// - /// catchAllMode control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RadioButtonList catchAllMode; - - /// - /// rawCatchAllAddress control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlTableRow rawCatchAllAddress; - - /// - /// locCatchAllAddress control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locCatchAllAddress; - - /// - /// catchAllAddress control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox catchAllAddress; - - /// - /// requireCatchAllAddress control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireCatchAllAddress; - - /// - /// requireCorrectEmail control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RegularExpressionValidator requireCorrectEmail; - - /// - /// domains control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList domains; - - /// - /// requireDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireDomain; - - /// - /// update control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button update; - - /// - /// cancel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button cancel; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx deleted file mode 100644 index 9c4fde3d..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx +++ /dev/null @@ -1,52 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UpdateOrganizationQuotas.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeHostedEdition.UpdateOrganizationQuotas" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> - - - -
- - - - - - - - - - - - - - - - -
- - (max 0) - - -
- - (max 0) - - -
- - (max 0) - - -
-
-
- - -
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx.cs deleted file mode 100644 index 8c0cddcb..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.Common; -using WebsitePanel.Providers.ExchangeHostedEdition; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class UpdateOrganizationQuotas : WebsitePanelModuleBase - { - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - BindOrganizationQuotas(); - } - } - - private void BindOrganizationQuotas() - { - // load organization details - ExchangeOrganization org = null; - try - { - org = ES.Services.ExchangeHostedEdition.GetExchangeOrganizationDetails(PanelRequest.ItemID); - if (org == null) - throw new ArgumentNullException("Organization not found"); - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_GET_ORGANIZATION", ex); - return; - } - - // current quotas - mailboxes.Text = IsUnlimited(org.MailboxCountQuota) ? "" : org.MailboxCountQuota.ToString(); - contacts.Text = IsUnlimited(org.ContactCountQuota) ? "" : org.ContactCountQuota.ToString(); - distributionLists.Text = IsUnlimited(org.DistributionListCountQuota) ? "" : org.DistributionListCountQuota.ToString(); - - // max quotas - string maxQuotaFormat = GetLocalizedString("maxQuota.Text"); - maxMailboxes.Text = String.Format(maxQuotaFormat, FormatUnlimited(org.MaxMailboxCountQuota)); - maxContacts.Text = String.Format(maxQuotaFormat, FormatUnlimited(org.MaxContactCountQuota)); - maxDistributionLists.Text = String.Format(maxQuotaFormat, FormatUnlimited(org.MaxDistributionListCountQuota)); - - if (!IsUnlimited(org.MaxMailboxCountQuota)) - { - requireMailboxes.Enabled = true; - rangeMailboxes.MaximumValue = org.MaxMailboxCountQuota.ToString(); - } - - if (!IsUnlimited(org.MaxContactCountQuota)) - { - requireContacts.Enabled = true; - rangeContacts.MaximumValue = org.MaxContactCountQuota.ToString(); - } - - if (!IsUnlimited(org.MaxDistributionListCountQuota)) - { - requireDistributionLists.Enabled = true; - rangeDistributionLists.MaximumValue = org.MaxDistributionListCountQuota.ToString(); - } - } - - private bool IsUnlimited(int num) - { - return (num == -1); - } - - private string FormatUnlimited(int num) - { - return IsUnlimited(num) ? GetLocalizedString("unlimited.Text") : num.ToString(); - } - - protected void update_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - try - { - // collect form data - int mailboxesNumber = (mailboxes.Text.Trim() == "") ? -1 : Utils.ParseInt(mailboxes.Text, 0); - int contactsNumber = (contacts.Text.Trim() == "") ? -1 : Utils.ParseInt(contacts.Text, 0); - int distributionListsNumber = (distributionLists.Text.Trim() == "") ? -1 : Utils.ParseInt(distributionLists.Text, 0); - - // call service - ResultObject result = ES.Services.ExchangeHostedEdition.UpdateExchangeOrganizationQuotas( - PanelRequest.ItemID, mailboxesNumber, contactsNumber, distributionListsNumber); - - // check results - if (result.IsSuccess) - { - // navigate to details - RedirectBack(); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_CHANGE_QUOTAS", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_CHANGE_QUOTAS", ex); - } - } - - protected void cancel_Click(object sender, EventArgs e) - { - RedirectBack(); - } - - private void RedirectBack() - { - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString(), "ItemID=" + PanelRequest.ItemID.ToString())); - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx.designer.cs deleted file mode 100644 index af229361..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationQuotas.ascx.designer.cs +++ /dev/null @@ -1,195 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class UpdateOrganizationQuotas { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// validationErrors control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary validationErrors; - - /// - /// locMailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locMailboxes; - - /// - /// mailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox mailboxes; - - /// - /// maxMailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal maxMailboxes; - - /// - /// requireMailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireMailboxes; - - /// - /// rangeMailboxes control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RangeValidator rangeMailboxes; - - /// - /// locContacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locContacts; - - /// - /// contacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox contacts; - - /// - /// maxContacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal maxContacts; - - /// - /// requireContacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireContacts; - - /// - /// rangeContacts control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RangeValidator rangeContacts; - - /// - /// locDistributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locDistributionLists; - - /// - /// distributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox distributionLists; - - /// - /// maxDistributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal maxDistributionLists; - - /// - /// requireDistributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireDistributionLists; - - /// - /// rangeDistributionLists control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RangeValidator rangeDistributionLists; - - /// - /// update control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button update; - - /// - /// cancel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button cancel; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx deleted file mode 100644 index 56404805..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx +++ /dev/null @@ -1,58 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UpdateOrganizationServicePlan.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeHostedEdition.UpdateOrganizationServicePlan" %> -<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> -<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> - - - -
- - - -
- - - - - - - - - - - - - - -
-
- -
- - - - - - - - - - - - - - -
- - -
-
-
-
- - -
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx.cs deleted file mode 100644 index 2e44f2c3..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; -using WebsitePanel.Providers.Common; -using WebsitePanel.EnterpriseServer; -using WebsitePanel.Providers.ExchangeHostedEdition; - -namespace WebsitePanel.Portal.ExchangeHostedEdition -{ - public partial class UpdateOrganizationServicePlan : WebsitePanelModuleBase - { - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - BindServices(); - BindOrganizationDetails(); - } - } - - private void BindServices() - { - // bind - services.DataSource = ES.Services.Servers.GetRawServicesByGroupName(ResourceGroups.ExchangeHostedEdition).Tables[0].DefaultView; - services.DataBind(); - - // insert empty item - services.Items.Insert(0, new ListItem(GetLocalizedString("SelectService.Text"), "")); - } - - private void BindOrganizationDetails() - { - ExchangeOrganization org = ES.Services.ExchangeHostedEdition.GetExchangeOrganizationDetails(PanelRequest.ItemID); - if (org == null) - return; - - // selected service - ListItem sourceItem = null; - foreach (ListItem item in services.Items) - { - if (item.Value == org.ServiceId.ToString()) - { - sourceItem = item; - currentServiceName.Text = item.Text; - break; - } - } - - if (sourceItem != null) - services.Items.Remove(sourceItem); - - currentProgramID.Text = org.ProgramId; - currentOfferID.Text = org.OfferId; - } - - private void BindSelectedService() - { - int newServiceId = Utils.ParseInt(services.SelectedValue, 0); - - // get service settings - string[] settings = ES.Services.Servers.GetServiceSettings(newServiceId); - - foreach (string setting in settings) - { - string[] pair = setting.Split('='); - if(String.Equals(pair[0], "ProgramID", StringComparison.InvariantCultureIgnoreCase)) - newProgramID.Text = pair[1]; - else if (String.Equals(pair[0], "OfferID", StringComparison.InvariantCultureIgnoreCase)) - newOfferID.Text = pair[1]; - } - } - - protected void services_SelectedIndexChanged(object sender, EventArgs e) - { - BindSelectedService(); - } - - protected void apply_Click(object sender, EventArgs e) - { - if (!Page.IsValid) - return; - - try - { - // collect form data - int serviceId = Utils.ParseInt(services.SelectedValue, 0); - - // call service - ResultObject result = ES.Services.ExchangeHostedEdition.UpdateExchangeOrganizationServicePlan(PanelRequest.ItemID, serviceId); - - // check results - if (result.IsSuccess) - { - // navigate to details - RedirectBack(); - } - else - { - // display message - messageBox.ShowMessage(result, "EXCHANGE_HOSTED_CHANGE_SERVICE_PLAN", "ExchangeHostedEdition"); - } - } - catch (Exception ex) - { - messageBox.ShowErrorMessage("EXCHANGE_HOSTED_CHANGE_SERVICE_PLAN", ex); - } - } - - protected void cancel_Click(object sender, EventArgs e) - { - RedirectBack(); - } - - private void RedirectBack() - { - Response.Redirect(NavigateURL("SpaceID", PanelSecurity.PackageId.ToString(), "ItemID=" + PanelRequest.ItemID.ToString())); - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx.designer.cs deleted file mode 100644 index d71d149c..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeHostedEdition/UpdateOrganizationServicePlan.ascx.designer.cs +++ /dev/null @@ -1,195 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal.ExchangeHostedEdition { - - - public partial class UpdateOrganizationServicePlan { - - /// - /// asyncTasks control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks; - - /// - /// messageBox control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; - - /// - /// validationErrors control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary validationErrors; - - /// - /// locCurrentServicePlan control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locCurrentServicePlan; - - /// - /// locCurrentService control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locCurrentService; - - /// - /// currentServiceName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal currentServiceName; - - /// - /// locCurrentProgramID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locCurrentProgramID; - - /// - /// currentProgramID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal currentProgramID; - - /// - /// locCurrentOfferID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locCurrentOfferID; - - /// - /// currentOfferID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal currentOfferID; - - /// - /// locNewServicePlan control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locNewServicePlan; - - /// - /// locNewService control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locNewService; - - /// - /// services control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList services; - - /// - /// requireServices control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.RequiredFieldValidator requireServices; - - /// - /// locNewProgramID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locNewProgramID; - - /// - /// newProgramID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal newProgramID; - - /// - /// locNewOfferID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locNewOfferID; - - /// - /// newOfferID control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Literal newOfferID; - - /// - /// apply control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button apply; - - /// - /// cancel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button cancel; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx deleted file mode 100644 index cd30d27b..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx +++ /dev/null @@ -1,42 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SettingsExchangeHostedEditionOrganizationSummary.ascx.cs" Inherits="WebsitePanel.Portal.SettingsExchangeHostedEditionOrganizationSummary" %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- - High - Normal - Low - -


-


-
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx.cs deleted file mode 100644 index f434206d..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx.cs +++ /dev/null @@ -1,67 +0,0 @@ -// 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.Data; -using System.Configuration; -using System.Collections; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using WebsitePanel.EnterpriseServer; - -namespace WebsitePanel.Portal -{ - public partial class SettingsExchangeHostedEditionOrganizationSummary : WebsitePanelControlBase, IUserSettingsEditorControl - { - public void BindSettings(UserSettings settings) - { - txtFrom.Text = settings["From"]; - txtCC.Text = settings["CC"]; - txtSubject.Text = settings["Subject"]; - Utils.SelectListItem(ddlPriority, settings["Priority"]); - txtHtmlBody.Text = settings["HtmlBody"]; - txtTextBody.Text = settings["TextBody"]; - } - - public void SaveSettings(UserSettings settings) - { - settings["From"] = txtFrom.Text; - settings["CC"] = txtCC.Text; - settings["Subject"] = txtSubject.Text; - settings["Priority"] = ddlPriority.SelectedValue; - settings["HtmlBody"] = txtHtmlBody.Text; - settings["TextBody"] = txtTextBody.Text; - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx.designer.cs deleted file mode 100644 index 605a8733..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionOrganizationSummary.ascx.designer.cs +++ /dev/null @@ -1,123 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal { - - - public partial class SettingsExchangeHostedEditionOrganizationSummary { - - /// - /// lblFrom control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblFrom; - - /// - /// txtFrom control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtFrom; - - /// - /// lblCC control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblCC; - - /// - /// txtCC control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtCC; - - /// - /// lblSubject control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblSubject; - - /// - /// txtSubject control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtSubject; - - /// - /// lblPriority control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblPriority; - - /// - /// ddlPriority control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.DropDownList ddlPriority; - - /// - /// lblHtmlBody control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblHtmlBody; - - /// - /// txtHtmlBody control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtHtmlBody; - - /// - /// lblTextBody control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblTextBody; - - /// - /// txtTextBody control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox txtTextBody; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx deleted file mode 100644 index a0d6e374..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx +++ /dev/null @@ -1,18 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SettingsExchangeHostedEditionPolicy.ascx.cs" Inherits="WebsitePanel.Portal.SettingsExchangeHostedEditionPolicy" %> -<%@ Register Src="UserControls/PasswordPolicyEditor.ascx" TagName="PasswordPolicyEditor" TagPrefix="wsp" %> -<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="UserControls/CollapsiblePanel.ascx" %> - - - - - - - - -
- - - -
-
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx.cs deleted file mode 100644 index f0621cf4..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx.cs +++ /dev/null @@ -1,58 +0,0 @@ -// 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.Data; -using System.Configuration; -using System.Collections; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using WebsitePanel.EnterpriseServer; - -namespace WebsitePanel.Portal -{ - public partial class SettingsExchangeHostedEditionPolicy : WebsitePanelControlBase, IUserSettingsEditorControl - { - public void BindSettings(UserSettings settings) - { - // mailbox - mailboxPasswordPolicy.Value = settings["MailboxPasswordPolicy"]; - } - - public void SaveSettings(UserSettings settings) - { - // mailbox - settings["MailboxPasswordPolicy"] = mailboxPasswordPolicy.Value; - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx.designer.cs deleted file mode 100644 index 1653b06c..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeHostedEditionPolicy.ascx.designer.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal { - - - public partial class SettingsExchangeHostedEditionPolicy { - - /// - /// secMailboxPassword control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.CollapsiblePanel secMailboxPassword; - - /// - /// MailboxPasswordPanel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Panel MailboxPasswordPanel; - - /// - /// mailboxPasswordPolicy control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::WebsitePanel.Portal.PasswordPolicyEditor mailboxPasswordPolicy; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx index a0ed1fa1..a93f67c0 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx @@ -24,9 +24,6 @@ - diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.cs index b09f8fb4..8fd926ed 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.cs @@ -59,8 +59,6 @@ namespace WebsitePanel.Portal "edit_settings", "SettingsName=ChildSpacesFolder", "SpaceID=" + PanelSecurity.PackageId.ToString()); lnkExchangeServer.NavigateUrl = EditUrl("SettingsControl", "SpaceSettingsExchangeServer", "edit_settings", "SettingsName=ExchangeServer", "SpaceID=" + PanelSecurity.PackageId.ToString()); - lnkExchangeHostedEdition.NavigateUrl = EditUrl("SettingsControl", "SpaceSettingsExchangeHostedEdition", - "edit_settings", "SettingsName=ExchangeHostedEdition", "SpaceID=" + PanelSecurity.PackageId.ToString()); lnkVps.NavigateUrl = EditUrl("SettingsControl", "SpaceSettingsVPS", "edit_settings", "SettingsName=VirtualPrivateServers", "SpaceID=" + PanelSecurity.PackageId.ToString()); lnkVpsForPC.NavigateUrl = EditUrl("SettingsControl", "SpaceSettingsVPSForPC", diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.designer.cs index 6cf872b4..795ee993 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettings.ascx.designer.cs @@ -84,15 +84,6 @@ namespace WebsitePanel.Portal { ///
protected global::System.Web.UI.WebControls.HyperLink lnkExchangeServer; - /// - /// lnkExchangeHostedEdition control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.HyperLink lnkExchangeHostedEdition; - /// /// lnkVps control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx deleted file mode 100644 index e58866ab..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx +++ /dev/null @@ -1,18 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SpaceSettingsExchangeHostedEdition.ascx.cs" Inherits="WebsitePanel.Portal.SpaceSettingsExchangeHostedEdition" %> - -
- Domain Templates - - - - - - - - - -
Temporary domain:organization_domain.
ECP URL template: -
- You can use [DOMAIN_NAME] variable for organization default domain. -
-
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx.cs deleted file mode 100644 index 77cbfbc8..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx.cs +++ /dev/null @@ -1,63 +0,0 @@ -// 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.Data; -using System.Configuration; -using System.Collections; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -using WebsitePanel.EnterpriseServer; - -namespace WebsitePanel.Portal -{ - public partial class SpaceSettingsExchangeHostedEdition : WebsitePanelControlBase, IPackageSettingsEditorControl - { - protected void Page_Load(object sender, EventArgs e) - { - - } - - public void BindSettings(PackageSettings settings) - { - temporaryDomain.Text = settings["temporaryDomain"]; - ecpURL.Text = settings["ecpURL"]; - } - - public void SaveSettings(PackageSettings settings) - { - settings["temporaryDomain"] = temporaryDomain.Text.Trim(); - settings["ecpURL"] = ecpURL.Text.Trim(); - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx.designer.cs deleted file mode 100644 index e6e8dd5e..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceSettingsExchangeHostedEdition.ascx.designer.cs +++ /dev/null @@ -1,69 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WebsitePanel.Portal { - - - public partial class SpaceSettingsExchangeHostedEdition { - - /// - /// locDomainTemplates control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locDomainTemplates; - - /// - /// locTemporaryDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locTemporaryDomain; - - /// - /// temporaryDomain control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox temporaryDomain; - - /// - /// locEcpURL control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locEcpURL; - - /// - /// ecpURL control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox ecpURL; - - /// - /// locEcpURLDescr control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locEcpURLDescr; - } -} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx index 7f83cb56..12da225e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx @@ -26,10 +26,6 @@ -
  • - -
  • diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx.designer.cs index edb0f27d..f30b5556 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountMailTemplateSettings.ascx.designer.cs @@ -66,15 +66,6 @@ namespace WebsitePanel.Portal { /// protected global::System.Web.UI.WebControls.HyperLink HyperLink2; - /// - /// lnkExchangeHostedEditionOrganizationSummary control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.HyperLink lnkExchangeHostedEditionOrganizationSummary; - /// /// lnkVpsSummaryLetter control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx index 412ecee2..a9fc8fe1 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx @@ -37,10 +37,6 @@
  • -
  • - -
  • diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx.designer.cs index d818355e..d47171c5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserAccountPolicySettings.ascx.designer.cs @@ -93,15 +93,6 @@ namespace WebsitePanel.Portal { /// protected global::System.Web.UI.WebControls.HyperLink lnkExchangePolicy; - /// - /// lnkExchangeHostedEditionPolicy control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.HyperLink lnkExchangeHostedEditionPolicy; - /// /// lnkVpsPolicy control. /// 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 969f4bfb..2bc48ea9 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj @@ -534,13 +534,6 @@ HyperVForPrivateCloud_Settings.ascx - - SettingsExchangeHostedEditionOrganizationSummary.ascx - ASPXCodeBehind - - - SettingsExchangeHostedEditionOrganizationSummary.ascx - SetupControlPanelAccounts.ascx ASPXCodeBehind @@ -548,69 +541,6 @@ SetupControlPanelAccounts.ascx - - SpaceSettingsExchangeHostedEdition.ascx - ASPXCodeBehind - - - SpaceSettingsExchangeHostedEdition.ascx - - - SettingsExchangeHostedEditionPolicy.ascx - ASPXCodeBehind - - - SettingsExchangeHostedEditionPolicy.ascx - - - AddOrganizationDomain.ascx - ASPXCodeBehind - - - AddOrganizationDomain.ascx - - - CreateOrganization.ascx - ASPXCodeBehind - - - CreateOrganization.ascx - - - DeleteOrganization.ascx - ASPXCodeBehind - - - DeleteOrganization.ascx - - - OrganizationDetails.ascx - ASPXCodeBehind - - - OrganizationDetails.ascx - - - UpdateOrganizationCatchAll.ascx - ASPXCodeBehind - - - UpdateOrganizationCatchAll.ascx - - - UpdateOrganizationQuotas.ascx - ASPXCodeBehind - - - UpdateOrganizationQuotas.ascx - - - UpdateOrganizationServicePlan.ascx - ASPXCodeBehind - - - UpdateOrganizationServicePlan.ascx - ExchangeMailboxMobile.ascx ASPXCodeBehind @@ -3804,17 +3734,7 @@ - - - - - - - - - - @@ -4768,27 +4688,6 @@ Designer - - Designer - - - Designer - - - Designer - - - Designer - - - Designer - - - Designer - - - Designer - Designer