168. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/10/2017 1:01:48 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

168.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\VixInstallerSolution2013.root\VixInstallerSolution2013\VixInstaller WizardForm.cs Thu Jun 29 17:22:35 2017 UTC
2 C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\VixInstallerSolution2013.root\VixInstallerSolution2013\VixInstaller WizardForm.cs Mon Jul 10 17:10:26 2017 UTC

168.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 622
Changed 1 2
Inserted 0 0
Removed 0 0

168.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

168.4 Active regular expressions

No regular expressions were active.

168.5 Comparison detail

  1   using Syst em;
  2   using Syst em.Collect ions.Gener ic;
  3   using Syst em.Compone ntModel;
  4   using Syst em.Data;
  5   using Syst em.Drawing ;
  6   using Syst em.Text;
  7   using Syst em.Windows .Forms;
  8   using Syst em.Diagnos tics;
  9   using log4 net;
  10   using gov. va.med.ima ging.excha nge.VixIns taller.bus iness;
  11   using Syst em.Configu ration;
  12   using Syst em.IO;
  13  
  14   namespace  gov.va.med .imaging.e xchange.Vi xInstaller .ui
  15   {
  16       public  sealed pa rtial clas s WizardFo rm : Form,  IWizardFo rm
  17       {
  18           pr ivate ILog  Logger()
  19           {
  20                return L ogManager. GetLogger( this.GetTy pe().Name) ;
  21           }
  22  
  23           pr ivate bool  isDevelop erMode = f alse;
  24           pu blic event  EventHand ler OnDevM odeChange;
  25           pr ivate List <WizardPag e> wizardP ages = new  List<Wiza rdPage>();
  26           pr ivate Stac k<WizardPa ge> previo usWizardPa ges = new  Stack<Wiza rdPage>();
  27           pr ivate Wiza rdPage cur rentWizard Page = nul l;
  28           pr ivate VixC onfigurati onParamete rs config  = null;
  29           pr ivate VixM anifest ma nifest = n ull;
  30  
  31           pu blic Wizar dForm()
  32           {
  33                Initiali zeComponen t();
  34           }
  35  
  36           #r egion IWiz ardForm Me mbers
  37  
  38           pu blic void  EnableCanc elButton(b ool isEnab led)
  39           {
  40                this.but tonCancel. Enabled =  isEnabled;
  41           }
  42  
  43           pu blic void  EnableNext Button(boo l isEnable d)
  44           {
  45                this.but tonNext.Te xt = "&Nex t >";
  46                this.but tonNext.En abled = is Enabled;
  47                if (isEn abled == t rue)
  48                {
  49                    this .buttonNex t.Focus();
  50                }
  51           }
  52  
  53           pu blic void  EnableBack Button(boo l isEnable d)
  54           {
  55                this.but tonBack.En abled = is Enabled;
  56           }
  57  
  58           pu blic void  EnableFini shButton(b ool isEnab led)
  59           {
  60                this.but tonNext.Te xt = "Fini sh";
  61                this.but tonNext.En abled = is Enabled;
  62           }
  63  
  64           pu blic bool  IsDevelope rMode()
  65           {
  66                return t his.isDeve loperMode;
  67           }
  68  
  69           pu blic int G etWizardPa geIndex(St ring fully QualifiedW izardPageC lassName)
  70           {
  71                int wiza rdPageInde x = -1;
  72                WizardPa ge page =  null;
  73  
  74                for (int  i=0 ; i <  this.wiza rdPages.Co unt ; i++)
  75                {
  76                    page  = this.wi zardPages[ i];
  77                    if ( page.GetTy pe().FullN ame == ful lyQualifie dWizardPag eClassName )
  78                    {
  79                         wizardPage Index = i;
  80                         break;
  81                    }
  82                }
  83  
  84                Debug.As sert(wizar dPageIndex  >= 0);
  85                return w izardPageI ndex;
  86           }
  87  
  88           pu blic IVixC onfigurati onParamete rs GetVixC onfigurati onParamete rs()
  89           {
  90                return ( IVixConfig urationPar ameters) t his.config ;
  91           }
  92  
  93           #e ndregion
  94  
  95           #r egion even ts
  96           pr ivate void  WizardFor m_Load(obj ect sender , EventArg s e)
  97           {
  98                this.man ifest = ne w VixManif est(Applic ation.Star tupPath);
  99                VixFacad e.Manifest  = this.ma nifest;
  100                TomcatFa cade.Manif est = this .manifest;
  101                JavaFaca de.Manifes t = this.m anifest;
  102                Business Facade.Man ifest = th is.manifes t;
  103                LaurelBr idgeFacade .Manifest  = this.man ifest;
  104                ZFViewer Facade.Man ifest = th is.manifes t;
  105  
  106  
  107                // Get a  new or ex isting VIX  configura tion
  108                this.con fig = VixC onfigurati onParamete rs.GetVixC onfigurati on(this.ma nifest.Ful lyQualifie dPatchNumb er, "Markl ar", "R00t beer", fal se); // fa lse means  not a patc h - full w izard is u sed
  109  
  110                // provi de a devel oper overr ide to for ce the Lau rel Bridge  prerequis ite not to  be requir ed
  111                string i sLaurelBri dgeRequire dSetting =  Configura tionManage r.AppSetti ngs["IsLau relBridgeR equired"];
  112                if (isLa urelBridge RequiredSe tting != n ull)
  113                {
  114                    bool  isLaurelB ridgeRequi red;
  115                    if ( Boolean.Tr yParse(isL aurelBridg eRequiredS etting, ou t isLaurel BridgeRequ ired) == t rue)
  116                    {
  117                         this.confi g.IsLaurel BridgeRequ ired = isL aurelBridg eRequired;
  118                    }
  119                }
  120  
  121                LoadWiza rdPages();
  122  
  123                // moved  after Loa dWizardPat es which i s where th e VIX role  is curren tly determ ined
  124                SetAppli cationTitl eBar();//  set the Wi zard Form  title to i ndicate pa tch number
  125  
  126                this.Cha ngeWizardP age(0);
  127           }
  128  
  129           pr ivate void  buttonCan cel_Click( object sen der, Event Args e)
  130           {
  131                DialogRe sult resul t = Messag eBox.Show( "Do you re ally want  to quit th e VIX Serv ice Instal lation Wiz ard?", "VI X Installa tion is no t complete ", Message BoxButtons .YesNo);
  132                if (resu lt == Dial ogResult.Y es)
  133                {
  134                    this .Close();
  135                }
  136           }
  137  
  138           pr ivate void  labelDevM ode_Click( object sen der, Event Args e)
  139           {
  140                this.isD eveloperMo de = !this .isDevelop erMode;
  141                SetAppli cationTitl eBar();//  set the Wi zard Form  title to i ndicate th e status c hange
  142                OnDevMod eChange(th is, EventA rgs.Empty) ;
  143           }
  144  
  145           pr ivate void  buttonNex t_Click(ob ject sende r, EventAr gs e)
  146           {
  147                if (this .buttonNex t.Text ==  "Finish")
  148                {
  149                    this .Close();
  150                }
  151                else
  152                {
  153                    this .previousW izardPages .Push(this .currentWi zardPage);
  154                    this .ChangeWiz ardPage(th is.current WizardPage .GetNextPa geIndex()) ;
  155                }
  156           }
  157  
  158           pr ivate void  buttonBac k_Click(ob ject sende r, EventAr gs e)
  159           {
  160                Debug.As sert(this. previousWi zardPages. Count > 0) ;
  161                this.cur rentWizard Page = thi s.previous WizardPage s.Pop();
  162                this.Cha ngeWizardP age(this.c urrentWiza rdPage.Pag eIndex);
  163           }
  164  
  165           #e ndregion
  166  
  167           #r egion priv ate method s and prop erties
  168  
  169           pr ivate void  SetApplic ationTitle Bar()
  170           {
  171                if (this .manifest. ContainsVi xRole(VixR oleType.Di comGateway ))
  172                {
  173                    this .Text = "H DIG Servic e Installa tion Wizar d";
  174                }
  175                else if  (this.mani fest.Conta insVixRole (VixRoleTy pe.RelayVi x))
  176                {
  177                    this .Text = "r VIX Servic e Installa tion Wizar d";
  178                }
  179                else if  (this.mani fest.Conta insVixRole (VixRoleTy pe.Enterpr iseGateway ))
  180                {
  181                    this .Text = "c VIX Servic e Installa tion Wizar d";
  182                }
  183                else //T ODO: Patch  104 will  need to be  much smar ter here.
  184                {
  185                    this .Text = "V IX Service  Installat ion Wizard ";
  186                }
  187                this.Tex t += " " +  this.mani fest.Fully QualifiedP atchNumber ;
  188                if (this .isDevelop erMode ==  true)
  189                {
  190                    this .Text += "  - Develop er Mode";
  191                }
  192           }
  193  
  194           pr ivate void  ChangeWiz ardPage(in t pageInde x)
  195           {
  196                Debug.As sert(pageI ndex < thi s.wizardPa ges.Count) ;
  197                this.wiz ardPages[p ageIndex]. Dock = Doc kStyle.Fil l;
  198                this.pan elWizardPa geContaine r.Controls .Clear();
  199                this.pan elWizardPa geContaine r.Controls .Add(this. wizardPage s[pageInde x]);
  200                if (this .currentWi zardPage ! = null) //  this won' t be set y et for the  welcome p age
  201                {
  202                    this .currentWi zardPage.U nregisterD evModeChan geHandler( );
  203                }
  204                this.cur rentWizard Page = thi s.wizardPa ges[pageIn dex];
  205                this.cur rentWizard Page.Initi alize();
  206                this.cur rentWizard Page.Regis terDevMode ChangeHand ler();
  207                this.cur rentWizard Page.Focus ();
  208                Logger() .Info("Dis play wizar d page " +  this.curr entWizardP age.GetTyp e().Name);
  209           }
  210  
  211           pr ivate void  LoadWizar dPages()
  212           {
  213                // for p atch 83 de termine if  we can lo ad the dep loyment co nfiguratio n page for  the mini  vix
  214                string a llowMiniVi xAppSettin g = Config urationMan ager.AppSe ttings["Al lowP83Work groupInsta ll"];
  215                bool all owMiniVix;
  216                Boolean. TryParse(a llowMiniVi xAppSettin g, out all owMiniVix) ;
  217  
  218                // get t he deploym ent config urations
  219                VixDeplo ymentConfi guration[]  deployCon figs = thi s.manifest .VixDeploy mentConfig urations;
  220  
  221                // load  wizard pag es
  222                int page Index = 0;
  223                this.wiz ardPages.A dd(new New InstallWel comePage(t his as IWi zardForm,  pageIndex+ +));
  224                if (VixF acade.IsVi xInstalled ()) // we  are updati ng a previ ously inst alled ViX  - in this  one case o nly, allow  the JDK w ithout che cking deve loper mode
  225                {
  226                    // a dd page to  stop ViX  and un-ins tall web a pplication s
  227                    this .wizardPag es.Add(new  UndeployV ixPage(thi s as IWiza rdForm, pa geIndex++) );
  228                }
  229                else
  230                {
  231                    if ( this.confi g.VixRole  == VixRole Type.SiteV ix) // bad  in that i t requires  that the  Site VIX m anifest ha ve two dep loyment co nfiguratio ns
  232                    {
  233                         Debug.Asse rt(deployC onfigs.Len gth > 1);
  234                         if (allowM iniVix)
  235                         {
  236                             this.w izardPages .Add(new S electDeplo ymentConfi gPage(this  as IWizar dForm, pag eIndex++)) ;
  237                         }
  238                    }
  239                    else  if (deplo yConfigs.L ength > 1)
  240                    {
  241                         this.wizar dPages.Add (new Selec tDeploymen tConfigPag e(this as  IWizardFor m, pageInd ex++));
  242                    }
  243  
  244                    #reg ion deprec ated - pat ch based i nitializat ion
  245                    //if  (manifest .MajorPatc hNumber ==  83 || man ifest.Majo rPatchNumb er == 119  || manifes t.MajorPat chNumber = = 104) //T ODO: remov e in P83 m aintenance  patch as  the mini V IX will be come offic ial
  246                    //{
  247                    //     if (allo wMiniVix)
  248                    //     {
  249                    //         this .wizardPag es.Add(new  SelectDep loymentCon figPage(th is as IWiz ardForm, p ageIndex++ ));
  250                    //     }
  251  
  252                    //     if (depl oyConfigs. Length ==  1) // 104  CVIX
  253                    //     {
  254                    //         conf ig.VixRole  = deployC onfigs[0]. VixRole;
  255                    //         if ( config.Vix Role == Vi xRoleType. Enterprise Gateway) / / sanity c heck
  256                    //         {
  257                      //               config.Htt pConnector Port =  PORT ; // one t ime defaul t change
  258                    //         }
  259                    //     }
  260                    //     else
  261                    //     {
  262                    //         conf ig.VixRole  = VixRole Type.SiteV ix; // 104  VIX, 119  VIX
  263                    //     }
  264                    //}
  265                    //el se if (dep loyConfigs .Length ==  1) // we  know what  the vix ro le will be  so set it  - P34 doe s this
  266                    //{
  267                    //     config.V ixRole = d eployConfi gs[0].VixR ole;
  268                    //}
  269                    //el se if (dep loyConfigs .Length >  1)
  270                    //{
  271                    //     this.wiz ardPages.A dd(new Sel ectDeploym entConfigP age(this a s IWizardF orm, pageI ndex++));
  272                    //}
  273                    #end region
  274                }
  275  
  276                if (this .config.Vi xRole == V ixRoleType .Enterpris eGateway)
  277                {
  278                    this .wizardPag es.Add(new  Configure CvixSitePa ge(this as  IWizardFo rm, pageIn dex++));
  279                }
  280                else
  281                {
  282                    this .wizardPag es.Add(new  Configure VixSitePag e(this as  IWizardFor m, pageInd ex++));
  283                }
  284  
  285                if (this .config.Vi xRole == V ixRoleType .DicomGate way) // ne ed to make  decisions  on the pr erequisite s page bas ed on this  - DKB 8/1 7/10
  286                {
  287                    this .wizardPag es.Add(new  Configure DicomPage( this as IW izardForm,  pageIndex ++));
  288                }
  289  
  290                this.wiz ardPages.A dd(new Pre requisiteC hecklistPa ge(this as  IWizardFo rm, pageIn dex++));
  291                this.wiz ardPages.A dd(new Con figureVixC achePage(t his as IWi zardForm,  pageIndex+ +));
  292                
  293                if (this .manifest. ContainsVi xRole(VixR oleType.Si teVix) &&  !this.mani fest.Conta insVixRole (VixRoleTy pe.RelayVi x))
  294                {
  295                    if ( manifest.M ajorPatchN umber >= 1 30) 
  296                    {
  297                         this.wizar dPages.Add (new Confi gureRoiPag e(this as  IWizardFor m, pageInd ex++));
  298                    }
  299                    this .wizardPag es.Add(new  Configure VixWormhol ePage(this  as IWizar dForm, pag eIndex++)) ;
  300                }
  301  
  302                if (this .config.Vi xRole == V ixRoleType .Enterpris eGateway)
  303                {
  304                    this .wizardPag es.Add(new  Configure XcaPage(th is as IWiz ardForm, p ageIndex++ ));
  305                }
  306  
  307                this.wiz ardPages.A dd(new Ins tallVixPag e(this as  IWizardFor m, pageInd ex++));
  308           }
  309  
  310           #e ndregion
  311       }
  312   }