143. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/10/2017 1:01:46 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.

143.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\MIXWebApp\main\src\java\gov\va\med\imaging\mix MixContext.java Thu Jun 29 17:23:01 2017 UTC
2 C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\MIXWebApp\main\src\java\gov\va\med\imaging\mix MixContext.java Thu Jul 6 15:04:48 2017 UTC

143.2 Comparison summary

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

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

143.4 Active regular expressions

No regular expressions were active.

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