199. EPMO Open Source Coordination Office Redaction File Detail Report

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

199.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\FederationWebApp\main\src\java\gov\va\med\imaging\federation ImagingFederationContext.java Mon Dec 4 21:34:42 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\FederationWebApp\main\src\java\gov\va\med\imaging\federation ImagingFederationContext.java Mon Dec 4 22:00:41 2017 UTC

199.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 202
Changed 2 4
Inserted 0 0
Removed 0 0

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

199.4 Active regular expressions

No regular expressions were active.

199.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Feb  29, 2008
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
WERFEJ
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24  
  25    */
  26   package go v.va.med.i maging.fed eration;
  27  
  28   import jav ax.servlet .http.Http ServletRes ponse;
  29  
  30   import gov .va.med.im aging.core .FacadeRou terUtility ;
  31   import gov .va.med.im aging.core .interface s.IAppConf iguration;
  32   import gov .va.med.im aging.core .interface s.Router;
  33   import gov .va.med.im aging.tran sactioncon text.Trans actionCont ext;
  34   import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ;
  35  
  36   import org .apache.lo gging.log4 j.LogManag er;
  37   import org .apache.lo gging.log4 j.Logger;
  38   import org .springfra mework.bea ns.BeansEx ception;
  39   import org .springfra mework.con text.Appli cationCont ext;
  40   import org .springfra mework.con text.Appli cationCont extAware;
  41  
  42   /**
  43    * @author         
WERFEJ
  44    *
  45    */
  46   public cla ss Imaging Federation Context 
  47   implements  Applicati onContextA ware 
  48   {
  49  
  50           pr ivate stat ic Applica tionContex t appConte xt;
  51           pr ivate stat ic Logger  logger = L ogManager. getLogger( ImagingFed erationCon text.class );
  52  
  53           pr ivate IApp Configurat ion appCon figuration  = null;
  54           
  55           pr ivate stat ic Imaging Federation Context im agingConte xt;
  56           
  57           /*  (non-Java doc)
  58            *  @see org. springfram ework.cont ext.Applic ationConte xtAware#se tApplicati onContext( org.spring framework. context.Ap plicationC ontext)
  59            * /
  60           @O verride
  61           pu blic void  setApplica tionContex t(Applicat ionContext  context)
  62                             throws  BeansExce ption {
  63                    appC ontext = c ontext;
  64           }
  65           
  66           pu blic stati c Federati onRouter g etFederati onRouter()
  67           {
  68                    Fede rationRout er router  = null;
  69                    Tran sactionCon text trans actionCont ext = Tran sactionCon textFactor y.get();
  70                    try
  71                    {
  72                             router  = FacadeR outerUtili ty.getFaca deRouter(F ederationR outer.clas s);
  73                    } 
  74                    catc h (Excepti on x)
  75                    {
  76                             String  msg = "Er ror gettin g Federati onRouter i nstance.   Applicatio n deployme nt is prob ably incor rect.";                    
  77                             Transa ctionConte xtFactory. get().setE rrorMessag e(msg + "\ n" + x.get Message()) ;
  78                             logger .error(msg , x);
  79                             transa ctionConte xt.setExce ptionClass Name(x.get Class().ge tSimpleNam e());
  80                             transa ctionConte xt.setResp onseCode(H ttpServlet Response.S C_CONFLICT  + "");
  81                    }
  82                    retu rn router;
  83           }        
  84           
  85           pr ivate stat ic void in itializeIm agingConte xt()
  86           {
  87                    if(i magingCont ext == nul l)
  88                    {
  89                             imagin gContext =  new Imagi ngFederati onContext( );
  90                    }                 
  91           }
  92           
  93           pu blic stati c synchron ized IAppC onfigurati on getAppC onfigurati on()
  94           {
  95                    init ializeImag ingContext ();
  96                    if(i magingCont ext.appCon figuration  == null)
  97                    {
  98                             Object  appConfig Obj = appC ontext.get Bean("appC onfigurati on");
  99                             imagin gContext.a ppConfigur ation = (I AppConfigu ration)app ConfigObj;                         
  100                    }
  101                    retu rn imaging Context.ap pConfigura tion;
  102           }
  103   }