Merge
This commit is contained in:
commit
9be05ad911
75 changed files with 757 additions and 338 deletions
|
@ -9492,4 +9492,14 @@ UPDATE [dbo].[Quotas] SET QuotaName = 'HostedSharePointEnterprise.UseSharedSSL'
|
|||
GO
|
||||
|
||||
UPDATE [dbo].[ServiceItemTypes] SET DisplayName = 'SharePointEnterpriseSiteCollection' WHERE DisplayName = 'SharePointSiteCollection'
|
||||
GO
|
||||
GO
|
||||
|
||||
|
||||
IF EXISTS (SELECT * FROM Providers WHERE ProviderName = 'HostedSharePoint2013' AND GroupID IN (Select GroupID FROM ResourceGroups WHERE GroupName = 'Sharepoint Enterprise Server'))
|
||||
BEGIN
|
||||
DECLARE @group_id INT
|
||||
SELECT @group_id = GroupId FROM ResourceGroups WHERE GroupName = 'Sharepoint Enterprise Server'
|
||||
DELETE FROM Providers WHERE ProviderName = 'HostedSharePoint2013' AND GroupID = @group_id
|
||||
END
|
||||
|
||||
GO
|
||||
|
|
|
@ -140,7 +140,7 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Enterprise_GetSiteCollectionsPaged", 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 SharePointSiteCollectionListPaged Enterprise_GetSiteCollectionsPaged(int packageId, int organizationId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) {
|
||||
public SharePointEnterpriseSiteCollectionListPaged Enterprise_GetSiteCollectionsPaged(int packageId, int organizationId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) {
|
||||
object[] results = this.Invoke("Enterprise_GetSiteCollectionsPaged", new object[] {
|
||||
packageId,
|
||||
organizationId,
|
||||
|
@ -149,7 +149,7 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
sortColumn,
|
||||
startRow,
|
||||
maximumRows});
|
||||
return ((SharePointSiteCollectionListPaged)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollectionListPaged)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -165,9 +165,9 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollectionListPaged EndEnterprise_GetSiteCollectionsPaged(System.IAsyncResult asyncResult) {
|
||||
public SharePointEnterpriseSiteCollectionListPaged EndEnterprise_GetSiteCollectionsPaged(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollectionListPaged)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollectionListPaged)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -240,11 +240,11 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Enterprise_GetSiteCollections", 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 SharePointSiteCollection[] Enterprise_GetSiteCollections(int packageId, bool recursive) {
|
||||
public SharePointEnterpriseSiteCollection[] Enterprise_GetSiteCollections(int packageId, bool recursive) {
|
||||
object[] results = this.Invoke("Enterprise_GetSiteCollections", new object[] {
|
||||
packageId,
|
||||
recursive});
|
||||
return ((SharePointSiteCollection[])(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -255,9 +255,9 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection[] EndEnterprise_GetSiteCollections(System.IAsyncResult asyncResult) {
|
||||
public SharePointEnterpriseSiteCollection[] EndEnterprise_GetSiteCollections(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection[])(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -334,10 +334,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Enterprise_GetSiteCollection", 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 SharePointSiteCollection Enterprise_GetSiteCollection(int itemId) {
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollection(int itemId) {
|
||||
object[] results = this.Invoke("Enterprise_GetSiteCollection", new object[] {
|
||||
itemId});
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -347,9 +347,9 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection EndEnterprise_GetSiteCollection(System.IAsyncResult asyncResult) {
|
||||
public SharePointEnterpriseSiteCollection EndEnterprise_GetSiteCollection(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -376,11 +376,11 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Enterprise_GetSiteCollectionByDomain" +
|
||||
"", 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 SharePointSiteCollection Enterprise_GetSiteCollectionByDomain(int organizationId, string domain) {
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollectionByDomain(int organizationId, string domain) {
|
||||
object[] results = this.Invoke("Enterprise_GetSiteCollectionByDomain", new object[] {
|
||||
organizationId,
|
||||
domain});
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -391,9 +391,9 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection EndEnterprise_GetSiteCollectionByDomain(System.IAsyncResult asyncResult) {
|
||||
public SharePointEnterpriseSiteCollection EndEnterprise_GetSiteCollectionByDomain(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -420,14 +420,14 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Enterprise_AddSiteCollection", 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 int Enterprise_AddSiteCollection(SharePointSiteCollection item) {
|
||||
public int Enterprise_AddSiteCollection(SharePointEnterpriseSiteCollection item) {
|
||||
object[] results = this.Invoke("Enterprise_AddSiteCollection", new object[] {
|
||||
item});
|
||||
return ((int)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginEnterprise_AddSiteCollection(SharePointSiteCollection item, System.AsyncCallback callback, object asyncState) {
|
||||
public System.IAsyncResult BeginEnterprise_AddSiteCollection(SharePointEnterpriseSiteCollection item, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Enterprise_AddSiteCollection", new object[] {
|
||||
item}, callback, asyncState);
|
||||
}
|
||||
|
@ -439,12 +439,12 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_AddSiteCollectionAsync(SharePointSiteCollection item) {
|
||||
public void Enterprise_AddSiteCollectionAsync(SharePointEnterpriseSiteCollection item) {
|
||||
this.Enterprise_AddSiteCollectionAsync(item, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_AddSiteCollectionAsync(SharePointSiteCollection item, object userState) {
|
||||
public void Enterprise_AddSiteCollectionAsync(SharePointEnterpriseSiteCollection item, object userState) {
|
||||
if ((this.Enterprise_AddSiteCollectionOperationCompleted == null)) {
|
||||
this.Enterprise_AddSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnterprise_AddSiteCollectionOperationCompleted);
|
||||
}
|
||||
|
@ -745,11 +745,11 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/Enterprise_CalculateSharePointSitesD" +
|
||||
"iskSpace", 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 SharePointSiteDiskSpace[] Enterprise_CalculateSharePointSitesDiskSpace(int itemId, out int errorCode) {
|
||||
public SharePointEnterpriseSiteDiskSpace[] Enterprise_CalculateSharePointSitesDiskSpace(int itemId, out int errorCode) {
|
||||
object[] results = this.Invoke("Enterprise_CalculateSharePointSitesDiskSpace", new object[] {
|
||||
itemId});
|
||||
errorCode = ((int)(results[1]));
|
||||
return ((SharePointSiteDiskSpace[])(results[0]));
|
||||
return ((SharePointEnterpriseSiteDiskSpace[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -759,10 +759,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteDiskSpace[] EndEnterprise_CalculateSharePointSitesDiskSpace(System.IAsyncResult asyncResult, out int errorCode) {
|
||||
public SharePointEnterpriseSiteDiskSpace[] EndEnterprise_CalculateSharePointSitesDiskSpace(System.IAsyncResult asyncResult, out int errorCode) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
errorCode = ((int)(results[1]));
|
||||
return ((SharePointSiteDiskSpace[])(results[0]));
|
||||
return ((SharePointEnterpriseSiteDiskSpace[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -858,10 +858,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollectionListPaged Result {
|
||||
public SharePointEnterpriseSiteCollectionListPaged Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollectionListPaged)(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteCollectionListPaged)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -910,10 +910,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection[] Result {
|
||||
public SharePointEnterpriseSiteCollection[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection[])(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -962,10 +962,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection Result {
|
||||
public SharePointEnterpriseSiteCollection Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection)(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -988,10 +988,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection Result {
|
||||
public SharePointEnterpriseSiteCollection Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection)(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1196,10 +1196,10 @@ namespace WebsitePanel.EnterpriseServer {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteDiskSpace[] Result {
|
||||
public SharePointEnterpriseSiteDiskSpace[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteDiskSpace[])(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteDiskSpace[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -990,7 +990,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
if (cntxTmp.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer))
|
||||
{
|
||||
SharePointSiteCollectionListPaged sharePointStats = HostedSharePointServerEntController.GetSiteCollectionsPaged(org.PackageId, org.Id, string.Empty, string.Empty, string.Empty, 0, 0);
|
||||
SharePointEnterpriseSiteCollectionListPaged sharePointStats = HostedSharePointServerEntController.GetSiteCollectionsPaged(org.PackageId, org.Id, string.Empty, string.Empty, string.Empty, 0, 0);
|
||||
stats.CreatedSharePointEnterpriseSiteCollections = sharePointStats.TotalRowCount;
|
||||
}
|
||||
|
||||
|
|
|
@ -464,7 +464,7 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
|||
|
||||
private static void PopulateSharePointEnterpriseItem(Organization org, EnterpriseSolutionStatisticsReport report, string topReseller)
|
||||
{
|
||||
List<SharePointSiteCollection> siteCollections;
|
||||
List<SharePointEnterpriseSiteCollection> siteCollections;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -491,7 +491,7 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
|||
string.Format("Could not get sharepoint enterprise server. PackageId: {0}", org.PackageId), ex);
|
||||
}
|
||||
|
||||
foreach (SharePointSiteCollection siteCollection in siteCollections)
|
||||
foreach (SharePointEnterpriseSiteCollection siteCollection in siteCollections)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
@ -58,24 +58,24 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
/// <param name="startRow">Row index to start from.</param>
|
||||
/// <param name="maximumRows">Maximum number of rows to retrieve.</param>
|
||||
/// <returns>Site collections that match.</returns>
|
||||
public static SharePointSiteCollectionListPaged GetSiteCollectionsPaged(int packageId, int organizationId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
|
||||
public static SharePointEnterpriseSiteCollectionListPaged GetSiteCollectionsPaged(int packageId, int organizationId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
|
||||
{
|
||||
if (IsDemoMode)
|
||||
{
|
||||
SharePointSiteCollectionListPaged demoResult = new SharePointSiteCollectionListPaged();
|
||||
SharePointEnterpriseSiteCollectionListPaged demoResult = new SharePointEnterpriseSiteCollectionListPaged();
|
||||
demoResult.SiteCollections = GetSiteCollections(1, false);
|
||||
demoResult.TotalRowCount = demoResult.SiteCollections.Count;
|
||||
return demoResult;
|
||||
}
|
||||
|
||||
SharePointSiteCollectionListPaged paged = new SharePointSiteCollectionListPaged();
|
||||
DataSet result = PackageController.GetRawPackageItemsPaged(packageId, "Sharepoint Enterprise Server", typeof(SharePointSiteCollection),
|
||||
SharePointEnterpriseSiteCollectionListPaged paged = new SharePointEnterpriseSiteCollectionListPaged();
|
||||
DataSet result = PackageController.GetRawPackageItemsPaged(packageId, "Sharepoint Enterprise Server", typeof(SharePointEnterpriseSiteCollection),
|
||||
true, filterColumn, filterValue, sortColumn, startRow, Int32.MaxValue);
|
||||
List<SharePointSiteCollection> items = PackageController.CreateServiceItemsList(result, 1).ConvertAll<SharePointSiteCollection>(delegate(ServiceProviderItem item) { return (SharePointSiteCollection)item; });
|
||||
List<SharePointEnterpriseSiteCollection> items = PackageController.CreateServiceItemsList(result, 1).ConvertAll<SharePointEnterpriseSiteCollection>(delegate(ServiceProviderItem item) { return (SharePointEnterpriseSiteCollection)item; });
|
||||
|
||||
if (organizationId > 0)
|
||||
{
|
||||
items = items.FindAll(delegate(SharePointSiteCollection siteCollection) { return siteCollection.OrganizationId == organizationId; });
|
||||
items = items.FindAll(delegate(SharePointEnterpriseSiteCollection siteCollection) { return siteCollection.OrganizationId == organizationId; });
|
||||
}
|
||||
paged.TotalRowCount = items.Count;
|
||||
|
||||
|
@ -89,16 +89,16 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
return paged;
|
||||
}
|
||||
|
||||
public static List<SharePointSiteCollection> GetSiteCollections(int organizationId)
|
||||
public static List<SharePointEnterpriseSiteCollection> GetSiteCollections(int organizationId)
|
||||
{
|
||||
Organization org = OrganizationController.GetOrganization(organizationId);
|
||||
|
||||
List<ServiceProviderItem> items = PackageController.GetPackageItemsByType(org.PackageId, typeof(SharePointSiteCollection), false);
|
||||
items.ConvertAll<SharePointSiteCollection>(delegate(ServiceProviderItem item) { return (SharePointSiteCollection)item; });
|
||||
List<SharePointSiteCollection> ret = new List<SharePointSiteCollection>();
|
||||
List<ServiceProviderItem> items = PackageController.GetPackageItemsByType(org.PackageId, typeof(SharePointEnterpriseSiteCollection), false);
|
||||
items.ConvertAll<SharePointEnterpriseSiteCollection>(delegate(ServiceProviderItem item) { return (SharePointEnterpriseSiteCollection)item; });
|
||||
List<SharePointEnterpriseSiteCollection> ret = new List<SharePointEnterpriseSiteCollection>();
|
||||
foreach (ServiceProviderItem item in items)
|
||||
{
|
||||
SharePointSiteCollection siteCollection = item as SharePointSiteCollection;
|
||||
SharePointEnterpriseSiteCollection siteCollection = item as SharePointEnterpriseSiteCollection;
|
||||
if (siteCollection != null && siteCollection.OrganizationId == organizationId)
|
||||
{
|
||||
ret.Add(siteCollection);
|
||||
|
@ -150,12 +150,12 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
/// <param name="packageId">Package that owns site collections.</param>
|
||||
/// <param name="recursive">A value which shows whether nested spaces must be searched as well.</param>
|
||||
/// <returns>List of found site collections.</returns>
|
||||
public static List<SharePointSiteCollection> GetSiteCollections(int packageId, bool recursive)
|
||||
public static List<SharePointEnterpriseSiteCollection> GetSiteCollections(int packageId, bool recursive)
|
||||
{
|
||||
if (IsDemoMode)
|
||||
{
|
||||
List<SharePointSiteCollection> demoResult = new List<SharePointSiteCollection>();
|
||||
SharePointSiteCollection siteCollection1 = new SharePointSiteCollection();
|
||||
List<SharePointEnterpriseSiteCollection> demoResult = new List<SharePointEnterpriseSiteCollection>();
|
||||
SharePointEnterpriseSiteCollection siteCollection1 = new SharePointEnterpriseSiteCollection();
|
||||
siteCollection1.Id = 1;
|
||||
siteCollection1.OrganizationId = 1;
|
||||
siteCollection1.LocaleId = 1033;
|
||||
|
@ -167,7 +167,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
siteCollection1.Title = "John Smith's Team Site";
|
||||
siteCollection1.Url = "http://john.fabrikam.com";
|
||||
demoResult.Add(siteCollection1);
|
||||
SharePointSiteCollection siteCollection2 = new SharePointSiteCollection();
|
||||
SharePointEnterpriseSiteCollection siteCollection2 = new SharePointEnterpriseSiteCollection();
|
||||
siteCollection2.Id = 2;
|
||||
siteCollection1.OrganizationId = 1;
|
||||
siteCollection2.LocaleId = 1033;
|
||||
|
@ -183,8 +183,8 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
|
||||
List<ServiceProviderItem> items = PackageController.GetPackageItemsByType(packageId, typeof(SharePointSiteCollection), recursive);
|
||||
return items.ConvertAll<SharePointSiteCollection>(delegate(ServiceProviderItem item) { return (SharePointSiteCollection)item; });
|
||||
List<ServiceProviderItem> items = PackageController.GetPackageItemsByType(packageId, typeof(SharePointEnterpriseSiteCollection), recursive);
|
||||
return items.ConvertAll<SharePointEnterpriseSiteCollection>(delegate(ServiceProviderItem item) { return (SharePointEnterpriseSiteCollection)item; });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -192,14 +192,14 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
/// </summary>
|
||||
/// <param name="itemId">Site collection id within metabase.</param>
|
||||
/// <returns>Site collection or null in case no such item exist.</returns>
|
||||
public static SharePointSiteCollection GetSiteCollection(int itemId)
|
||||
public static SharePointEnterpriseSiteCollection GetSiteCollection(int itemId)
|
||||
{
|
||||
if (IsDemoMode)
|
||||
{
|
||||
return GetSiteCollections(1, false)[itemId - 1];
|
||||
}
|
||||
|
||||
SharePointSiteCollection item = PackageController.GetPackageItem(itemId) as SharePointSiteCollection;
|
||||
SharePointEnterpriseSiteCollection item = PackageController.GetPackageItem(itemId) as SharePointEnterpriseSiteCollection;
|
||||
return item;
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
/// </summary>
|
||||
/// <param name="item">Site collection description.</param>
|
||||
/// <returns>Created site collection id within metabase.</returns>
|
||||
public static int AddSiteCollection(SharePointSiteCollection item)
|
||||
public static int AddSiteCollection(SharePointEnterpriseSiteCollection item)
|
||||
{
|
||||
|
||||
// Check account.
|
||||
|
@ -274,7 +274,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
item.Name = String.Format("{0}://{1}", rootWebApplicationUri.Scheme, hostNameBase + "-" + counter.ToString() + "." + sslRoot);
|
||||
siteName = String.Format("{0}", hostNameBase + "-" + counter.ToString() + "." + sslRoot);
|
||||
|
||||
while (DataProvider.CheckServiceItemExists(serviceId, item.Name, "WebsitePanel. Providers. SharePoint. SharePointSiteCollection, WebsitePanel. Providers. Base"))
|
||||
while (DataProvider.CheckServiceItemExists(serviceId, item.Name, "WebsitePanel.Providers.SharePoint.SharePointEnterpriseSiteCollection, WebsitePanel.Providers.Base"))
|
||||
{
|
||||
counter++;
|
||||
item.Name = String.Format("{0}://{1}", rootWebApplicationUri.Scheme, hostNameBase + "-" + counter.ToString() + "." + sslRoot);
|
||||
|
@ -304,7 +304,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
|
||||
|
||||
// Check package item with given name already exists.
|
||||
if (PackageController.GetPackageItemByName(item.PackageId, item.Name, typeof(SharePointSiteCollection)) != null)
|
||||
if (PackageController.GetPackageItemByName(item.PackageId, item.Name, typeof(SharePointEnterpriseSiteCollection)) != null)
|
||||
{
|
||||
return BusinessErrorCodes.ERROR_SHAREPOINT_PACKAGE_ITEM_EXISTS;
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
// Load original meta item
|
||||
SharePointSiteCollection origItem = (SharePointSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
SharePointEnterpriseSiteCollection origItem = (SharePointEnterpriseSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
if (origItem == null)
|
||||
{
|
||||
return BusinessErrorCodes.ERROR_SHAREPOINT_PACKAGE_ITEM_NOT_FOUND;
|
||||
|
@ -427,8 +427,8 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
public static void DeleteSiteCollections(int organizationId)
|
||||
{
|
||||
Organization org = OrganizationController.GetOrganization(organizationId);
|
||||
SharePointSiteCollectionListPaged existentSiteCollections = GetSiteCollectionsPaged(org.PackageId, org.Id, String.Empty, String.Empty, String.Empty, 0, Int32.MaxValue);
|
||||
foreach (SharePointSiteCollection existentSiteCollection in existentSiteCollections.SiteCollections)
|
||||
SharePointEnterpriseSiteCollectionListPaged existentSiteCollections = GetSiteCollectionsPaged(org.PackageId, org.Id, String.Empty, String.Empty, String.Empty, 0, Int32.MaxValue);
|
||||
foreach (SharePointEnterpriseSiteCollection existentSiteCollection in existentSiteCollections.SiteCollections)
|
||||
{
|
||||
DeleteSiteCollection(existentSiteCollection.Id);
|
||||
}
|
||||
|
@ -453,7 +453,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
// Load original meta item
|
||||
SharePointSiteCollection origItem = (SharePointSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
SharePointEnterpriseSiteCollection origItem = (SharePointEnterpriseSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
if (origItem == null)
|
||||
{
|
||||
return null;
|
||||
|
@ -536,7 +536,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
// Load original meta item.
|
||||
SharePointSiteCollection origItem = (SharePointSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
SharePointEnterpriseSiteCollection origItem = (SharePointEnterpriseSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
if (origItem == null)
|
||||
{
|
||||
return BusinessErrorCodes.ERROR_SHAREPOINT_PACKAGE_ITEM_NOT_FOUND;
|
||||
|
@ -617,7 +617,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
public static byte[] GetBackupBinaryChunk(int itemId, string path, int offset, int length)
|
||||
{
|
||||
// Load original meta item.
|
||||
SharePointSiteCollection item = (SharePointSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
SharePointEnterpriseSiteCollection item = (SharePointEnterpriseSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
if (item == null)
|
||||
{
|
||||
return null;
|
||||
|
@ -638,7 +638,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
public static string AppendBackupBinaryChunk(int itemId, string fileName, string path, byte[] chunk)
|
||||
{
|
||||
// Load original meta item.
|
||||
SharePointSiteCollection item = (SharePointSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
SharePointEnterpriseSiteCollection item = (SharePointEnterpriseSiteCollection)PackageController.GetPackageItem(itemId);
|
||||
if (item == null)
|
||||
{
|
||||
return null;
|
||||
|
@ -681,9 +681,9 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(serviceId);
|
||||
if (itemType == typeof(SharePointSiteCollection))
|
||||
if (itemType == typeof(SharePointEnterpriseSiteCollection))
|
||||
{
|
||||
foreach (SharePointSiteCollection siteCollection in hostedSharePointServer.Enterprise_GetSiteCollections())
|
||||
foreach (SharePointEnterpriseSiteCollection siteCollection in hostedSharePointServer.Enterprise_GetSiteCollections())
|
||||
{
|
||||
items.Add(siteCollection.Url);
|
||||
}
|
||||
|
@ -710,9 +710,9 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(serviceId);
|
||||
if (itemType == typeof(SharePointSiteCollection))
|
||||
if (itemType == typeof(SharePointEnterpriseSiteCollection))
|
||||
{
|
||||
SharePointSiteCollection siteCollection = hostedSharePointServer.Enterprise_GetSiteCollection(itemName);
|
||||
SharePointEnterpriseSiteCollection siteCollection = hostedSharePointServer.Enterprise_GetSiteCollection(itemName);
|
||||
PackageController.AddPackageItem(siteCollection);
|
||||
}
|
||||
}
|
||||
|
@ -727,11 +727,11 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
/// <returns>Resulting code.</returns>
|
||||
public int BackupItem(string tempFolder, XmlWriter writer, ServiceProviderItem item, ResourceGroupInfo group)
|
||||
{
|
||||
SharePointSiteCollection siteCollection = item as SharePointSiteCollection;
|
||||
SharePointEnterpriseSiteCollection siteCollection = item as SharePointEnterpriseSiteCollection;
|
||||
if (siteCollection != null)
|
||||
{
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(siteCollection.ServiceId);
|
||||
SharePointSiteCollection loadedSiteCollection = hostedSharePointServer.Enterprise_GetSiteCollection(siteCollection.Url);
|
||||
SharePointEnterpriseSiteCollection loadedSiteCollection = hostedSharePointServer.Enterprise_GetSiteCollection(siteCollection.Url);
|
||||
// Update item
|
||||
siteCollection.Url = loadedSiteCollection.Url;
|
||||
siteCollection.OwnerLogin = loadedSiteCollection.OwnerLogin;
|
||||
|
@ -741,7 +741,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
siteCollection.Title = loadedSiteCollection.Title;
|
||||
siteCollection.Description = loadedSiteCollection.Description;
|
||||
// Serialize it.
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(SharePointSiteCollection));
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(SharePointEnterpriseSiteCollection));
|
||||
serializer.Serialize(writer, siteCollection);
|
||||
|
||||
}
|
||||
|
@ -762,12 +762,12 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
/// <returns>Resulting code.</returns>
|
||||
public int RestoreItem(string tempFolder, XmlNode itemNode, int itemId, Type itemType, string itemName, int packageId, int serviceId, ResourceGroupInfo group)
|
||||
{
|
||||
if (itemType == typeof(SharePointSiteCollection))
|
||||
if (itemType == typeof(SharePointEnterpriseSiteCollection))
|
||||
{
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(serviceId);
|
||||
// Deserialize item.
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(SharePointSiteCollection));
|
||||
SharePointSiteCollection siteCollection = (SharePointSiteCollection)serializer.Deserialize(new XmlNodeReader(itemNode.SelectSingleNode("SharePointSiteCollection")));
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(SharePointEnterpriseSiteCollection));
|
||||
SharePointEnterpriseSiteCollection siteCollection = (SharePointEnterpriseSiteCollection)serializer.Deserialize(new XmlNodeReader(itemNode.SelectSingleNode("SharePointEnterpriseSiteCollection")));
|
||||
siteCollection.PackageId = packageId;
|
||||
siteCollection.ServiceId = serviceId;
|
||||
|
||||
|
@ -778,7 +778,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
}
|
||||
|
||||
// Add metabase record if needed.
|
||||
SharePointSiteCollection metaSiteCollection = (SharePointSiteCollection)PackageController.GetPackageItemByName(packageId, itemName, typeof(SharePointSiteCollection));
|
||||
SharePointEnterpriseSiteCollection metaSiteCollection = (SharePointEnterpriseSiteCollection)PackageController.GetPackageItemByName(packageId, itemName, typeof(SharePointEnterpriseSiteCollection));
|
||||
if (metaSiteCollection == null)
|
||||
{
|
||||
PackageController.AddPackageItem(siteCollection);
|
||||
|
@ -794,11 +794,11 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
return PackageController.GetPackageServiceId(packageId, ResourceGroups.SharepointEnterpriseServer);
|
||||
}
|
||||
|
||||
private static List<SharePointSiteCollection> GetOrganizationSharePointSiteCollections(int orgId)
|
||||
private static List<SharePointEnterpriseSiteCollection> GetOrganizationSharePointEnterpriseSiteCollections(int orgId)
|
||||
{
|
||||
Organization org = OrganizationController.GetOrganization(orgId);
|
||||
|
||||
SharePointSiteCollectionListPaged siteCollections = GetSiteCollectionsPaged(org.PackageId, org.Id, String.Empty, String.Empty, String.Empty, 0, Int32.MaxValue);
|
||||
SharePointEnterpriseSiteCollectionListPaged siteCollections = GetSiteCollectionsPaged(org.PackageId, org.Id, String.Empty, String.Empty, String.Empty, 0, Int32.MaxValue);
|
||||
return siteCollections.SiteCollections;
|
||||
}
|
||||
|
||||
|
@ -873,15 +873,15 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(serviceId);
|
||||
|
||||
List<SharePointSiteCollection> currentOrgSiteCollection =
|
||||
GetOrganizationSharePointSiteCollections(org.Id);
|
||||
List<SharePointEnterpriseSiteCollection> currentOrgSiteCollection =
|
||||
GetOrganizationSharePointEnterpriseSiteCollections(org.Id);
|
||||
|
||||
|
||||
foreach (SharePointSiteCollection siteCollection in currentOrgSiteCollection)
|
||||
foreach (SharePointEnterpriseSiteCollection siteCollection in currentOrgSiteCollection)
|
||||
{
|
||||
try
|
||||
{
|
||||
SharePointSiteCollection sc = GetSiteCollection(siteCollection.Id);
|
||||
SharePointEnterpriseSiteCollection sc = GetSiteCollection(siteCollection.Id);
|
||||
sc.MaxSiteStorage = realMaxSizeValue;
|
||||
sc.WarningStorage = realMaxSizeValue == -1 ? -1 : warningStorage;
|
||||
PackageController.UpdatePackageItem(sc);
|
||||
|
@ -933,11 +933,11 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(serviceId);
|
||||
|
||||
List<SharePointSiteCollection> currentOrgSiteCollection =
|
||||
GetOrganizationSharePointSiteCollections(org.Id);
|
||||
List<SharePointEnterpriseSiteCollection> currentOrgSiteCollection =
|
||||
GetOrganizationSharePointEnterpriseSiteCollections(org.Id);
|
||||
|
||||
List<string> urls = new List<string>();
|
||||
foreach (SharePointSiteCollection siteCollection in currentOrgSiteCollection)
|
||||
foreach (SharePointEnterpriseSiteCollection siteCollection in currentOrgSiteCollection)
|
||||
{
|
||||
urls.Add(siteCollection.PhysicalAddress);
|
||||
}
|
||||
|
@ -981,7 +981,7 @@ namespace WebsitePanel.EnterpriseServer.Code.SharePoint
|
|||
|
||||
HostedSharePointServerEnt hostedSharePointServer = GetHostedSharePointServer(serviceId);
|
||||
|
||||
SharePointSiteCollection sc = GetSiteCollection(siteCollectionId);
|
||||
SharePointEnterpriseSiteCollection sc = GetSiteCollection(siteCollectionId);
|
||||
|
||||
int maxSize = RecalculateMaxSize(org.MaxSharePointEnterpriseStorage, maxStorage);
|
||||
int warningSize = warningStorage;
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
/// <param name="groupName">Resource group name.</param>
|
||||
/// <returns>Site collections in raw format.</returns>
|
||||
[WebMethod]
|
||||
public SharePointSiteCollectionListPaged Enterprise_GetSiteCollectionsPaged(int packageId, int organizationId,
|
||||
public SharePointEnterpriseSiteCollectionListPaged Enterprise_GetSiteCollectionsPaged(int packageId, int organizationId,
|
||||
string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
|
||||
{
|
||||
return HostedSharePointServerEntController.GetSiteCollectionsPaged(packageId, organizationId, filterColumn, filterValue,
|
||||
|
@ -83,7 +83,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
/// <param name="groupName">Resource group name.</param>
|
||||
/// <returns>List of found site collections.</returns>
|
||||
[WebMethod]
|
||||
public List<SharePointSiteCollection> Enterprise_GetSiteCollections(int packageId, bool recursive)
|
||||
public List<SharePointEnterpriseSiteCollection> Enterprise_GetSiteCollections(int packageId, bool recursive)
|
||||
{
|
||||
return HostedSharePointServerEntController.GetSiteCollections(packageId, recursive);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
/// <param name="itemId">Site collection id within metabase.</param>
|
||||
/// <returns>Site collection.</returns>
|
||||
[WebMethod]
|
||||
public SharePointSiteCollection Enterprise_GetSiteCollection(int itemId)
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollection(int itemId)
|
||||
{
|
||||
return HostedSharePointServerEntController.GetSiteCollection(itemId);
|
||||
}
|
||||
|
@ -113,11 +113,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
/// <param name="domain">Domain name.</param>
|
||||
/// <returns>SharePoint site collection or null.</returns>
|
||||
[WebMethod]
|
||||
public SharePointSiteCollection Enterprise_GetSiteCollectionByDomain(int organizationId, string domain)
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollectionByDomain(int organizationId, string domain)
|
||||
{
|
||||
DomainInfo domainInfo = ServerController.GetDomain(domain);
|
||||
SharePointSiteCollectionListPaged existentSiteCollections = this.Enterprise_GetSiteCollectionsPaged(domainInfo.PackageId, organizationId, "ItemName", String.Format("%{0}", domain), String.Empty, 0, Int32.MaxValue);
|
||||
foreach (SharePointSiteCollection existentSiteCollection in existentSiteCollections.SiteCollections)
|
||||
SharePointEnterpriseSiteCollectionListPaged existentSiteCollections = this.Enterprise_GetSiteCollectionsPaged(domainInfo.PackageId, organizationId, "ItemName", String.Format("%{0}", domain), String.Empty, 0, Int32.MaxValue);
|
||||
foreach (SharePointEnterpriseSiteCollection existentSiteCollection in existentSiteCollections.SiteCollections)
|
||||
{
|
||||
Uri existentSiteCollectionUri = new Uri(existentSiteCollection.Name);
|
||||
if (existentSiteCollection.Name == String.Format("{0}://{1}", existentSiteCollectionUri.Scheme, domain))
|
||||
|
@ -133,10 +133,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
/// Adds SharePoint site collection.
|
||||
/// </summary>
|
||||
/// <param name="item">Site collection description.</param>
|
||||
/// <param name="groupName">Resource group name.</param>
|
||||
/// <returns>Created site collection id within metabase.</returns>
|
||||
[WebMethod]
|
||||
public int Enterprise_AddSiteCollection(SharePointSiteCollection item)
|
||||
public int Enterprise_AddSiteCollection(SharePointEnterpriseSiteCollection item)
|
||||
{
|
||||
return HostedSharePointServerEntController.AddSiteCollection(item);
|
||||
}
|
||||
|
|
|
@ -83,6 +83,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
set { warningSharePointStorage = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int MaxSharePointEnterpriseStorage
|
||||
{
|
||||
get { return maxSharePointEnterpriseStorage; }
|
||||
|
|
|
@ -54,26 +54,26 @@ namespace WebsitePanel.Providers.SharePoint
|
|||
/// When implemented gets list of SharePoint collections within root web application.
|
||||
/// </summary>
|
||||
/// <returns>List of SharePoint collections within root web application.</returns>
|
||||
SharePointSiteCollection[] Enterprise_GetSiteCollections();
|
||||
SharePointEnterpriseSiteCollection[] Enterprise_GetSiteCollections();
|
||||
|
||||
/// <summary>
|
||||
/// When implemented gets SharePoint collection within root web application with given name.
|
||||
/// </summary>
|
||||
/// <param name="url">Url that uniquely identifies site collection to be loaded.</param>
|
||||
/// <returns>SharePoint collection within root web application with given name.</returns>
|
||||
SharePointSiteCollection Enterprise_GetSiteCollection(string url);
|
||||
SharePointEnterpriseSiteCollection Enterprise_GetSiteCollection(string url);
|
||||
|
||||
/// <summary>
|
||||
/// When implemented creates site collection within predefined root web application.
|
||||
/// </summary>
|
||||
/// <param name="siteCollection">Information about site coolection to be created.</param>
|
||||
void Enterprise_CreateSiteCollection(SharePointSiteCollection siteCollection);
|
||||
void Enterprise_CreateSiteCollection(SharePointEnterpriseSiteCollection siteCollection);
|
||||
|
||||
/// <summary>
|
||||
/// When implemented deletes site collection under given url.
|
||||
/// </summary>
|
||||
/// <param name="url">Url that uniquely identifies site collection to be deleted.</param>
|
||||
void Enterprise_DeleteSiteCollection(SharePointSiteCollection siteCollection);
|
||||
void Enterprise_DeleteSiteCollection(SharePointEnterpriseSiteCollection siteCollection);
|
||||
|
||||
/// <summary>
|
||||
/// When implemeneted backups site collection under give url.
|
||||
|
@ -89,7 +89,7 @@ namespace WebsitePanel.Providers.SharePoint
|
|||
/// </summary>
|
||||
/// <param name="siteCollection">Site collection to be restored.</param>
|
||||
/// <param name="filename">Backup file name to restore from.</param>
|
||||
void Enterprise_RestoreSiteCollection(SharePointSiteCollection siteCollection, string filename);
|
||||
void Enterprise_RestoreSiteCollection(SharePointEnterpriseSiteCollection siteCollection, string filename);
|
||||
|
||||
/// <summary>
|
||||
/// When implemented gets binary data chunk of specified size from specified offset.
|
||||
|
|
|
@ -0,0 +1,298 @@
|
|||
// Copyright (c) 2015, 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.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.SharePoint
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents SharePoint site collection information.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class SharePointEnterpriseSiteCollection : ServiceProviderItem
|
||||
{
|
||||
private int organizationId;
|
||||
private string url;
|
||||
private string physicalAddress;
|
||||
private string ownerLogin;
|
||||
private string ownerName;
|
||||
private string ownerEmail;
|
||||
private int localeId;
|
||||
private string title;
|
||||
private string description;
|
||||
private long bandwidth;
|
||||
private long diskspace;
|
||||
private long maxSiteStorage;
|
||||
private long warningStorage;
|
||||
private string rootWebApplicationInteralIpAddress;
|
||||
private string rootWebApplicationFQDN;
|
||||
|
||||
|
||||
|
||||
[Persistent]
|
||||
public long MaxSiteStorage
|
||||
{
|
||||
get { return maxSiteStorage; }
|
||||
set { maxSiteStorage = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public long WarningStorage
|
||||
{
|
||||
get { return warningStorage; }
|
||||
set { warningStorage = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets service item name.
|
||||
/// </summary>
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.Url;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.Url = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets id of organization which owns this site collection.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public int OrganizationId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.organizationId;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.organizationId = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets url of the host named site collection to be created. It must not contain port number.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string Url
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.url;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.url = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets physical address of the host named site collection. It contains scheme and port number.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string PhysicalAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.physicalAddress;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.physicalAddress = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets login name of the site collection's owner/primary site administrator.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string OwnerLogin
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ownerLogin;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ownerLogin = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets display name of the site collection's owner/primary site administrator.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string OwnerName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ownerName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ownerName = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets display email of the site collection's owner/primary site administrator.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string OwnerEmail
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.ownerEmail;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.ownerEmail = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the internal ip address
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string RootWebApplicationInteralIpAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.rootWebApplicationInteralIpAddress;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.rootWebApplicationInteralIpAddress = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the internal ip address
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string RootWebApplicationFQDN
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.rootWebApplicationFQDN;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.rootWebApplicationFQDN = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets locale id of the site collection to be created.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public int LocaleId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.localeId;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.localeId = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets title of the the site collection to be created.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string Title
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.title;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.title = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets description of the the site collection to be created.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.description;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.description = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets bandwidth of the the site collection.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public long Bandwidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.bandwidth;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.bandwidth = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets diskspace of the the site collection.
|
||||
/// </summary>
|
||||
[Persistent]
|
||||
public long Diskspace
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.diskspace;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.diskspace = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
// Copyright (c) 2015, 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.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.SharePoint
|
||||
{
|
||||
[Serializable]
|
||||
public class SharePointEnterpriseSiteCollectionListPaged
|
||||
{
|
||||
private int totalRowCount;
|
||||
private List<SharePointEnterpriseSiteCollection> siteCollections;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets total row count in persistent storage.
|
||||
/// </summary>
|
||||
public int TotalRowCount
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.totalRowCount;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.totalRowCount = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets list of site collections on a single page.
|
||||
/// </summary>
|
||||
public List<SharePointEnterpriseSiteCollection> SiteCollections
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.siteCollections;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.siteCollections = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
// Copyright (c) 2015, 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;
|
||||
|
||||
namespace WebsitePanel.Providers.SharePoint
|
||||
{
|
||||
[Serializable]
|
||||
public class SharePointEnterpriseSiteDiskSpace
|
||||
{
|
||||
private string url;
|
||||
private long diskSpace;
|
||||
|
||||
|
||||
public string Url
|
||||
{
|
||||
get { return url; }
|
||||
set { url = value; }
|
||||
}
|
||||
|
||||
public long DiskSpace
|
||||
{
|
||||
get { return diskSpace; }
|
||||
set { diskSpace = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -123,7 +123,7 @@
|
|||
<Compile Include="HostedSolution\OrganizationDeletedUser.cs" />
|
||||
<Compile Include="HostedSolution\OrganizationDeletedUsersPaged.cs" />
|
||||
<Compile Include="HostedSolution\SharePointEnterpriseStatisticsReport.cs" />
|
||||
<Compile Include="HostedSolution\SharePointStatisticsEnterprise.cs" />
|
||||
<Compile Include="HostedSolution\SharePointEntetpriseStatistics.cs" />
|
||||
<Compile Include="HostedSolution\TransactionAction.cs" />
|
||||
<Compile Include="OS\MappedDrivesPaged.cs" />
|
||||
<Compile Include="OS\MappedDrive.cs" />
|
||||
|
@ -286,8 +286,11 @@
|
|||
<Compile Include="SharePoint\IHostedSharePointServer.cs" />
|
||||
<Compile Include="SharePoint\ISharePointServer.cs" />
|
||||
<Compile Include="SharePoint\SharePointSite.cs" />
|
||||
<Compile Include="SharePoint\SharePointEnterpriseSiteCollection.cs" />
|
||||
<Compile Include="SharePoint\SharePointSiteCollection.cs" />
|
||||
<Compile Include="SharePoint\SharePointEnterpriseSiteCollectionListPaged.cs" />
|
||||
<Compile Include="SharePoint\SharePointSiteCollectionListPaged.cs" />
|
||||
<Compile Include="SharePoint\SharePointEnterpriseSiteDiskSpace.cs" />
|
||||
<Compile Include="SharePoint\SharePointSiteDiskSpace.cs" />
|
||||
<Compile Include="Statistics\IStatisticsServer.cs" />
|
||||
<Compile Include="Statistics\StatsServer.cs" />
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
/// <summary>Gets list of SharePoint collections within root web application.</summary>
|
||||
/// <returns>List of SharePoint collections within root web application.</returns>
|
||||
public SharePointSiteCollection[] Enterprise_GetSiteCollections()
|
||||
public SharePointEnterpriseSiteCollection[] Enterprise_GetSiteCollections()
|
||||
{
|
||||
return ExecuteSharePointAction(impl => impl.GetSiteCollections(Enterprise_RootWebApplicationUri));
|
||||
}
|
||||
|
@ -102,14 +102,14 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <summary>Gets SharePoint collection within root web application with given name.</summary>
|
||||
/// <param name="url">Url that uniquely identifies site collection to be loaded.</param>
|
||||
/// <returns>SharePoint collection within root web application with given name.</returns>
|
||||
public SharePointSiteCollection Enterprise_GetSiteCollection(string url)
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollection(string url)
|
||||
{
|
||||
return ExecuteSharePointAction(impl => impl.GetSiteCollection(Enterprise_RootWebApplicationUri, url));
|
||||
}
|
||||
|
||||
/// <summary>Creates site collection within predefined root web application.</summary>
|
||||
/// <param name="siteCollection">Information about site coolection to be created.</param>
|
||||
public void Enterprise_CreateSiteCollection(SharePointSiteCollection siteCollection)
|
||||
public void Enterprise_CreateSiteCollection(SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
ExecuteSharePointAction<object>(delegate(HostedSharePointServer2013EntImpl impl)
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
/// <summary>Deletes site collection under given url.</summary>
|
||||
/// <param name="siteCollection">The site collection to be deleted.</param>
|
||||
public void Enterprise_DeleteSiteCollection(SharePointSiteCollection siteCollection)
|
||||
public void Enterprise_DeleteSiteCollection(SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
ExecuteSharePointAction<object>(delegate(HostedSharePointServer2013EntImpl impl)
|
||||
{
|
||||
|
@ -142,7 +142,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <summary>Restores site collection under given url from backup.</summary>
|
||||
/// <param name="siteCollection">Site collection to be restored.</param>
|
||||
/// <param name="filename">Backup file name to restore from.</param>
|
||||
public void Enterprise_RestoreSiteCollection(SharePointSiteCollection siteCollection, string filename)
|
||||
public void Enterprise_RestoreSiteCollection(SharePointEnterpriseSiteCollection siteCollection, string filename)
|
||||
{
|
||||
ExecuteSharePointAction<object>(delegate(HostedSharePointServer2013EntImpl impl)
|
||||
{
|
||||
|
@ -229,13 +229,13 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
{
|
||||
foreach (ServiceProviderItem item in items)
|
||||
{
|
||||
var sharePointSiteCollection = item as SharePointSiteCollection;
|
||||
var SharePointEnterpriseSiteCollection = item as SharePointEnterpriseSiteCollection;
|
||||
|
||||
if (sharePointSiteCollection != null)
|
||||
if (SharePointEnterpriseSiteCollection != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
Enterprise_DeleteSiteCollection(sharePointSiteCollection);
|
||||
Enterprise_DeleteSiteCollection(SharePointEnterpriseSiteCollection);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -254,13 +254,13 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
foreach (ServiceProviderItem item in items)
|
||||
{
|
||||
if (item is SharePointSiteCollection)
|
||||
if (item is SharePointEnterpriseSiteCollection)
|
||||
{
|
||||
try
|
||||
{
|
||||
Log.WriteStart(String.Format("Calculating '{0}' site logs size", item.Name));
|
||||
|
||||
SharePointSiteCollection site = Enterprise_GetSiteCollection(item.Name);
|
||||
SharePointEnterpriseSiteCollection site = Enterprise_GetSiteCollection(item.Name);
|
||||
var diskspace = new ServiceProviderItemDiskSpace { ItemId = item.Id, DiskSpace = site.Diskspace };
|
||||
itemsDiskspace.Add(diskspace);
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <summary>Gets list of SharePoint collections within root web application.</summary>
|
||||
/// <param name="rootWebApplicationUri"> The root web application Uri. </param>
|
||||
/// <returns>List of SharePoint collections within root web application.</returns>
|
||||
public SharePointSiteCollection[] GetSiteCollections(Uri rootWebApplicationUri)
|
||||
public SharePointEnterpriseSiteCollection[] GetSiteCollections(Uri rootWebApplicationUri)
|
||||
{
|
||||
return GetSPSiteCollections(rootWebApplicationUri).Select(pair => NewSiteCollection(pair.Value)).ToArray();
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <param name="rootWebApplicationUri">Root web application uri.</param>
|
||||
/// <param name="url">Url that uniquely identifies site collection to be loaded.</param>
|
||||
/// <returns>SharePoint collection within root web application with given name.</returns>
|
||||
public SharePointSiteCollection GetSiteCollection(Uri rootWebApplicationUri, string url)
|
||||
public SharePointEnterpriseSiteCollection GetSiteCollection(Uri rootWebApplicationUri, string url)
|
||||
{
|
||||
return NewSiteCollection(GetSPSiteCollection(rootWebApplicationUri, url));
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <param name="rootWebApplicationUri">Root web application uri.</param>
|
||||
/// <param name="siteCollection">Information about site coolection to be created.</param>
|
||||
/// <exception cref="InvalidOperationException">Is thrown in case requested operation fails for any reason.</exception>
|
||||
public void CreateSiteCollection(Uri rootWebApplicationUri, SharePointSiteCollection siteCollection)
|
||||
public void CreateSiteCollection(Uri rootWebApplicationUri, SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
HostedSolutionLog.LogStart("CreateSiteCollection");
|
||||
WindowsImpersonationContext wic = null;
|
||||
|
@ -298,7 +298,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <param name="rootWebApplicationUri">Root web application uri.</param>
|
||||
/// <param name="siteCollection">Information about site coolection to be created.</param>
|
||||
/// <exception cref="InvalidOperationException">Is thrown in case requested operation fails for any reason.</exception>
|
||||
private void CreateCollection(Runspace runspace, Uri rootWebApplicationUri, SharePointSiteCollection siteCollection)
|
||||
private void CreateCollection(Runspace runspace, Uri rootWebApplicationUri, SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
string siteCollectionUrl = String.Format("{0}:{1}", siteCollection.Url, rootWebApplicationUri.Port);
|
||||
HostedSolutionLog.DebugInfo("siteCollectionUrl: {0}", siteCollectionUrl);
|
||||
|
@ -347,7 +347,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <param name="rootWebApplicationUri">Root web application uri.</param>
|
||||
/// <param name="siteCollection">The site collection to be deleted.</param>
|
||||
/// <exception cref="InvalidOperationException">Is thrown in case requested operation fails for any reason.</exception>
|
||||
public void DeleteSiteCollection(Uri rootWebApplicationUri, SharePointSiteCollection siteCollection)
|
||||
public void DeleteSiteCollection(Uri rootWebApplicationUri, SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
HostedSolutionLog.LogStart("DeleteSiteCollection");
|
||||
Runspace runspace = null;
|
||||
|
@ -434,7 +434,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
/// <param name="siteCollection">Site collection to be restored.</param>
|
||||
/// <param name="filename">Backup file name to restore from.</param>
|
||||
/// <exception cref="InvalidOperationException">Is thrown in case requested operation fails for any reason.</exception>
|
||||
public void RestoreSiteCollection(Uri rootWebApplicationUri, SharePointSiteCollection siteCollection, string filename)
|
||||
public void RestoreSiteCollection(Uri rootWebApplicationUri, SharePointEnterpriseSiteCollection siteCollection, string filename)
|
||||
{
|
||||
string url = siteCollection.Url;
|
||||
|
||||
|
@ -494,12 +494,12 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
/// <summary>Creates new site collection with information from administration object.</summary>
|
||||
/// <param name="site">Administration object.</param>
|
||||
private static SharePointSiteCollection NewSiteCollection(SPSite site)
|
||||
private static SharePointEnterpriseSiteCollection NewSiteCollection(SPSite site)
|
||||
{
|
||||
var siteUri = new Uri(site.Url);
|
||||
string url = (siteUri.Port > 0) ? site.Url.Replace(String.Format(":{0}", siteUri.Port), String.Empty) : site.Url;
|
||||
|
||||
return new SharePointSiteCollection {Url = url, OwnerLogin = site.Owner.LoginName, OwnerName = site.Owner.Name, OwnerEmail = site.Owner.Email, LocaleId = site.RootWeb.Locale.LCID, Title = site.RootWeb.Title, Description = site.RootWeb.Description, Bandwidth = site.Usage.Bandwidth, Diskspace = site.Usage.Storage, MaxSiteStorage = site.Quota.StorageMaximumLevel, WarningStorage = site.Quota.StorageWarningLevel};
|
||||
return new SharePointEnterpriseSiteCollection {Url = url, OwnerLogin = site.Owner.LoginName, OwnerName = site.Owner.Name, OwnerEmail = site.Owner.Email, LocaleId = site.RootWeb.Locale.LCID, Title = site.RootWeb.Title, Description = site.RootWeb.Description, Bandwidth = site.Usage.Bandwidth, Diskspace = site.Usage.Storage, MaxSiteStorage = site.Quota.StorageMaximumLevel, WarningStorage = site.Quota.StorageWarningLevel};
|
||||
}
|
||||
|
||||
/// <summary>Gets SharePoint sites collection.</summary>
|
||||
|
@ -716,7 +716,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
/// <summary>Adds record to hosts file.</summary>
|
||||
/// <param name="siteCollection">The site collection object.</param>
|
||||
public void AddHostsRecord(SharePointSiteCollection siteCollection)
|
||||
public void AddHostsRecord(SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -783,7 +783,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
/// <summary>Removes record from hosts file.</summary>
|
||||
/// <param name="siteCollection">The site collection object.</param>
|
||||
private void RemoveHostsRecord(SharePointSiteCollection siteCollection)
|
||||
private void RemoveHostsRecord(SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
@ -48,7 +47,6 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using WebsitePanel.Providers.SharePoint;
|
||||
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -173,9 +171,9 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Enterprise_GetSiteCollections", 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 SharePointSiteCollection[] Enterprise_GetSiteCollections() {
|
||||
public SharePointEnterpriseSiteCollection[] Enterprise_GetSiteCollections() {
|
||||
object[] results = this.Invoke("Enterprise_GetSiteCollections", new object[0]);
|
||||
return ((SharePointSiteCollection[])(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -184,9 +182,9 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection[] EndEnterprise_GetSiteCollections(System.IAsyncResult asyncResult) {
|
||||
public SharePointEnterpriseSiteCollection[] EndEnterprise_GetSiteCollections(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection[])(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection[])(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -212,10 +210,10 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Enterprise_GetSiteCollection", 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 SharePointSiteCollection Enterprise_GetSiteCollection(string url) {
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollection(string url) {
|
||||
object[] results = this.Invoke("Enterprise_GetSiteCollection", new object[] {
|
||||
url});
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -225,9 +223,9 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection EndEnterprise_GetSiteCollection(System.IAsyncResult asyncResult) {
|
||||
public SharePointEnterpriseSiteCollection EndEnterprise_GetSiteCollection(System.IAsyncResult asyncResult) {
|
||||
object[] results = this.EndInvoke(asyncResult);
|
||||
return ((SharePointSiteCollection)(results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
|
@ -254,13 +252,13 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Enterprise_CreateSiteCollection", 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 Enterprise_CreateSiteCollection(SharePointSiteCollection siteCollection) {
|
||||
public void Enterprise_CreateSiteCollection(SharePointEnterpriseSiteCollection siteCollection) {
|
||||
this.Invoke("Enterprise_CreateSiteCollection", new object[] {
|
||||
siteCollection});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginEnterprise_CreateSiteCollection(SharePointSiteCollection siteCollection, System.AsyncCallback callback, object asyncState) {
|
||||
public System.IAsyncResult BeginEnterprise_CreateSiteCollection(SharePointEnterpriseSiteCollection siteCollection, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Enterprise_CreateSiteCollection", new object[] {
|
||||
siteCollection}, callback, asyncState);
|
||||
}
|
||||
|
@ -271,12 +269,12 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_CreateSiteCollectionAsync(SharePointSiteCollection siteCollection) {
|
||||
public void Enterprise_CreateSiteCollectionAsync(SharePointEnterpriseSiteCollection siteCollection) {
|
||||
this.Enterprise_CreateSiteCollectionAsync(siteCollection, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_CreateSiteCollectionAsync(SharePointSiteCollection siteCollection, object userState) {
|
||||
public void Enterprise_CreateSiteCollectionAsync(SharePointEnterpriseSiteCollection siteCollection, object userState) {
|
||||
if ((this.Enterprise_CreateSiteCollectionOperationCompleted == null)) {
|
||||
this.Enterprise_CreateSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnterprise_CreateSiteCollectionOperationCompleted);
|
||||
}
|
||||
|
@ -382,13 +380,13 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Enterprise_DeleteSiteCollection", 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 Enterprise_DeleteSiteCollection(SharePointSiteCollection siteCollection) {
|
||||
public void Enterprise_DeleteSiteCollection(SharePointEnterpriseSiteCollection siteCollection) {
|
||||
this.Invoke("Enterprise_DeleteSiteCollection", new object[] {
|
||||
siteCollection});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginEnterprise_DeleteSiteCollection(SharePointSiteCollection siteCollection, System.AsyncCallback callback, object asyncState) {
|
||||
public System.IAsyncResult BeginEnterprise_DeleteSiteCollection(SharePointEnterpriseSiteCollection siteCollection, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Enterprise_DeleteSiteCollection", new object[] {
|
||||
siteCollection}, callback, asyncState);
|
||||
}
|
||||
|
@ -399,12 +397,12 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_DeleteSiteCollectionAsync(SharePointSiteCollection siteCollection) {
|
||||
public void Enterprise_DeleteSiteCollectionAsync(SharePointEnterpriseSiteCollection siteCollection) {
|
||||
this.Enterprise_DeleteSiteCollectionAsync(siteCollection, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_DeleteSiteCollectionAsync(SharePointSiteCollection siteCollection, object userState) {
|
||||
public void Enterprise_DeleteSiteCollectionAsync(SharePointEnterpriseSiteCollection siteCollection, object userState) {
|
||||
if ((this.Enterprise_DeleteSiteCollectionOperationCompleted == null)) {
|
||||
this.Enterprise_DeleteSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnterprise_DeleteSiteCollectionOperationCompleted);
|
||||
}
|
||||
|
@ -470,14 +468,14 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/Enterprise_RestoreSiteCollection", 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 Enterprise_RestoreSiteCollection(SharePointSiteCollection siteCollection, string filename) {
|
||||
public void Enterprise_RestoreSiteCollection(SharePointEnterpriseSiteCollection siteCollection, string filename) {
|
||||
this.Invoke("Enterprise_RestoreSiteCollection", new object[] {
|
||||
siteCollection,
|
||||
filename});
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public System.IAsyncResult BeginEnterprise_RestoreSiteCollection(SharePointSiteCollection siteCollection, string filename, System.AsyncCallback callback, object asyncState) {
|
||||
public System.IAsyncResult BeginEnterprise_RestoreSiteCollection(SharePointEnterpriseSiteCollection siteCollection, string filename, System.AsyncCallback callback, object asyncState) {
|
||||
return this.BeginInvoke("Enterprise_RestoreSiteCollection", new object[] {
|
||||
siteCollection,
|
||||
filename}, callback, asyncState);
|
||||
|
@ -489,12 +487,12 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_RestoreSiteCollectionAsync(SharePointSiteCollection siteCollection, string filename) {
|
||||
public void Enterprise_RestoreSiteCollectionAsync(SharePointEnterpriseSiteCollection siteCollection, string filename) {
|
||||
this.Enterprise_RestoreSiteCollectionAsync(siteCollection, filename, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void Enterprise_RestoreSiteCollectionAsync(SharePointSiteCollection siteCollection, string filename, object userState) {
|
||||
public void Enterprise_RestoreSiteCollectionAsync(SharePointEnterpriseSiteCollection siteCollection, string filename, object userState) {
|
||||
if ((this.Enterprise_RestoreSiteCollectionOperationCompleted == null)) {
|
||||
this.Enterprise_RestoreSiteCollectionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnterprise_RestoreSiteCollectionOperationCompleted);
|
||||
}
|
||||
|
@ -742,10 +740,10 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection[] Result {
|
||||
public SharePointEnterpriseSiteCollection[] Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection[])(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection[])(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -768,10 +766,10 @@ namespace WebsitePanel.Providers.HostedSolution {
|
|||
}
|
||||
|
||||
/// <remarks/>
|
||||
public SharePointSiteCollection Result {
|
||||
public SharePointEnterpriseSiteCollection Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((SharePointSiteCollection)(this.results[0]));
|
||||
return ((SharePointEnterpriseSiteCollection)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
VisualStudioVersion = 12.0.30723.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Caching Application Block", "Caching Application Block", "{C8E6F2E4-A5B8-486A-A56E-92D864524682}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
|
@ -152,13 +152,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.Mail
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.Virtualization.HyperV2012R2", "WebsitePanel.Providers.Virtualization.HyperV-2012R2\WebsitePanel.Providers.Virtualization.HyperV2012R2.csproj", "{EE40516B-93DF-4CAB-80C4-64DCE0B751CC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebsitePanel.Providers.HostedSolution.SharePoint2013Ent", "WebsitePanel.Providers.HostedSolution.SharePoint2013Ent\WebsitePanel.Providers.HostedSolution.SharePoint2013Ent.csproj", "{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{684C932A-6C75-46AC-A327-F3689D89EB42} = {684C932A-6C75-46AC-A327-F3689D89EB42}
|
||||
{A06DE5E4-4331-47E1-8F46-7B846146B559} = {A06DE5E4-4331-47E1-8F46-7B846146B559}
|
||||
{E91E52F3-9555-4D00-B577-2B1DBDD87CA7} = {E91E52F3-9555-4D00-B577-2B1DBDD87CA7}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -769,16 +762,6 @@ Global
|
|||
{EE40516B-93DF-4CAB-80C4-64DCE0B751CC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{EE40516B-93DF-4CAB-80C4-64DCE0B751CC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{EE40516B-93DF-4CAB-80C4-64DCE0B751CC}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{0CF0C19E-7BFE-4A61-AF00-7B7CE7264252}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -76,9 +76,9 @@ namespace WebsitePanel.Server
|
|||
/// </summary>
|
||||
/// <returns>List of SharePoint collections within root web application.</returns>
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public SharePointSiteCollection[] Enterprise_GetSiteCollections()
|
||||
public SharePointEnterpriseSiteCollection[] Enterprise_GetSiteCollections()
|
||||
{
|
||||
return ExecuteAction<SharePointSiteCollection[]>(delegate
|
||||
return ExecuteAction<SharePointEnterpriseSiteCollection[]>(delegate
|
||||
{
|
||||
return HostedSharePointServerEntProvider.Enterprise_GetSiteCollections();
|
||||
}, "GetSiteCollections");
|
||||
|
@ -90,9 +90,9 @@ namespace WebsitePanel.Server
|
|||
/// <param name="url">Url that uniquely identifies site collection to be loaded.</param>
|
||||
/// <returns>SharePoint collection within root web application with given name.</returns>
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public SharePointSiteCollection Enterprise_GetSiteCollection(string url)
|
||||
public SharePointEnterpriseSiteCollection Enterprise_GetSiteCollection(string url)
|
||||
{
|
||||
return ExecuteAction<SharePointSiteCollection>(delegate
|
||||
return ExecuteAction<SharePointEnterpriseSiteCollection>(delegate
|
||||
{
|
||||
return HostedSharePointServerEntProvider.Enterprise_GetSiteCollection(url);
|
||||
}, "GetSiteCollection");
|
||||
|
@ -103,7 +103,7 @@ namespace WebsitePanel.Server
|
|||
/// </summary>
|
||||
/// <param name="siteCollection">Information about site coolection to be created.</param>
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public void Enterprise_CreateSiteCollection(SharePointSiteCollection siteCollection)
|
||||
public void Enterprise_CreateSiteCollection(SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
siteCollection.OwnerLogin = AttachNetbiosDomainName(siteCollection.OwnerLogin);
|
||||
ExecuteAction<object>(delegate
|
||||
|
@ -143,7 +143,7 @@ namespace WebsitePanel.Server
|
|||
/// </summary>
|
||||
/// <param name="url">Url that uniquely identifies site collection to be deleted.</param>
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public void Enterprise_DeleteSiteCollection(SharePointSiteCollection siteCollection)
|
||||
public void Enterprise_DeleteSiteCollection(SharePointEnterpriseSiteCollection siteCollection)
|
||||
{
|
||||
ExecuteAction<object>(delegate
|
||||
{
|
||||
|
@ -174,7 +174,7 @@ namespace WebsitePanel.Server
|
|||
/// <param name="siteCollection">Site collection to be restored.</param>
|
||||
/// <param name="filename">Backup file name to restore from.</param>
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public void Enterprise_RestoreSiteCollection(SharePointSiteCollection siteCollection, string filename)
|
||||
public void Enterprise_RestoreSiteCollection(SharePointEnterpriseSiteCollection siteCollection, string filename)
|
||||
{
|
||||
siteCollection.OwnerLogin = AttachNetbiosDomainName(siteCollection.OwnerLogin);
|
||||
ExecuteAction<object>(delegate
|
||||
|
|
|
@ -542,20 +542,20 @@
|
|||
<Control key="crm_storage_settings" src="WebsitePanel/CRM/CRMStorageSettings.ascx" title="CRMRestoreSiteCollection" type="View"/>
|
||||
|
||||
|
||||
<Control key="sharepoint_sitecollections" src="WebsitePanel/HostedSharePointSiteCollections.ascx" title="HostedSharePointSiteCollections" type="View" icon="colors_48.png"/>
|
||||
<Control key="sharepoint_edit_sitecollection" src="WebsitePanel/HostedSharePointEditSiteCollection.ascx" title="HostedSharePointSiteCollection" type="View" icon="colors_48.png" />
|
||||
<Control key="sharepoint_backup_sitecollection" src="WebsitePanel/HostedSharePointBackupSiteCollection.ascx" title="HostedSharePointBackupSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_restore_sitecollection" src="WebsitePanel/HostedSharePointRestoreSiteCollection.ascx" title="HostedSharePointRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_storage_settings" src="WebsitePanel/HostedSharePointStorageSettings.ascx" title="HostedSharePointRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_storage_usage" src="WebsitePanel/HostedSharePointStorageUsage.ascx" title="HostedSharePointRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_sitecollections" src="WebsitePanel/HostedSharePoint/HostedSharePointSiteCollections.ascx" title="HostedSharePointSiteCollections" type="View" icon="colors_48.png"/>
|
||||
<Control key="sharepoint_edit_sitecollection" src="WebsitePanel/HostedSharePoint/HostedSharePointEditSiteCollection.ascx" title="HostedSharePointSiteCollection" type="View" icon="colors_48.png" />
|
||||
<Control key="sharepoint_backup_sitecollection" src="WebsitePanel/HostedSharePoint/HostedSharePointBackupSiteCollection.ascx" title="HostedSharePointBackupSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_restore_sitecollection" src="WebsitePanel/HostedSharePoint/HostedSharePointRestoreSiteCollection.ascx" title="HostedSharePointRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_storage_settings" src="WebsitePanel/HostedSharePoint/HostedSharePointStorageSettings.ascx" title="HostedSharePointRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_storage_usage" src="WebsitePanel/HostedSharePoint/HostedSharePointStorageUsage.ascx" title="HostedSharePointRestoreSiteCollection" type="View"/>
|
||||
|
||||
|
||||
<Control key="sharepoint_enterprise_sitecollections" src="WebsitePanel/HostedSharePointEnterpriseSiteCollections.ascx" title="HostedSharePointEnterpriseSiteCollections" type="View" icon="colors_48.png"/>
|
||||
<Control key="sharepoint_enterprise_edit_sitecollection" src="WebsitePanel/HostedSharePointEnterpriseEditSiteCollection.ascx" title="HostedSharePointEnterpriseSiteCollection" type="View" icon="colors_48.png" />
|
||||
<Control key="sharepoint_enterprise_backup_sitecollection" src="WebsitePanel/HostedSharePointEnterpriseBackupSiteCollection.ascx" title="HostedSharePointEnterpriseBackupSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_restore_sitecollection" src="WebsitePanel/HostedSharePointEnterpriseRestoreSiteCollection.ascx" title="HostedSharePointEnterpriseRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_storage_settings" src="WebsitePanel/HostedSharePointEnterpriseStorageSettings.ascx" title="HostedSharePointEnterpriseRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_storage_usage" src="WebsitePanel/HostedSharePointEnterpriseStorageUsage.ascx" title="HostedSharePointEnterpriseRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_sitecollections" src="WebsitePanel/HostedSharePoint/HostedSharePointEnterpriseSiteCollections.ascx" title="HostedSharePointEnterpriseSiteCollections" type="View" icon="colors_48.png"/>
|
||||
<Control key="sharepoint_enterprise_edit_sitecollection" src="WebsitePanel/HostedSharePoint/HostedSharePointEnterpriseEditSiteCollection.ascx" title="HostedSharePointEnterpriseSiteCollection" type="View" icon="colors_48.png" />
|
||||
<Control key="sharepoint_enterprise_backup_sitecollection" src="WebsitePanel/HostedSharePoint/HostedSharePointEnterpriseBackupSiteCollection.ascx" title="HostedSharePointEnterpriseBackupSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_restore_sitecollection" src="WebsitePanel/HostedSharePoint/HostedSharePointEnterpriseRestoreSiteCollection.ascx" title="HostedSharePointEnterpriseRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_storage_settings" src="WebsitePanel/HostedSharePoint/HostedSharePointEnterpriseStorageSettings.ascx" title="HostedSharePointEnterpriseRestoreSiteCollection" type="View"/>
|
||||
<Control key="sharepoint_enterprise_storage_usage" src="WebsitePanel/HostedSharePoint/HostedSharePointEnterpriseStorageUsage.ascx" title="HostedSharePointEnterpriseRestoreSiteCollection" type="View"/>
|
||||
|
||||
<Control key="blackberry_users" src="WebsitePanel/BlackBerry/BlackBerryUsers.ascx" title="BlackBerry Users" type="View" />
|
||||
<Control key="create_new_blackberry_user" src="WebsitePanel/BlackBerry/CreateNewBlackBerryUser.ascx" title="Create New BlackBerry User" type="View" />
|
||||
|
|
|
@ -181,7 +181,7 @@
|
|||
<value>OCS Users:</value>
|
||||
</data>
|
||||
<data name="lblSharepointSites.Text" xml:space="preserve">
|
||||
<value>Sharepoint Foundation Sites:</value>
|
||||
<value>SharePoint Foundation Sites:</value>
|
||||
</data>
|
||||
<data name="lblUserAccounts.Text" xml:space="preserve">
|
||||
<value>User Accounts:</value>
|
||||
|
@ -210,7 +210,7 @@
|
|||
<data name="lblDeletedUsers.Text" xml:space="preserve">
|
||||
<value>Deleted Users:</value>
|
||||
</data>
|
||||
<data name="lblEnterpriseSharepointSites.Text" xml:space="preserve">
|
||||
<value>Sharepoint Server Sites:</value>
|
||||
<data name="lblSharepointEnterpriseSites.Text" xml:space="preserve">
|
||||
<value>SharePoint Enterprise Sites:</value>
|
||||
</data>
|
||||
</root>
|
|
@ -239,7 +239,7 @@
|
|||
</data>
|
||||
<data name="Text.SharePointEnterpriseServerGroup" xml:space="preserve">
|
||||
<value>Hosted Organization - SharePoint Server</value>
|
||||
</data>
|
||||
</data>
|
||||
<data name="Text.SiteCollections" xml:space="preserve">
|
||||
<value>Sharepoint Sites</value>
|
||||
</data>
|
||||
|
@ -250,7 +250,7 @@
|
|||
<value>Storage Usage</value>
|
||||
</data>
|
||||
<data name="Text.Users" xml:space="preserve">
|
||||
<value>Users</value>
|
||||
<value>Users (User Organization)</value>
|
||||
</data>
|
||||
<data name="Text.CreateOrganization" xml:space="preserve">
|
||||
<value>Create Organization</value>
|
||||
|
|
|
@ -42,14 +42,16 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
public class HostedSharePointEnterpriseSiteCollectionsHelper
|
||||
{
|
||||
SharePointSiteCollectionListPaged result;
|
||||
SharePointEnterpriseSiteCollectionListPaged result;
|
||||
|
||||
public int GetSharePointSiteCollectionPagedCount(int packageId, int organizationId, string filterColumn, string filterValue)
|
||||
public int GetSharePointEnterpriseSiteCollectionPagedCount(int packageId, int organizationId, string filterColumn, string filterValue)
|
||||
{
|
||||
return result.TotalRowCount;
|
||||
}
|
||||
|
||||
public List<SharePointSiteCollection> GetSharePointSiteCollectionPaged(int packageId, int organizationId, string filterColumn, string filterValue, int maximumRows, int startRowIndex, string sortColumn)
|
||||
|
||||
|
||||
public List<SharePointEnterpriseSiteCollection> GetSharePointEnterpriseSiteCollectionPaged(int packageId, int organizationId, string filterColumn, string filterValue, int maximumRows, int startRowIndex, string sortColumn)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(filterValue))
|
||||
{
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointBackupSiteCollection.ascx.cs"
|
||||
Inherits="WebsitePanel.Portal.HostedSharePointBackupSiteCollection" %>
|
||||
<%@ Register Src="UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
|
@ -1,14 +1,14 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointEditSiteCollection.ascx.cs" Inherits="WebsitePanel.Portal.HostedSharePointEditSiteCollection" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/PopupHeader.ascx" TagName="PopupHeader" TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/AllocatePackageIPAddresses.ascx" TagName="SiteUrlBuilder" TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/UserSelector.ascx" TagName="UserSelector" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register src="UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
<%@ Register Src="DomainsSelectDomainControl.ascx" TagName="DomainsSelectDomainControl" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/PopupHeader.ascx" TagName="PopupHeader" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/AllocatePackageIPAddresses.ascx" TagName="SiteUrlBuilder" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/UserSelector.ascx" TagName="UserSelector" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register src="../UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
<%@ Register Src="../DomainsSelectDomainControl.ascx" TagName="DomainsSelectDomainControl" TagPrefix="uc1" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointEnterpriseBackupSiteCollection.ascx.cs"
|
||||
Inherits="WebsitePanel.Portal.HostedSharePointEnterpriseBackupSiteCollection" %>
|
||||
<%@ Register Src="UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
|
@ -73,7 +73,7 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
try
|
||||
{
|
||||
SharePointSiteCollection siteCollection = ES.Services.HostedSharePointServersEnt.Enterprise_GetSiteCollection(this.SiteCollectionId);
|
||||
SharePointEnterpriseSiteCollection siteCollection = ES.Services.HostedSharePointServersEnt.Enterprise_GetSiteCollection(this.SiteCollectionId);
|
||||
litSiteCollectionName.Text = siteCollection.PhysicalAddress;
|
||||
txtBackupName.Text = siteCollection.Url + BACKUP_EXTENSION;
|
||||
fileLookup.SelectedFile = "\\";
|
|
@ -1,14 +1,14 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointEnterpriseEditSiteCollection.ascx.cs" Inherits="WebsitePanel.Portal.HostedSharePointEnterpriseEditSiteCollection" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/PopupHeader.ascx" TagName="PopupHeader" TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/AllocatePackageIPAddresses.ascx" TagName="SiteUrlBuilder" TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/UserSelector.ascx" TagName="UserSelector" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register src="UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
<%@ Register Src="DomainsSelectDomainControl.ascx" TagName="DomainsSelectDomainControl" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/PopupHeader.ascx" TagName="PopupHeader" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/AllocatePackageIPAddresses.ascx" TagName="SiteUrlBuilder" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/UserSelector.ascx" TagName="UserSelector" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %>
|
||||
<%@ Register src="../UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
<%@ Register Src="../DomainsSelectDomainControl.ascx" TagName="DomainsSelectDomainControl" TagPrefix="uc1" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
||||
|
|
@ -42,7 +42,7 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
public partial class HostedSharePointEnterpriseEditSiteCollection : WebsitePanelModuleBase
|
||||
{
|
||||
SharePointSiteCollection item = null;
|
||||
SharePointEnterpriseSiteCollection item = null;
|
||||
|
||||
private int OrganizationId
|
||||
{
|
||||
|
@ -188,7 +188,7 @@ namespace WebsitePanel.Portal
|
|||
/// <summary> Checks and sets disk quotas values.</summary>
|
||||
/// <param name="organization"> The organization.</param>
|
||||
/// <param name="collection"> The site collection.</param>
|
||||
private void SetStorageQuotas(Organization organization, SharePointSiteCollection collection)
|
||||
private void SetStorageQuotas(Organization organization, SharePointEnterpriseSiteCollection collection)
|
||||
{
|
||||
var quotaValue = organization.MaxSharePointEnterpriseStorage;
|
||||
|
||||
|
@ -250,12 +250,12 @@ namespace WebsitePanel.Portal
|
|||
// new item
|
||||
try
|
||||
{
|
||||
item = new SharePointSiteCollection();
|
||||
item = new SharePointEnterpriseSiteCollection();
|
||||
|
||||
if (!UseSharedSLL(PanelSecurity.PackageId))
|
||||
{
|
||||
SharePointSiteCollectionListPaged existentSiteCollections = ES.Services.HostedSharePointServersEnt.Enterprise_GetSiteCollectionsPaged(PanelSecurity.PackageId, this.OrganizationId, "ItemName", String.Format("%{0}", this.domain.DomainName), String.Empty, 0, Int32.MaxValue);
|
||||
foreach (SharePointSiteCollection existentSiteCollection in existentSiteCollections.SiteCollections)
|
||||
SharePointEnterpriseSiteCollectionListPaged existentSiteCollections = ES.Services.HostedSharePointServersEnt.Enterprise_GetSiteCollectionsPaged(PanelSecurity.PackageId, this.OrganizationId, "ItemName", String.Format("%{0}", this.domain.DomainName), String.Empty, 0, Int32.MaxValue);
|
||||
foreach (SharePointEnterpriseSiteCollection existentSiteCollection in existentSiteCollections.SiteCollections)
|
||||
{
|
||||
Uri existentSiteCollectionUri = new Uri(existentSiteCollection.Name);
|
||||
if (existentSiteCollection.Name == String.Format("{0}://{1}", existentSiteCollectionUri.Scheme, this.txtHostName.Text.ToLower() + "." + this.domain.DomainName))
|
|
@ -1,13 +1,13 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointEnterpriseRestoreSiteCollection.ascx.cs"
|
||||
Inherits="WebsitePanel.Portal.HostedSharePointEnterpriseRestoreSiteCollection" %>
|
||||
<%@ Register Src="UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
6
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
|
||||
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
|
@ -71,7 +71,7 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
try
|
||||
{
|
||||
SharePointSiteCollection siteCollection = ES.Services.HostedSharePointServersEnt.Enterprise_GetSiteCollection(this.SiteCollectionId);
|
||||
SharePointEnterpriseSiteCollection siteCollection = ES.Services.HostedSharePointServersEnt.Enterprise_GetSiteCollection(this.SiteCollectionId);
|
||||
litSiteCollectionName.Text = siteCollection.PhysicalAddress;
|
||||
fileLookup.SelectedFile = String.Empty;
|
||||
fileLookup.PackageId = siteCollection.PackageId;
|
|
@ -1,13 +1,13 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointEnterpriseSiteCollections.ascx.cs"
|
||||
Inherits="WebsitePanel.Portal.HostedSharePointEnterpriseSiteCollections" %>
|
||||
<%@ Register Src="UserControls/SpaceServiceItems.ascx" TagName="SpaceServiceItems"
|
||||
<%@ Register Src="../UserControls/SpaceServiceItems.ascx" TagName="SpaceServiceItems"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/Quota.ascx" TagName="Quota" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/Quota.ascx" TagName="Quota" TagPrefix="wsp" %>
|
||||
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
||||
|
@ -70,9 +70,9 @@ function confirmation()
|
|||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsSiteCollectionsPaged" runat="server" EnablePaging="True" SelectCountMethod="GetSharePointSiteCollectionPagedCount"
|
||||
SelectMethod="GetSharePointSiteCollectionPaged" SortParameterName="sortColumn" TypeName="WebsitePanel.Portal.HostedSharePointEnterpriseSiteCollectionsHelper"
|
||||
OnSelected="odsSharePointSiteCollectionPaged_Selected">
|
||||
<asp:ObjectDataSource ID="odsSiteCollectionsPaged" runat="server" EnablePaging="True" SelectCountMethod="GetSharePointEnterpriseSiteCollectionPagedCount"
|
||||
SelectMethod="GetSharePointEnterpriseSiteCollectionPaged" SortParameterName="sortColumn" TypeName="WebsitePanel.Portal.HostedSharePointEnterpriseSiteCollectionsHelper"
|
||||
OnSelected="odsSharePointEnterpriseSiteCollectionPaged_Selected">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter Name="packageId" QueryStringField="SpaceID" DefaultValue="-1" />
|
||||
<asp:QueryStringParameter Name="organizationId" QueryStringField="ItemID" DefaultValue="0" />
|
|
@ -58,7 +58,7 @@ namespace WebsitePanel.Portal
|
|||
|
||||
siteCollectionsQuota.QuotaUsedValue = stats.CreatedSharePointEnterpriseSiteCollections;
|
||||
siteCollectionsQuota.QuotaValue = stats.AllocatedSharePointEnterpriseSiteCollections;
|
||||
if (stats.AllocatedSharePointSiteCollections != -1) siteCollectionsQuota.QuotaAvailable = tenantStats.AllocatedSharePointEnterpriseSiteCollections - tenantStats.CreatedSharePointEnterpriseSiteCollections;
|
||||
if (stats.AllocatedSharePointEnterpriseSiteCollections != -1) siteCollectionsQuota.QuotaAvailable = tenantStats.AllocatedSharePointEnterpriseSiteCollections - tenantStats.CreatedSharePointEnterpriseSiteCollections;
|
||||
}
|
||||
|
||||
protected void btnCreateSiteCollection_Click(object sender, EventArgs e)
|
||||
|
@ -73,7 +73,7 @@ namespace WebsitePanel.Portal
|
|||
"ItemID=" + PanelRequest.ItemID.ToString());
|
||||
}
|
||||
|
||||
protected void odsSharePointSiteCollectionPaged_Selected(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
protected void odsSharePointEnterpriseSiteCollectionPaged_Selected(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
if (e.Exception != null)
|
||||
{
|
|
@ -1,13 +1,13 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HostedSharePointEnterpriseStorageSettings.ascx.cs" Inherits="WebsitePanel.Portal.HostedSharePointEnterpriseStorageSettings" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register src="UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register src="../UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
|
||||
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HostedSharePointEnterpriseStorageUsage.ascx.cs" Inherits="WebsitePanel.Portal.HostedSharePointEnterpriseStorageUsage" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
|
||||
<div id="ExchangeContainer">
|
||||
<div class="Module">
|
|
@ -49,7 +49,7 @@ namespace WebsitePanel.Portal
|
|||
int errorCode;
|
||||
try
|
||||
{
|
||||
SharePointSiteDiskSpace[] sharePointSiteDiskSpace =
|
||||
SharePointEnterpriseSiteDiskSpace[] sharePointEnterpriseSiteDiskSpace =
|
||||
ES.Services.HostedSharePointServersEnt.Enterprise_CalculateSharePointSitesDiskSpace(PanelRequest.ItemID,
|
||||
out errorCode);
|
||||
|
||||
|
@ -60,7 +60,7 @@ namespace WebsitePanel.Portal
|
|||
return;
|
||||
}
|
||||
|
||||
if (sharePointSiteDiskSpace != null && sharePointSiteDiskSpace.Length == 1 && string.IsNullOrEmpty(sharePointSiteDiskSpace[0].Url))
|
||||
if (sharePointEnterpriseSiteDiskSpace != null && sharePointEnterpriseSiteDiskSpace.Length == 1 && string.IsNullOrEmpty(sharePointEnterpriseSiteDiskSpace[0].Url))
|
||||
{
|
||||
gvStorageUsage.DataSource = null;
|
||||
gvStorageUsage.DataBind();
|
||||
|
@ -69,15 +69,15 @@ namespace WebsitePanel.Portal
|
|||
return;
|
||||
}
|
||||
|
||||
gvStorageUsage.DataSource = sharePointSiteDiskSpace;
|
||||
gvStorageUsage.DataSource = sharePointEnterpriseSiteDiskSpace;
|
||||
gvStorageUsage.DataBind();
|
||||
|
||||
if (sharePointSiteDiskSpace != null)
|
||||
if (sharePointEnterpriseSiteDiskSpace != null)
|
||||
{
|
||||
lblTotalItems.Text = sharePointSiteDiskSpace.Length.ToString();
|
||||
lblTotalItems.Text = sharePointEnterpriseSiteDiskSpace.Length.ToString();
|
||||
|
||||
long total = 0;
|
||||
foreach (SharePointSiteDiskSpace current in sharePointSiteDiskSpace)
|
||||
foreach (SharePointEnterpriseSiteDiskSpace current in sharePointEnterpriseSiteDiskSpace)
|
||||
{
|
||||
total += current.DiskSpace;
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointRestoreSiteCollection.ascx.cs"
|
||||
Inherits="WebsitePanel.Portal.HostedSharePointRestoreSiteCollection" %>
|
||||
<%@ Register Src="UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../UserControls/FileLookup.ascx" TagName="FileLookup" TagPrefix="uc1" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
6
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
|
||||
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
|
@ -1,13 +1,13 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="HostedSharePointSiteCollections.ascx.cs"
|
||||
Inherits="WebsitePanel.Portal.HostedSharePointSiteCollections" %>
|
||||
<%@ Register Src="UserControls/SpaceServiceItems.ascx" TagName="SpaceServiceItems"
|
||||
<%@ Register Src="../UserControls/SpaceServiceItems.ascx" TagName="SpaceServiceItems"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/Quota.ascx" TagName="Quota" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/QuotaViewer.ascx" TagName="QuotaViewer" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/Quota.ascx" TagName="Quota" TagPrefix="wsp" %>
|
||||
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
|
||||
<wsp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
|
|
@ -1,13 +1,13 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HostedSharePointStorageSettings.ascx.cs" Inherits="WebsitePanel.Portal.HostedSharePointStorageSettings" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register src="UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register src="../UserControls/QuotaEditor.ascx" tagname="QuotaEditor" tagprefix="uc1" %>
|
||||
|
||||
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HostedSharePointStorageUsage.ascx.cs" Inherits="WebsitePanel.Portal.HostedSharePointStorageUsage" %>
|
||||
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
<%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
<%@ Register Src="../UserControls/CollapsiblePanel.ascx" TagName="CollapsiblePanel"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
<%@ Register Src="../ExchangeServer/UserControls/SizeBox.ascx" TagName="SizeBox" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox"
|
||||
TagPrefix="wsp" %>
|
||||
<%@ Register Src="ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
<%@ Register Src="../ExchangeServer/UserControls/Menu.ascx" TagName="Menu" TagPrefix="wsp" %>
|
||||
|
||||
<div id="ExchangeContainer">
|
||||
<div class="Module">
|
|
@ -77,7 +77,8 @@
|
|||
<tr ID="pnlEnterpriseSharepointSites" runat="server">
|
||||
<td class="SubHead" nowrap><asp:Label ID="lblEnterpriseSharepointSites" runat="server" meta:resourcekey="lblEnterpriseSharepointSites" Text="Sharepoint Sites:"></asp:Label></td>
|
||||
<td class="Normal"><wsp:Quota ID="quotaEnterpriseSharepointSites" runat="server" QuotaName="HostedSharePointEnterprise.Sites" DisplayGauge="True" /></td>
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
<tr ID="pnlWebSites" runat="server">
|
||||
<td class="SubHead" nowrap><asp:Label ID="lblWebSites" runat="server" meta:resourcekey="lblWebSites" Text="Web Sites:"></asp:Label></td>
|
||||
<td class="Normal"><wsp:Quota ID="quotaWebSites" runat="server" QuotaName="Web.Sites" DisplayGauge="True" /></td>
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace WebsitePanel.Portal
|
|||
{ "quotaOCSUsers", "pnlOCSUsers" },
|
||||
{ "quotaLyncUsers", "pnlLyncUsers" },
|
||||
{ "quotaBlackBerryUsers", "pnlBlackBerryUsers" },
|
||||
{ "quotaSharepointSites", "pnlSharepointSites" },
|
||||
{ "quotaSharepointSites", "pnlSharepointSites" },
|
||||
{ "quotaWebSites", "pnlWebSites" },
|
||||
{ "quotaDatabases", "pnlDatabases" },
|
||||
{ "quotaNumberOfVm", "pnlHyperVForPC" },
|
||||
|
|
|
@ -96,10 +96,10 @@ namespace WebsitePanel.Portal.UserControls
|
|||
|
||||
//SharePoint menu group;
|
||||
if (Cntx.Groups.ContainsKey(ResourceGroups.SharepointFoundationServer))
|
||||
PrepareSharePointMenuRoot(items, GetLocalizedString("Text.SharePointFoundationServerGroup"));
|
||||
PrepareSharePointMenuRoot(items);
|
||||
|
||||
if (Cntx.Groups.ContainsKey(ResourceGroups.SharepointEnterpriseServer))
|
||||
PrepareSharePointEnterpriseMenuRoot(items, GetLocalizedString("Text.SharePointEnterpriseServerGroup"));
|
||||
PrepareSharePointEnterpriseMenuRoot(items);
|
||||
|
||||
//CRM Menu
|
||||
if (Cntx.Groups.ContainsKey(ResourceGroups.HostedCRM2013))
|
||||
|
@ -362,7 +362,7 @@ namespace WebsitePanel.Portal.UserControls
|
|||
bbItems.Add(CreateMenuItem("BlackBerryUsers", "blackberry_users", @"Icons/blackberry_users_48.png"));
|
||||
}
|
||||
|
||||
private void PrepareSharePointMenuRoot(MenuItemCollection items, string menuItemText)
|
||||
private void PrepareSharePointMenuRoot(MenuItemCollection items)
|
||||
{
|
||||
if (ShortMenu)
|
||||
{
|
||||
|
@ -370,7 +370,7 @@ namespace WebsitePanel.Portal.UserControls
|
|||
}
|
||||
else
|
||||
{
|
||||
MenuItem item = new MenuItem(menuItemText, "", "", null);
|
||||
MenuItem item = new MenuItem(GetLocalizedString("Text.SharePointFoundationServerGroup"), "", "", null);
|
||||
|
||||
item.Selectable = false;
|
||||
|
||||
|
@ -391,7 +391,7 @@ namespace WebsitePanel.Portal.UserControls
|
|||
}
|
||||
|
||||
|
||||
private void PrepareSharePointEnterpriseMenuRoot(MenuItemCollection items, string menuItemText)
|
||||
private void PrepareSharePointEnterpriseMenuRoot(MenuItemCollection items)
|
||||
{
|
||||
if (ShortMenu)
|
||||
{
|
||||
|
@ -399,7 +399,7 @@ namespace WebsitePanel.Portal.UserControls
|
|||
}
|
||||
else
|
||||
{
|
||||
MenuItem item = new MenuItem(menuItemText, "", "", null);
|
||||
MenuItem item = new MenuItem(GetLocalizedString("Text.SharePointEnterpriseServerGroup"), "", "", null);
|
||||
|
||||
item.Selectable = false;
|
||||
|
||||
|
@ -556,8 +556,7 @@ namespace WebsitePanel.Portal.UserControls
|
|||
MenuItem item = new MenuItem();
|
||||
|
||||
item.Text = GetLocalizedString("Text." + text);
|
||||
item.NavigateUrl = PortalUtils.EditUrl("ItemID", ItemID.ToString(), key,
|
||||
"SpaceID=" + PackageId);
|
||||
item.NavigateUrl = PortalUtils.EditUrl("ItemID", ItemID.ToString(), key, "SpaceID=" + PackageId);
|
||||
|
||||
if (ShowImg)
|
||||
{
|
||||
|
|
|
@ -259,46 +259,46 @@
|
|||
<Compile Include="ExchangeServer\UserControls\EnterpriseStorageOwaUsersList.ascx.designer.cs">
|
||||
<DependentUpon>EnterpriseStorageOwaUsersList.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseBackupSiteCollection.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseBackupSiteCollection.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseBackupSiteCollection.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseBackupSiteCollection.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseBackupSiteCollection.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseBackupSiteCollection.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseEditSiteCollection.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseEditSiteCollection.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseEditSiteCollection.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseEditSiteCollection.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseEditSiteCollection.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseEditSiteCollection.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseSiteCollections.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseSiteCollections.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseSiteCollections.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseSiteCollections.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseSiteCollections.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseSiteCollections.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseRestoreSiteCollection.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseRestoreSiteCollection.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseRestoreSiteCollection.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseRestoreSiteCollection.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseRestoreSiteCollection.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseRestoreSiteCollection.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseStorageSettings.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseStorageSettings.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseStorageSettings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseStorageSettings.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseStorageSettings.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseStorageSettings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseStorageUsage.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseStorageUsage.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseStorageUsage.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEnterpriseStorageUsage.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEnterpriseStorageUsage.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEnterpriseStorageUsage.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProviderControls\HyperV2012R2_Settings.ascx.cs">
|
||||
|
@ -1521,46 +1521,46 @@
|
|||
<Compile Include="ExchangeServer\UserControls\UserSelector.ascx.designer.cs">
|
||||
<DependentUpon>UserSelector.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointBackupSiteCollection.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointBackupSiteCollection.ascx.cs">
|
||||
<DependentUpon>HostedSharePointBackupSiteCollection.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointBackupSiteCollection.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointBackupSiteCollection.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointBackupSiteCollection.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEditSiteCollection.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEditSiteCollection.ascx.cs">
|
||||
<DependentUpon>HostedSharePointEditSiteCollection.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointEditSiteCollection.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointEditSiteCollection.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointEditSiteCollection.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointRestoreSiteCollection.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointRestoreSiteCollection.ascx.cs">
|
||||
<DependentUpon>HostedSharePointRestoreSiteCollection.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointRestoreSiteCollection.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointRestoreSiteCollection.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointRestoreSiteCollection.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointSiteCollections.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointSiteCollections.ascx.cs">
|
||||
<DependentUpon>HostedSharePointSiteCollections.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointSiteCollections.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointSiteCollections.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointSiteCollections.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointStorageSettings.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointStorageSettings.ascx.cs">
|
||||
<DependentUpon>HostedSharePointStorageSettings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointStorageSettings.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointStorageSettings.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointStorageSettings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointStorageUsage.ascx.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointStorageUsage.ascx.cs">
|
||||
<DependentUpon>HostedSharePointStorageUsage.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostedSharePointStorageUsage.ascx.designer.cs">
|
||||
<Compile Include="HostedSharePoint\HostedSharePointStorageUsage.ascx.designer.cs">
|
||||
<DependentUpon>HostedSharePointStorageUsage.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostedSoluitonReportSummaryLetter.ascx.cs">
|
||||
|
@ -4581,12 +4581,12 @@
|
|||
<Content Include="ExchangeServer\ExchangeCheckDomainName.ascx" />
|
||||
<Content Include="ExchangeServer\UserControls\EnterpriseStorageEditFolderTabs.ascx" />
|
||||
<Content Include="ExchangeServer\UserControls\EnterpriseStorageOwaUsersList.ascx" />
|
||||
<Content Include="HostedSharePointEnterpriseBackupSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePointEnterpriseEditSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePointEnterpriseSiteCollections.ascx" />
|
||||
<Content Include="HostedSharePointEnterpriseRestoreSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePointEnterpriseStorageSettings.ascx" />
|
||||
<Content Include="HostedSharePointEnterpriseStorageUsage.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEnterpriseBackupSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEnterpriseEditSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEnterpriseSiteCollections.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEnterpriseRestoreSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEnterpriseStorageSettings.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEnterpriseStorageUsage.ascx" />
|
||||
<Content Include="ProviderControls\HyperV2012R2_Settings.ascx" />
|
||||
<Content Include="VPS\ProviderControls\HyperV2012R2_Create.ascx" />
|
||||
<Content Include="ProviderControls\SmarterMail100_EditAccount.ascx" />
|
||||
|
@ -4645,22 +4645,22 @@
|
|||
<Content Include="ProviderControls\App_LocalResources\HyperV2012R2_Settings.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEnterpriseSiteCollections.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEnterpriseSiteCollections.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEnterpriseBackupSiteCollection.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEnterpriseBackupSiteCollection.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEnterpriseEditSiteCollection.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEnterpriseEditSiteCollection.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEnterpriseRestoreSiteCollection.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEnterpriseRestoreSiteCollection.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEnterpriseStorageSettings.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEnterpriseStorageSettings.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEnterpriseStorageUsage.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEnterpriseStorageUsage.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<EmbeddedResource Include="RDS\App_LocalResources\RDSEditCollectionSettings.ascx.resx" />
|
||||
|
@ -6206,12 +6206,12 @@
|
|||
<Content Include="ExchangeServer\OrganizationUsers.ascx" />
|
||||
<Content Include="ExchangeServer\UserControls\HoursBox.ascx" />
|
||||
<Content Include="ExchangeServer\UserControls\UserSelector.ascx" />
|
||||
<Content Include="HostedSharePointBackupSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePointEditSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePointRestoreSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePointSiteCollections.ascx" />
|
||||
<Content Include="HostedSharePointStorageSettings.ascx" />
|
||||
<Content Include="HostedSharePointStorageUsage.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointBackupSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointEditSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointRestoreSiteCollection.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointSiteCollections.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointStorageSettings.ascx" />
|
||||
<Content Include="HostedSharePoint\HostedSharePointStorageUsage.ascx" />
|
||||
<Content Include="HostedSoluitonReportSummaryLetter.ascx" />
|
||||
<Content Include="OverusageReport.ascx" />
|
||||
<Content Include="ProviderControls\CRM_Settings.ascx" />
|
||||
|
@ -6245,7 +6245,7 @@
|
|||
<Content Include="ScheduleTaskControls\SendFilesViaFtp.ascx" />
|
||||
<Content Include="ScheduleTaskControls\SuspendOverusedSpaces.ascx" />
|
||||
<Content Include="ScheduleTaskControls\ZipFiles.ascx" />
|
||||
<Content Include="App_LocalResources\HostedSharePointStorageSettings.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointStorageSettings.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\OverusageReport.ascx.resx">
|
||||
|
@ -6253,7 +6253,7 @@
|
|||
</Content>
|
||||
<Content Include="Reports\HostingSpaceDiskspaceOverusageDetails.rdlc" />
|
||||
<Content Include="Reports\OverusageReport.rdlc" />
|
||||
<Content Include="App_LocalResources\HostedSharePointStorageUsage.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointStorageUsage.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="CRM\App_LocalResources\CRMUsers.ascx.resx">
|
||||
|
@ -6679,16 +6679,16 @@
|
|||
<Content Include="ProviderControls\App_LocalResources\PowerDNS_Settings.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointBackupSiteCollection.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointBackupSiteCollection.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointEditSiteCollection.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointEditSiteCollection.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointRestoreSiteCollection.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointRestoreSiteCollection.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_LocalResources\HostedSharePointSiteCollections.ascx.resx">
|
||||
<Content Include="HostedSharePoint\App_LocalResources\HostedSharePointSiteCollections.ascx.resx">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="ExchangeServer\App_LocalResources\OrganizationCreateOrganization.ascx.resx">
|
||||
|
|
|
@ -313,7 +313,9 @@
|
|||
<Content Include="App_Data\SiteSettings.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_Data\ESModule_ControlsHierarchy.config" />
|
||||
<Content Include="App_Data\ESModule_ControlsHierarchy.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<None Include="App_Data\SupportedThemes.config" />
|
||||
<None Include="App_Data\Countries.config" />
|
||||
<None Include="App_Data\CountryStates.config" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue