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

129.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\MIXDataSource\main\src\java\gov\va\med\imaging\mix\proxy\v1 MixProxyUtilities.java Thu Jun 29 17:23:08 2017 UTC
2 C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\MIXDataSource\main\src\java\gov\va\med\imaging\mix\proxy\v1 MixProxyUtilities.java Thu Jul 6 15:04:28 2017 UTC

129.2 Comparison summary

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

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

129.4 Active regular expressions

No regular expressions were active.

129.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.mix .proxy.v1;
  27  
  28   import jav a.util.Sor tedSet;
  29  
  30   import org .apache.lo g4j.Logger ;
  31  
  32   import gov .va.med.im aging.exch ange.busin ess.Site;
  33   import gov .va.med.im aging.prox y.ids.IDSO peration;
  34   import gov .va.med.im aging.prox y.ids.IDSP roxy;
  35   import gov .va.med.im aging.prox y.ids.IDSS ervice;
  36   import gov .va.med.im aging.url. mix.config uration.MI XSiteConfi guration;
  37  
  38   /**
  39    * Common  utilities  for all Ex change dat a sources
  40    * 
  41    * @author         
WERFEJ
  42    *
  43    */
  44   public cla ss MixProx yUtilities  
  45   {
  46           
  47           pr ivate fina l static I DSProxy ve rsionProxy  = new IDS Proxy();
  48           pr ivate fina l static L ogger logg er = Logge r.getLogge r(MixProxy Utilities. class);
  49           
  50           
  51           pu blic stati c boolean  isMixSiteS erviceAvai lable(Site  site, Str ing servic eName, Str ing dataso urceVersio n)
  52           {
  53                    // g et the ser vice from  the IDS on  the remot e web app
  54                    Sort edSet<IDSS ervice> se rvices = v ersionProx y.getImagi ngServices (site, ser viceName,  datasource Version);
  55                    // i f nothing  is returne d, then th ere are no  facades t o service  this versi on
  56                    if(( services = = null) ||  (services .size() <=  0))
  57                             return  false;
  58                    IDSS ervice ser vice = ser vices.firs t();
  59                    IDSO peration i mageOperat ion = serv ice.getOpe rationByTy pe(IDSOper ation.IDS_ OPERATION_ IMAGE);
  60                    IDSO peration m etadataOpe ration = s ervice.get OperationB yType(IDSO peration.I DS_OPERATI ON_METADAT A);
  61                    if(( imageOpera tion == nu ll) || (me tadataOper ation == n ull))
  62                    {
  63                             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()  + "]");
  64                             return  false;
  65                    }        
  66                    retu rn true;
  67           }
  68           
  69           pu blic stati c MixProxy Services g etMixProxy Services(M IXSiteConf iguration  siteConfig uration,  
  70                             String  siteNumbe r, String  serviceNam e, String  datasource Version, 
  71                             String  host, int  port, Str ing alienS iteNumber)
  72           {
  73                    // g et the ser vice from  the IDS on  the remot e web app
  74                    Sort edSet<IDSS ervice> se rvices = v ersionProx y.getImagi ngServices (siteNumbe r, 
  75                                      host, po rt, servic eName, dat asourceVer sion);
  76                    // i f nothing  is returne d, then th ere are no  facades t o service  this versi on
  77                    if(( services = = null) ||  (services .size() <=  0))
  78                    {
  79                             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");
  80                             return  null;
  81                    }
  82                    IDSS ervice ser vice = ser vices.firs t();
  83                    
  84                    MixP roxyServic es proxySe rvices = n ew MixProx yServices( alienSiteN umber);          
  85                    
  86                    for( IDSOperati on operati on : servi ce.getOper ations())
  87                    {
  88                             proxyS ervices.ad d(new MixP roxyServic e(siteConf iguration,  service,  operation,  host, por t));
  89                    }
  90                    
  91                    retu rn proxySe rvices;
  92           }
  93           
  94  
  95   }