360. EPMO Open Source Coordination Office Redaction File Detail Report

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

360.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\SiteServiceDataSourceProvider\main\src\java\gov\va\med\siteservice\rest SiteServiceRestProxy.java Mon Dec 4 21:34:36 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\SiteServiceDataSourceProvider\main\src\java\gov\va\med\siteservice\rest SiteServiceRestProxy.java Mon Dec 4 22:05:41 2017 UTC

360.2 Comparison summary

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

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

360.4 Active regular expressions

No regular expressions were active.

360.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: Sep  28, 2012
  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.s iteservice .rest;
  27  
  28   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  29   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  30   import gov .va.med.im aging.exch ange.busin ess.Region ;
  31   import gov .va.med.im aging.exch ange.busin ess.Site;
  32   import gov .va.med.im aging.exch ange.sites ervice.res t.translat or.SiteSer viceRestTr anslator;
  33   import gov .va.med.im aging.exch ange.sites ervice.res t.types.Si teServiceV isnsType;
  34   import gov .va.med.si teservice. RegionMapL oadExcepti on;
  35   import gov .va.med.si teservice. SiteMapLoa dException ;
  36  
  37   import jav a.util.Lis t;
  38  
  39   import jav ax.ws.rs.c ore.MediaT ype;
  40  
  41   import org .apache.lo gging.log4 j.LogManag er;
  42   import org .apache.lo gging.log4 j.Logger;
  43  
  44   /**
  45    * @author         
WERFEJ
  46    *
  47    */
  48   public cla ss SiteSer viceRestPr oxy
  49   {
  50           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Site ServiceRes tProxy.cla ss);
  51           
  52           pu blic stati c List<Sit e> getSite s(String s iteService Url)
  53           th rows SiteM apLoadExce ption
  54           {
  55                    logg er.info("E xecuting s ite servic e v2 reque st to load  sites fro m '" + sit eServiceUr l + "'.");
  56                    try
  57                    {
  58                             SiteSe rviceVisns Type visns  = getVisn s(siteServ iceUrl);
  59                             return  SiteServi ceRestTran slator.tra nslateToSi tes(visns) ;
  60                    } 
  61                    catc h (MethodE xception m X)
  62                    {
  63                             logger .error(mX) ;
  64                             throw  new SiteMa pLoadExcep tion(mX.ge tMessage() , true);
  65                    } 
  66                    catc h (Connect ionExcepti on cX)
  67                    {
  68                             logger .error(cX) ;
  69                             throw  new SiteMa pLoadExcep tion(cX.ge tMessage() , true);
  70                    }
  71           }
  72           
  73           pu blic stati c List<Reg ion> getRe gions(Stri ng siteSer viceUrl)
  74           th rows Regio nMapLoadEx ception
  75           {
  76                    logg er.info("E xecuting s ite servic e v2 reque st to load  regions f rom '" + s iteService Url + "'." );
  77                    try
  78                    {
  79                             
  80                             SiteSe rviceVisns Type visns  = getVisn s(siteServ iceUrl);
  81                             return  SiteServi ceRestTran slator.tra nslateToRe gions(visn s);
  82                    } 
  83                    catc h (MethodE xception m X)
  84                    {
  85                             logger .error(mX) ;
  86                             throw  new Region MapLoadExc eption(mX. getMessage (), true);
  87                    } 
  88                    catc h (Connect ionExcepti on cX)
  89                    {
  90                             logger .error(cX) ;
  91                             throw  new Region MapLoadExc eption(cX. getMessage (), true);
  92                    }
  93           }
  94           
  95           pr ivate stat ic SiteSer viceVisnsT ype getVis ns(String  siteServic eUrl)
  96           th rows Metho dException , Connecti onExceptio n
  97           {
  98                    Site ServiceRes tGetClient  getClient  = new Sit eServiceRe stGetClien t(siteServ iceUrl, Me diaType.AP PLICATION_ XML_TYPE);
  99                    Site ServiceVis nsType vis ns = getCl ient.execu teRequest( SiteServic eVisnsType .class);
  100                    logg er.info("R ecieved su ccessful r esponse fr om '" + si teServiceU rl + "', t ranslating  result.") ;
  101                    retu rn visns;
  102           }
  103  
  104   }