Fixed: When onboarding a tenant with resources all globaldnsrecords are
interpreted and created, even when service offering is not subscribed or not used yet. Service globaldnsrecords are ignored when onboarding a tenant. Virtual Server and Server globaldnsrecords are applied when onboarding a user Service globaldns records are now applied when service is applied/activated DNS record definitions removed for those services where no globaldnsrecords are user TaskManager unhandled exception handled
This commit is contained in:
parent
2907c27592
commit
75ca39ea5f
13 changed files with 458 additions and 109 deletions
|
@ -40,6 +40,7 @@ using WebsitePanel.Providers.HostedSolution;
|
|||
using WebsitePanel.Providers.ResultObjects;
|
||||
using WebsitePanel.Providers.SharePoint;
|
||||
using WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.DNS;
|
||||
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
@ -335,6 +336,17 @@ namespace WebsitePanel.EnterpriseServer
|
|||
RollbackOrganization(packageId, organizationId);
|
||||
return domainId;
|
||||
}
|
||||
|
||||
DomainInfo domain = ServerController.GetDomain(domainId);
|
||||
if (domain != null)
|
||||
{
|
||||
if (domain.ZoneItemId != 0)
|
||||
{
|
||||
ServerController.AddServiceDNSRecords(org.PackageId, ResourceGroups.HostedOrganizations, domain, "");
|
||||
ServerController.AddServiceDNSRecords(org.PackageId, ResourceGroups.HostedCRM, domain, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PackageContext cntx = PackageController.GetPackageContext(packageId);
|
||||
|
||||
|
@ -367,60 +379,6 @@ namespace WebsitePanel.EnterpriseServer
|
|||
PackageController.AddPackageItem(orgDomain);
|
||||
|
||||
|
||||
if (cntx.Quotas[Quotas.EXCHANGE2007_MAILBOXES] != null)
|
||||
{
|
||||
// 5) Create default mailbox plans
|
||||
// load user info
|
||||
UserInfo user = PackageController.GetPackageOwner(org.PackageId);
|
||||
|
||||
// get settings
|
||||
UserSettings userSettings = UserController.GetUserSettings(user.UserId, "ExchangeMailboxPlansPolicy");
|
||||
|
||||
if (!string.IsNullOrEmpty(userSettings[UserSettings.DEFAULT_MAILBOXPLANS]))
|
||||
{
|
||||
|
||||
List<ExchangeMailboxPlan> list = new List<ExchangeMailboxPlan>();
|
||||
|
||||
XmlSerializer serializer = new XmlSerializer(list.GetType());
|
||||
|
||||
StringReader reader = new StringReader(userSettings[UserSettings.DEFAULT_MAILBOXPLANS]);
|
||||
|
||||
list = (List<ExchangeMailboxPlan>)serializer.Deserialize(reader);
|
||||
|
||||
foreach (ExchangeMailboxPlan p in list)
|
||||
{
|
||||
ExchangeServerController.AddExchangeMailboxPlan(itemId, p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (cntx.Quotas[Quotas.LYNC_USERS] != null)
|
||||
{
|
||||
// 5) Create default mailbox plans
|
||||
// load user info
|
||||
UserInfo user = PackageController.GetPackageOwner(org.PackageId);
|
||||
|
||||
// get settings
|
||||
UserSettings userSettings = UserController.GetUserSettings(user.UserId, "LyncUserPlansPolicy");
|
||||
|
||||
if (!string.IsNullOrEmpty(userSettings[UserSettings.DEFAULT_LYNCUSERPLANS]))
|
||||
{
|
||||
|
||||
List<LyncUserPlan> list = new List<LyncUserPlan>();
|
||||
|
||||
XmlSerializer serializer = new XmlSerializer(list.GetType());
|
||||
|
||||
StringReader reader = new StringReader(userSettings[UserSettings.DEFAULT_LYNCUSERPLANS]);
|
||||
|
||||
list = (List<LyncUserPlan>)serializer.Deserialize(reader);
|
||||
|
||||
foreach (LyncUserPlan p in list)
|
||||
{
|
||||
LyncController.AddLyncUserPlan(itemId, p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue