protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { WBFarm farm = WBFarm.Local; FarmInstance.DataSource = WBFarm.GetFarmInstances(); FarmInstance.DataBind(); FarmInstance.WBxSafeSetSelectedValue(farm.FarmInstance); ProtectedRecordsLibraryURL.Text = farm.ProtectedRecordsLibraryUrl; PublicRecordsLibraryURL.Text = farm.PublicRecordsLibraryUrl; PublicExtranetRecordsLibraryURL.Text = farm.PublicExtranetRecordsLibraryUrl; TeamSitesSiteCollectionURL.Text = farm.TeamSitesSiteCollectionUrl; WBLogging.Debug("Got here"); WBTaxonomy teams = WBTaxonomy.GetTeams(SPContext.Current.Site); if (teams == null) { WBLogging.Debug("teams was null"); } WBTeam systemAdminTeam = farm.SystemAdminTeam(teams); if (systemAdminTeam != null) { SystemAdminTeam.Text = systemAdminTeam.FullPath; } else { WBLogging.Debug("systemAdminTeam was null"); SystemAdminTeam.Text = ""; } // SystemAdminTeam.Text = farm.SystemAdminTeamGUIDString; OpenWorkBoxesCachedDetailsListURL.Text = farm.OpenWorkBoxesCachedDetailsListUrl; RecordsManagersGroupName.Text = farm.RecordsManagersGroupName; RecordsSystemAdminGroupName.Text = farm.RecordsSystemAdminGroupName; TimerJobsManagementSiteURL.Text = farm.TimerJobsManagementSiteUrl; TimerJobsServerName.Text = farm.TimerJobsServerName; AllWorkBoxCollections.Text = farm.AllWorkBoxCollectionsPropertyValue; TermStoreName.Text = farm.TermStoreName; TermStoreGroupName.Text = farm.TermStoreGroupName; DocumentContentTypeName.Text = farm.WorkBoxDocumentContentTypeName; RecordContentTypeName.Text = farm.WorkBoxRecordContentTypeName; SendErrorReportsTo.Text = farm.SendErrorReportEmailsTo; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { WBFarm farm = WBFarm.Local; if (!String.IsNullOrEmpty(farm.TermStoreName)) { try { WBTaxonomy teams = WBTaxonomy.GetTeams(SPContext.Current.Site); if (teams == null) { WBLogging.Debug("teams was null"); } WBTeam systemAdminTeam = farm.SystemAdminTeam(teams); if (systemAdminTeam != null) { AdminTeamSiteURL.Text = systemAdminTeam.TeamSiteUrl; } } catch (Exception exception) { WBLogging.Generic.HighLevel("Couldn't find the current admin team site URL: " + exception.Message); } } TimerJobsServerName.Text = farm.TimerJobsServerName; TermStoreName.Text = farm.TermStoreName; TermStoreGroupName.Text = farm.TermStoreGroupName; DocumentContentTypeName.Text = farm.WorkBoxDocumentContentTypeName; RecordContentTypeName.Text = farm.WorkBoxRecordContentTypeName; if (!String.IsNullOrEmpty(farm.TimerJobsManagementSiteUrl)) { DoInitialConfigStep.Text = "Check Configuration"; } } }