162. EPMO Open Source Coordination Office Redaction File Detail Report

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

162.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ExchangeDataSource\main\src\java\gov\va\med\imaging\exchange\proxy\v1 ExchangeProxyUtilities.java Mon Dec 4 21:35:22 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ExchangeDataSource\main\src\java\gov\va\med\imaging\exchange\proxy\v1 ExchangeProxyUtilities.java Mon Dec 4 21:59:57 2017 UTC

162.2 Comparison summary

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

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

162.4 Active regular expressions

No regular expressions were active.

162.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: May  8, 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.exc hange.prox y.v1;
  27  
  28   import jav a.util.Sor tedSet;
  29  
  30   import org .apache.lo gging.log4 j.LogManag er;
  31   import org .apache.lo gging.log4 j.Logger;
  32  
  33   import gov .va.med.im aging.exch ange.busin ess.Site;
  34   import gov .va.med.im aging.prox y.ids.IDSO peration;
  35   import gov .va.med.im aging.prox y.ids.IDSP roxy;
  36   import gov .va.med.im aging.prox y.ids.IDSS ervice;
  37   import gov .va.med.im aging.url. exchange.c onfigurati on.Exchang eSiteConfi guration;
  38  
  39   /**
  40    * Common  utilities  for all Ex change dat a sources
  41    * 
  42    * @author         
WERFEJ
  43    *
  44    */
  45   public cla ss Exchang eProxyUtil ities 
  46   {
  47           
  48           pr ivate fina l static I DSProxy ve rsionProxy  = new IDS Proxy();
  49           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Exch angeProxyU tilities.c lass);
  50           
  51           
  52           pu blic stati c boolean  isExchange SiteServic eAvailable (Site site , String s erviceName , String d atasourceV ersion)
  53           {
  54                    // g et the ser vice from  the IDS on  the remot e web app
  55                    Sort edSet<IDSS ervice> se rvices = v ersionProx y.getImagi ngServices (site, ser viceName,  datasource Version);
  56                    // i f nothing  is returne d, then th ere are no  facades t o service  this versi on
  57                    if(( services = = null) ||  (services .size() <=  0))
  58                             return  false;
  59                    IDSS ervice ser vice = ser vices.firs t();
  60                    IDSO peration i mageOperat ion = serv ice.getOpe rationByTy pe(IDSOper ation.IDS_ OPERATION_ IMAGE);
  61                    IDSO peration m etadataOpe ration = s ervice.get OperationB yType(IDSO peration.I DS_OPERATI ON_METADAT A);
  62                    if(( imageOpera tion == nu ll) || (me tadataOper ation == n ull))
  63                    {
  64                             logger .error("Mi ssing an I DS operati on (" + (i mageOperat ion == nul l ? "image " : "metad ata") + "  null for s ite [" + s ite.getSit eNumber()  + "]");
  65                             return  false;
  66                    }        
  67                    retu rn true;
  68           }
  69           
  70           pu blic stati c Exchange ProxyServi ces getExc hangeProxy Services(E xchangeSit eConfigura tion siteC onfigurati on,  
  71                             String  siteNumbe r, String  serviceNam e, String  datasource Version, 
  72                             String  host, int  port, Str ing alienS iteNumber)
  73           {
  74                    // g et the ser vice from  the IDS on  the remot e web app
  75                    Sort edSet<IDSS ervice> se rvices = v ersionProx y.getImagi ngServices (siteNumbe r, 
  76                                      host, po rt, servic eName, dat asourceVer sion);
  77                    // i f nothing  is returne d, then th ere are no  facades t o service  this versi on
  78                    if(( services = = null) ||  (services .size() <=  0))
  79                    {
  80                             logger .warn("Got  null serv ices back  from IDS s ervice for  site [" +  siteNumbe r + "], in dicates re mote site  does not h ave a VIX.  Cannot us e Federati on for thi s site");
  81                             return  null;
  82                    }
  83                    IDSS ervice ser vice = ser vices.firs t();
  84                    
  85                    Exch angeProxyS ervices pr oxyService s = new Ex changeProx yServices( alienSiteN umber);                 
  86                    
  87                    for( IDSOperati on operati on : servi ce.getOper ations())
  88                    {
  89                             proxyS ervices.ad d(new Exch angeProxyS ervice(sit eConfigura tion, serv ice, opera tion, host , port));
  90                    }
  91                    
  92                    retu rn proxySe rvices;
  93           }
  94           
  95  
  96   }