internal static InstallProcessControl CreateProcessControl() { InstallProcessControl control = new InstallProcessControl(); control.Title = Resources.CommonUIStrings.controlTitleInstalling; control.SubTitle = Resources.CommonUIStrings.controlSubTitleInstalling; return control; }
private FeaturesCommand(InstallProcessControl parent, FeatureActivator.ActivationDirection direction, InstallOperation operation) : base(parent) { this.direction = direction; this.operation = operation; requestedLocs = InstallProcessControl.GetFeaturedLocations(operation); }
private FeatureActivator(ActivationDirection direction, InstallOperation operation, ILog log) { this.direction = direction; this.operation = operation; this.log = log; requestedLocs = InstallProcessControl.GetFeaturedLocations(operation); }
internal static InstallProcessControl CreateProcessControl() { InstallProcessControl control = new InstallProcessControl(); control.Title = Resources.CommonUIStrings.controlTitleInstalling; control.SubTitle = Resources.CommonUIStrings.controlSubTitleInstalling; return(control); }
private void UpdateDisplay() { FeatureLocations fLocs = InstallProcessControl.GetFeaturedLocations(Form.Operation); string locationSummary = (new LocationDisplay(fLocs)).GetLocationSummary(); featureLocationSummaryLabel.Text = locationSummary; if (fLocs.GetTotalFeatureLocations() == 0) { dodeactivateFeaturesChoice.Enabled = false; doactivateFeaturesChoice.Enabled = false; } else { dodeactivateFeaturesChoice.Enabled = true; doactivateFeaturesChoice.Enabled = upgradeRadioButton.Checked && dodeactivateFeaturesChoice.Checked; } }
internal SiteCollectionFeatureCommand(InstallProcessControl parent, IList<SiteLoc> siteCollectionLocs, SiteCollectionCommand command) : base(parent) { this.siteCollectionLocs = siteCollectionLocs; this.command = command; }
public static Command CreateActivatorCommand(InstallProcessControl parent, InstallOperation operation) { FeaturesCommand cmd = new FeaturesCommand(parent, FeatureActivator.ActivationDirection.Activate, operation); return(cmd); }
internal WebFeatureCommand(InstallProcessControl parent, IList <WebLoc> webLocs, WebCommand command) : base(parent) { this.webLocs = webLocs; this.command = command; }
internal DeactivateWebFeatureCommand(InstallProcessControl parent, IList <WebLoc> webLocs) : base(parent, webLocs, WebCommand.Deactivate) { }
internal SiteCollectionFeatureCommand(InstallProcessControl parent, IList <SiteLoc> siteCollectionLocs, SiteCollectionCommand command) : base(parent) { this.siteCollectionLocs = siteCollectionLocs; this.command = command; }
internal DeactivateSiteCollectionFeatureCommand(InstallProcessControl parent, IList <SiteLoc> siteCollectionLocs) : base(parent, siteCollectionLocs, SiteCollectionCommand.Deactivate) { }
protected FeatureCommand(InstallProcessControl parent) : base(parent) { }
internal ActivateSiteCollectionFeatureCommand(InstallProcessControl parent, IList<SiteLoc> siteCollectionLocs) : base(parent, siteCollectionLocs, SiteCollectionCommand.Activate) { }
internal ActivateFarmFeatureCommand(InstallProcessControl parent) : base(parent) { }
public static Command CreateDeactivatorCommand(InstallProcessControl parent, InstallOperation operation) { FeaturesCommand cmd = new FeaturesCommand(parent, FeatureActivator.ActivationDirection.Deactivate, operation); return cmd; }
internal DeactivateWebFeatureCommand(InstallProcessControl parent, IList<WebLoc> webLocs) : base(parent, webLocs, WebCommand.Deactivate) { }
internal WebFeatureCommand(InstallProcessControl parent, IList<WebLoc> webLocs, WebCommand command) : base(parent) { this.webLocs = webLocs; this.command = command; }
private void ReportActivations() { FeatureLocations flocs = InstallProcessControl.GetFeaturedLocations(myOperation); myList.View = View.Details; myList.Columns.Clear(); myList.Columns.Add("Scope", 50); myList.Columns.Add("WebApp", 100); myList.Columns.Add("Site", 100); myList.Columns.Add("Web", 100); if (InstallConfiguration.FeatureIdList.Count > 1) { myList.Columns.Add("#Features", 30); } // Farm foreach (FeatureLoc floc in flocs.FarmLocations) { AddLocationItemToDisplay(SPFeatureScope.Farm, "", "", "", floc.featureList.Count); } // Web Application foreach (FeatureLoc floc in flocs.WebAppLocations) { SPWebApplication webapp = GetWebAppById(floc.WebAppId); if (webapp == null) { continue; } AddLocationItemToDisplay(SPFeatureScope.WebApplication , GetWebAppName(webapp), "", "", floc.featureList.Count); } // Site Collection foreach (FeatureLoc floc in flocs.SiteLocations) { SPSite site = new SPSite(floc.SiteId); if (site == null) { continue; } try { AddLocationItemToDisplay(SPFeatureScope.Site , GetWebAppName(site.WebApplication), site.RootWeb.Title , "", floc.featureList.Count); } finally { site.Dispose(); } } // Web foreach (FeatureLoc floc in flocs.WebLocations) { SPSite site = new SPSite(floc.SiteId); if (site == null) { continue; } try { SPWeb web = site.OpenWeb(floc.WebId); if (web == null) { continue; } try { AddLocationItemToDisplay(SPFeatureScope.Web , GetWebAppName(web.Site.WebApplication), web.Site.RootWeb.Title , web.Title, floc.featureList.Count); } finally { web.Dispose(); } } finally { site.Dispose(); } } }