Merge
This commit is contained in:
commit
097378bc50
352 changed files with 45244 additions and 2550 deletions
|
@ -383,6 +383,13 @@ namespace WebsitePanel.EnterpriseServer
|
|||
if (cntx.Quotas[Quotas.HOSTED_SHAREPOINT_STORAGE_SIZE] != null)
|
||||
org.WarningSharePointStorage = cntx.Quotas[Quotas.HOSTED_SHAREPOINT_STORAGE_SIZE].QuotaAllocatedValue;
|
||||
|
||||
if (cntx.Quotas[Quotas.HOSTED_SHAREPOINT_ENTERPRISE_STORAGE_SIZE] != null)
|
||||
org.MaxSharePointEnterpriseStorage = cntx.Quotas[Quotas.HOSTED_SHAREPOINT_ENTERPRISE_STORAGE_SIZE].QuotaAllocatedValue;
|
||||
|
||||
|
||||
if (cntx.Quotas[Quotas.HOSTED_SHAREPOINT_ENTERPRISE_STORAGE_SIZE] != null)
|
||||
org.WarningSharePointEnterpriseStorage = cntx.Quotas[Quotas.HOSTED_SHAREPOINT_ENTERPRISE_STORAGE_SIZE].QuotaAllocatedValue;
|
||||
|
||||
|
||||
//add organization to package items
|
||||
itemId = AddOrganizationToPackageItems(org, serviceId, packageId, organizationName, organizationId, domainName);
|
||||
|
@ -670,6 +677,16 @@ namespace WebsitePanel.EnterpriseServer
|
|||
TaskManager.WriteError(ex);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
HostedSharePointServerEntController.DeleteSiteCollections(itemId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
successful = false;
|
||||
TaskManager.WriteError(ex);
|
||||
}
|
||||
|
||||
if (org.IsOCSOrganization)
|
||||
{
|
||||
DeleteOCSUsers(itemId, ref successful);
|
||||
|
@ -939,7 +956,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
stats.CreatedUsers = 5;
|
||||
stats.AllocatedUsers = 10;
|
||||
stats.CreatedSharePointSiteCollections = 1;
|
||||
stats.CreatedSharePointEnterpriseSiteCollections = 1;
|
||||
stats.AllocatedSharePointSiteCollections = 5;
|
||||
stats.AllocatedSharePointEnterpriseSiteCollections = 5;
|
||||
return stats;
|
||||
}
|
||||
#endregion
|
||||
|
@ -971,6 +990,13 @@ namespace WebsitePanel.EnterpriseServer
|
|||
stats.CreatedSharePointSiteCollections = sharePointStats.TotalRowCount;
|
||||
}
|
||||
|
||||
if (cntxTmp.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer))
|
||||
{
|
||||
SharePointEnterpriseSiteCollectionListPaged sharePointStats = HostedSharePointServerEntController.GetSiteCollectionsPaged(org.PackageId, org.Id, string.Empty, string.Empty, string.Empty, 0, 0);
|
||||
stats.CreatedSharePointEnterpriseSiteCollections = sharePointStats.TotalRowCount;
|
||||
}
|
||||
|
||||
|
||||
if (cntxTmp.Groups.ContainsKey(ResourceGroups.HostedCRM))
|
||||
{
|
||||
stats.CreatedCRMUsers = CRMController.GetCRMUsersCount(org.Id, string.Empty, string.Empty, CRMUserLycenseTypes.FULL).Value;
|
||||
|
@ -1050,8 +1076,15 @@ namespace WebsitePanel.EnterpriseServer
|
|||
{
|
||||
SharePointSiteCollectionListPaged sharePointStats = HostedSharePointServerController.GetSiteCollectionsPaged(org.PackageId, o.Id, string.Empty, string.Empty, string.Empty, 0, 0);
|
||||
stats.CreatedSharePointSiteCollections += sharePointStats.TotalRowCount;
|
||||
}
|
||||
|
||||
if (cntxTmp.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer))
|
||||
{
|
||||
SharePointEnterpriseSiteCollectionListPaged sharePointStats = HostedSharePointServerEntController.GetSiteCollectionsPaged(org.PackageId, o.Id, string.Empty, string.Empty, string.Empty, 0, 0);
|
||||
stats.CreatedSharePointEnterpriseSiteCollections += sharePointStats.TotalRowCount;
|
||||
}
|
||||
|
||||
|
||||
if (cntxTmp.Groups.ContainsKey(ResourceGroups.HostedCRM))
|
||||
{
|
||||
stats.CreatedCRMUsers += CRMController.GetCRMUsersCount(o.Id, string.Empty, string.Empty, CRMUserLycenseTypes.FULL ).Value;
|
||||
|
@ -1119,6 +1152,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
stats.AllocatedSharePointSiteCollections = cntx.Quotas[Quotas.HOSTED_SHAREPOINT_SITES].QuotaAllocatedValue;
|
||||
}
|
||||
|
||||
if (cntx.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer))
|
||||
{
|
||||
stats.AllocatedSharePointEnterpriseSiteCollections = cntx.Quotas[Quotas.HOSTED_SHAREPOINT_ENTERPRISE_SITES].QuotaAllocatedValue;
|
||||
}
|
||||
|
||||
if (cntx.Groups.ContainsKey(ResourceGroups.HostedCRM))
|
||||
{
|
||||
stats.AllocatedCRMUsers = cntx.Quotas[Quotas.CRM_USERS].QuotaAllocatedValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue