329. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:47 PM Central Standard 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.

329.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\MIXWebApp\main\src\java\gov\va\med\imaging\mix MixContext.java Mon Dec 4 21:34:52 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\MIXWebApp\main\src\java\gov\va\med\imaging\mix MixContext.java Mon Dec 4 22:04:19 2017 UTC

329.2 Comparison summary

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

329.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

329.4 Active regular expressions

No regular expressions were active.

329.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.i maging.mix ;
  5  
  6   import gov .va.med.im aging.core .FacadeRou terUtility ;
  7   import gov .va.med.im aging.core .interface s.IAppConf iguration;
  8   import gov .va.med.im aging.tran sactioncon text.Trans actionCont ext;
  9   import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ;
  10  
  11   import jav ax.servlet .http.Http ServletRes ponse;
  12  
  13   import org .apache.lo gging.log4 j.LogManag er;
  14   import org .apache.lo gging.log4 j.Logger;
  15   import org .springfra mework.bea ns.BeansEx ception;
  16   import org .springfra mework.con text.Appli cationCont ext;
  17   import org .springfra mework.con text.Appli cationCont extAware;
  18  
  19   /**
  20    * @author   DNS  TITTOC
  21    *
  22    */
  23   public cla ss MixCont ext
  24   implements  Applicati onContextA ware 
  25   {
  26  
  27           pr ivate stat ic Applica tionContex t appConte xt;
  28           pr ivate stat ic Logger  logger = L ogManager. getLogger( MixContext .class);
  29  
  30           pr ivate IApp Configurat ion appCon figuration  = null;
  31           
  32           pr ivate stat ic MixCont ext imagin gContext;
  33           
  34           /*  (non-Java doc)
  35            *  @see org. springfram ework.cont ext.Applic ationConte xtAware#se tApplicati onContext( org.spring framework. context.Ap plicationC ontext)
  36            * /
  37           @O verride
  38           pu blic void  setApplica tionContex t(Applicat ionContext  context)
  39                             throws  BeansExce ption {
  40                    appC ontext = c ontext;
  41           }
  42           
  43           pu blic stati c MixRoute r getMixRo uter()
  44           {
  45                    MixR outer rout er = null;
  46                    Tran sactionCon text trans actionCont ext = Tran sactionCon textFactor y.get();
  47                    try
  48                    {
  49                             router  = FacadeR outerUtili ty.getFaca deRouter(M ixRouter.c lass);
  50                    } 
  51                    catc h (Excepti on x)
  52                    {
  53                             String  msg = "Er ror gettin g MixRoute r instance .  Applica tion deplo yment is p robably in correct.";                            
  54                             Transa ctionConte xtFactory. get().setE rrorMessag e(msg + "\ n" + x.get Message()) ;
  55                             logger .error(msg , x);
  56                             transa ctionConte xt.setExce ptionClass Name(x.get Class().ge tSimpleNam e());
  57                             transa ctionConte xt.setResp onseCode(H ttpServlet Response.S C_CONFLICT  + "");
  58                    }
  59                    retu rn router;
  60           }        
  61           
  62           pr ivate stat ic void in itializeIm agingConte xt()
  63           {
  64                    if(i magingCont ext == nul l)
  65                    {
  66                             imagin gContext =  new MixCo ntext();
  67                    }                 
  68           }
  69           
  70           pu blic stati c synchron ized IAppC onfigurati on getAppC onfigurati on()
  71           {
  72                    init ializeImag ingContext ();
  73                    if(i magingCont ext.appCon figuration  == null)
  74                    {
  75                             Object  appConfig Obj = appC ontext.get Bean("appC onfigurati on");
  76                             imagin gContext.a ppConfigur ation = (I AppConfigu ration)app ConfigObj;                         
  77                    }
  78                    retu rn imaging Context.ap pConfigura tion;
  79           }
  80   }