%@ Import Namespace="Microsoft.SharePoint.Administration" %>
<%@ Import Namespace="Microsoft.SharePoint.Administration.Backup" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages.Administration, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.RestoreStep3Page" MasterPageFile="~/_admin/admin.master" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="AdminControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint.ApplicationPages.Administration" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%
SPBackupRestoreConsoleObject consoleObj =
SPBackupRestoreConsole.CurrentlyRunning;
if (!HasBackupJobDef ||
BackupJobStatus == SPRunningJobStatus.Succeeded)
{
%>
<%
}
else if (BackupJobStatus == SPRunningJobStatus.Failed)
{
%>
<%
}
else
{
%>
<%
}
%>
<%
if (!IsBackupStatusPage)
{
%>
<%
}
%>
<%
if (IsBoxAdmin)
{
%>
<%
if (IsTimerServiceRunning)
{
%>
<%
}
else
{
%>
<%
}
%>
<%
if (ShowAdminServerStatus)
{
%>
<%
if (IsAdminServiceRunning)
{
%>
<%
}
else
{
%>
<%
}
%>
<%
}
%>
<%
}
else
{
%>
<%
}
%>
<%
String id =
Request.QueryString.Get("guid");
String backupSelect =
Request.QueryString.Get("backupselect");
RestoreGuid = new Guid(id);
SPBackupRestoreObjectCollection list =
SPBackupRestoreConsole.FindItems(RestoreGuid, backupSelect);
if (list == null || list.Count == 0)
{
throw (new SPException(SPResource.GetString(Strings.BackupItemNotFound, TxtContentType.Text)));
}
else if (list.Count > 1)
{
throw (new SPException(SPResource.GetString(Strings.BackupItemTooManyFound, TxtContentType.Text)));
}
RestoreObject = list[0];
NewPasswordList = SPBackupRestoreConsole.GetUserNamePasswordList(RestoreGuid, RestoreObject);
if (NewPasswordList != null && NewPasswordList.Count > 0)
{
%>
<%
NewPasswordWithAppPoolList = SPBackupRestoreConsole.ReOrderRenameListByAppPool(NewPasswordList);
int k=0;
String[] appPoolKeys = NewPasswordWithAppPoolList.GetAppPools();
for (int i = 0; i < appPoolKeys.Length; i++)
{
String appPool = appPoolKeys[i];
SPBackupRestoreObject[] backupRestoreNodes = NewPasswordWithAppPoolList.getRestoreObjectsByAppPool(appPool);
SPBackupRestoreObject cNode = null;
bool divOpened = false;
if (i != 0)
{
Response.Write(" ");
}
for (int j=0 ; j < backupRestoreNodes.Length ;j++)
{
cNode = backupRestoreNodes[j];
String value;
if (!(cNode is IBackupRestoreConfiguration) && !divOpened)
{
divOpened = true;
%>
<%
k++;
}
SPBackupRestoreObject[] nullAppPoolBackupRestoreObjects = NewPasswordWithAppPoolList.getNullAppPoolList();
for (int i=0; i< nullAppPoolBackupRestoreObjects.Length; i++)
{
SPBackupRestoreObject cNode = nullAppPoolBackupRestoreObjects[i];
if (k != 0)
{
Response.Write(" ");
}
bool divOpened = false;
if (!(cNode is IBackupRestoreConfiguration))
{
divOpened = true;
%>
<%
}
k++;
}
%>
<%
}
%>
<%
SPBackupRestoreObjectCollection list = SPBackupRestoreConsole.GetRestoreRenameList(RestoreGuid, RestoreObject);
if (list != null)
{ %>
<% }
for (int i = 0; list != null && i < list.Count; i++)
{
SPBackupRestoreObject cNode = list[i];
if (i != 0)
{
Response.Write(" ");
}
if (!(cNode is IBackupRestoreConfiguration))
{
%>
<%
}
}
%>
;