internal static InstallProcessControl CreateProcessControl()
 {
     InstallProcessControl control = new InstallProcessControl();
       control.Title = Resources.CommonUIStrings.controlTitleInstalling;
       control.SubTitle = Resources.CommonUIStrings.controlSubTitleInstalling;
       return control;
 }
Beispiel #2
0
 private FeaturesCommand(InstallProcessControl parent, FeatureActivator.ActivationDirection direction, InstallOperation operation)
     : base(parent)
 {
     this.direction = direction;
     this.operation = operation;
     requestedLocs  = InstallProcessControl.GetFeaturedLocations(operation);
 }
Beispiel #3
0
 private FeatureActivator(ActivationDirection direction, InstallOperation operation, ILog log)
 {
     this.direction = direction;
     this.operation = operation;
     this.log       = log;
     requestedLocs  = InstallProcessControl.GetFeaturedLocations(operation);
 }
Beispiel #4
0
        internal static InstallProcessControl CreateProcessControl()
        {
            InstallProcessControl control = new InstallProcessControl();

            control.Title    = Resources.CommonUIStrings.controlTitleInstalling;
            control.SubTitle = Resources.CommonUIStrings.controlSubTitleInstalling;
            return(control);
        }
Beispiel #5
0
        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;
 }
Beispiel #7
0
            public static Command CreateActivatorCommand(InstallProcessControl parent, InstallOperation operation)
            {
                FeaturesCommand cmd = new FeaturesCommand(parent, FeatureActivator.ActivationDirection.Activate, operation);

                return(cmd);
            }
Beispiel #8
0
 internal WebFeatureCommand(InstallProcessControl parent, IList <WebLoc> webLocs, WebCommand command)
     : base(parent)
 {
     this.webLocs = webLocs;
     this.command = command;
 }
Beispiel #9
0
 internal DeactivateWebFeatureCommand(InstallProcessControl parent, IList <WebLoc> webLocs)
     : base(parent, webLocs, WebCommand.Deactivate)
 {
 }
Beispiel #10
0
 internal SiteCollectionFeatureCommand(InstallProcessControl parent, IList <SiteLoc> siteCollectionLocs, SiteCollectionCommand command)
     : base(parent)
 {
     this.siteCollectionLocs = siteCollectionLocs;
     this.command            = command;
 }
Beispiel #11
0
 internal DeactivateSiteCollectionFeatureCommand(InstallProcessControl parent, IList <SiteLoc> siteCollectionLocs)
     : base(parent, siteCollectionLocs, SiteCollectionCommand.Deactivate)
 {
 }
Beispiel #12
0
 protected FeatureCommand(InstallProcessControl parent) : base(parent)
 {
 }
 internal ActivateSiteCollectionFeatureCommand(InstallProcessControl parent, IList<SiteLoc> siteCollectionLocs)
     : base(parent, siteCollectionLocs, SiteCollectionCommand.Activate)
 {
 }
Beispiel #14
0
 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 ActivateFarmFeatureCommand(InstallProcessControl parent)
     : base(parent)
 {
 }
 private FeaturesCommand(InstallProcessControl parent, FeatureActivator.ActivationDirection direction, InstallOperation operation)
     : base(parent)
 {
     this.direction = direction;
     this.operation = operation;
     requestedLocs = InstallProcessControl.GetFeaturedLocations(operation);
 }
 protected FeatureCommand(InstallProcessControl parent)
     : base(parent)
 {
 }
 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;
 }
Beispiel #21
0
        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();
                }
            }
        }