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

181.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ExchangeSiteServiceSOAPServer\main\src\java\gov\va\med\imaging\exchange\siteservice\webservices ExchangeSiteServiceWebservice.java Mon Dec 4 21:35:28 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ExchangeSiteServiceSOAPServer\main\src\java\gov\va\med\imaging\exchange\siteservice\webservices ExchangeSiteServiceWebservice.java Mon Dec 4 22:00:16 2017 UTC

181.2 Comparison summary

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

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

181.4 Active regular expressions

No regular expressions were active.

181.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: Aug  20, 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.site service.we bservices;
  27  
  28   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  29   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  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.Sit eServiceCo ntext;
  33   import gov .va.med.im aging.exch ange.sites ervice.Sit eServiceFa cadeRouter ;
  34   import gov .va.med.im aging.exch ange.sites ervice.tra nslator.Ex changeSite ServiceTra nslator;
  35  
  36   import jav a.rmi.Remo teExceptio n;
  37   import jav a.util.Arr ayList;
  38   import jav a.util.Lis t;
  39  
  40   import org .apache.lo gging.log4 j.LogManag er;
  41   import org .apache.lo gging.log4 j.Logger;
  42   import org .springfra mework.bea ns.BeansEx ception;
  43   import org .springfra mework.con text.Appli cationCont ext;
  44   import org .springfra mework.con text.Appli cationCont extAware;
  45  
  46   /**
  47    * Impleme ntation of  the Excha nge Site S ervice
  48    * 
  49    * @author         
WERFEJ
  50    *
  51    */
  52   public cla ss Exchang eSiteServi ceWebservi ce 
  53   implements  gov.va.me d.vistaweb .webservic es.Imaging ExchangeSi teService. ImagingExc hangeSiteS erviceSoap , Applicat ionContext Aware
  54   {       
  55           pr ivate stat ic Applica tionContex t appConte xt;
  56           pr ivate stat ic Logger  logger = L ogManager. getLogger( ExchangeSi teServiceW ebservice. class);
  57           
  58           /*  (non-Java doc)
  59            *  @see org. springfram ework.cont ext.Applic ationConte xtAware#se tApplicati onContext( org.spring framework. context.Ap plicationC ontext)
  60            * /
  61           @O verride
  62           pu blic void  setApplica tionContex t(Applicat ionContext  context)
  63           th rows Beans Exception 
  64           {
  65                    appC ontext = c ontext;
  66           }
  67           
  68           /*  (non-Java doc)
  69            *  @see gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange SiteServic eSoap#getI magingExch angeSites( )
  70            * /
  71           @O verride
  72           pu blic gov.v a.med.vist aweb.webse rvices.Ima gingExchan geSiteServ ice.ArrayO fImagingEx changeSite TO getImag ingExchang eSites()
  73           th rows Remot eException  
  74           {
  75                    logg er.debug(" Retrieving  all VA si tes");
  76                    Site ServiceFac adeRouter  router = S iteService Context.ge tSiteServi ceFacadeRo uter();
  77                    if(r outer == n ull)
  78                             throw  new Remote Exception( "Error get ting refer ence to fa cade route r.");
  79                    
  80                    try 
  81                    {
  82                             List<R egion> reg ions = rou ter.getReg ionList();
  83                             gov.va .med.vista web.webser vices.Imag ingExchang eSiteServi ce.ArrayOf ImagingExc hangeSiteT O result =  
  84                                      Exchange SiteServic eTranslato r.convertR egionsToSi tes(region s);
  85                             return  result;                                      
  86                    }
  87                    catc h(MethodEx ception mX )
  88                    {
  89                             logger .error("Er ror retrie ving all s ites ", mX );
  90                             throw  new Remote Exception( mX.getMess age());
  91                    }
  92                    catc h(Connecti onExceptio n cX)
  93                    {
  94                             logger .error("Er ror retrie ving all s ites ", cX );
  95                             throw  new Remote Exception( cX.getMess age());
  96                    }
  97           }
  98  
  99           /*  (non-Java doc)
  100            *  @see gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange SiteServic eSoap#getS ite(java.l ang.String )
  101            * /
  102           @O verride
  103           pu blic gov.v a.med.vist aweb.webse rvices.Ima gingExchan geSiteServ ice.Imagin gExchangeS iteTO getS ite(String  siteID) 
  104           th rows Remot eException  
  105           {
  106                    logg er.debug(" Retrieving  Site [" +  siteID +  "]");
  107                    try
  108                    {
  109                             return  getSiteIn ternal(sit eID);
  110                    }
  111                    catc h(MethodEx ception mX )
  112                    {
  113                             logger .error("Er ror retrie ving site  [" + siteI D + "]", m X);
  114                             throw  new Remote Exception( mX.getMess age());
  115                    }
  116                    catc h(Connecti onExceptio n cX)
  117                    {
  118                             logger .error("Er ror retrie ving site  [" + siteI D + "]", c X);
  119                             throw  new Remote Exception( cX.getMess age());
  120                    }
  121           }
  122           
  123           /* *
  124            *  Internal  function t o retrieve  a site 
  125            *  @param si teID
  126            *  @return
  127            *  @throws M ethodExcep tion Occur s if the V iX core th rows an ex ception ge tting the  site
  128            * /
  129           pr ivate gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange SiteTO get SiteIntern al(String  siteID)
  130           th rows Metho dException , Connecti onExceptio n
  131           {
  132                    Site ServiceFac adeRouter  router = S iteService Context.ge tSiteServi ceFacadeRo uter();
  133                    if(r outer == n ull)
  134                             throw  new Connec tionExcept ion("Error  getting r eference t o facade r outer.");
  135                    
  136                    Site  site = ro uter.getSi te(siteID) ;
  137                    
  138                    gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange SiteTO res ult = 
  139                             Exchan geSiteServ iceTransla tor.conver tSite(site , siteID);
  140                    retu rn result;
  141           }
  142  
  143           /*  (non-Java doc)
  144            *  @see gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange SiteServic eSoap#getS ites(java. lang.Strin g)
  145            * /
  146           @O verride
  147           pu blic gov.v a.med.vist aweb.webse rvices.Ima gingExchan geSiteServ ice.ArrayO fImagingEx changeSite TO getSite s(String s iteIDs)
  148           th rows Remot eException  
  149           {
  150                    logg er.debug(" Retrieving  sites ["  + siteIDs  + "]");              
  151                    List <gov.va.me d.vistaweb .webservic es.Imaging ExchangeSi teService. ImagingExc hangeSiteT O> sitesTo  = new 
  152                             ArrayL ist<gov.va .med.vista web.webser vices.Imag ingExchang eSiteServi ce.Imaging ExchangeSi teTO>();
  153                    
  154                    Stri ng[] siteN umbers = E xchangeSit eServiceTr anslator.c onvertDeli mitedStrin gsIntoSite Numbers(si teIDs);
  155                    for( String sit eNumber :  siteNumber s)
  156                    {
  157                             try
  158                             {
  159                                      sitesTo. add(getSit eInternal( siteNumber ));
  160                             }
  161                             catch( MethodExce ption mX)
  162                             {
  163                                      logger.e rror("Erro r retrievi ng site ["  + siteNum ber + "] f rom vix co re", mX);
  164                                      //throw  new Remote Exception( mX.getMess age());
  165                             }
  166                             catch( Connection Exception  cX)
  167                             {
  168                                      logger.e rror("Erro r retrievi ng site ["  + siteNum ber + "] f rom vix co re", cX);
  169                                      //throw  new Remote Exception( mX.getMess age());
  170                             }
  171                    }
  172                    gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Array OfImagingE xchangeSit eTO result  = 
  173                             new go v.va.med.v istaweb.we bservices. ImagingExc hangeSiteS ervice.Arr ayOfImagin gExchangeS iteTO(
  174                                      sitesTo. toArray(ne w gov.va.m ed.vistawe b.webservi ces.Imagin gExchangeS iteService .ImagingEx changeSite TO[sitesTo .size()])) ;                  
  175                    retu rn result;
  176           }
  177  
  178           /*  (non-Java doc)
  179            *  @see gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange SiteServic eSoap#getV ISN(java.l ang.String )
  180            * /
  181           @O verride
  182           pu blic gov.v a.med.vist aweb.webse rvices.Ima gingExchan geSiteServ ice.Imagin gExchangeR egionTO ge tVISN(Stri ng regionI D)
  183           th rows Remot eException  
  184           {
  185                    logg er.debug(" Retrieving  VISN [" +  regionID  + "]");
  186                    Site ServiceFac adeRouter  router = S iteService Context.ge tSiteServi ceFacadeRo uter();
  187                    if(r outer == n ull)
  188                             throw  new Remote Exception( "Error get ting refer ence to fa cade route r.");
  189                    
  190                    gov. va.med.vis taweb.webs ervices.Im agingExcha ngeSiteSer vice.Imagi ngExchange RegionTO r egion = nu ll;
  191                    try 
  192                    {
  193                             Region  vaRegion  = router.g etRegion(r egionID);
  194                             region  = Exchang eSiteServi ceTranslat or.convert Region(vaR egion, reg ionID);                         
  195                    }
  196                    catc h(MethodEx ception mX )
  197                    {
  198                             logger .error("Er ror retrie ving regio n [" + reg ionID + "]  from vix  core", mX) ;
  199                             throw  new Remote Exception( mX.getMess age());
  200                    }                 
  201                    catc h(Connecti onExceptio n cX)
  202                    {
  203                             logger .error("Er ror retrie ving regio n [" + reg ionID + "]  from vix  core", cX) ;
  204                             throw  new Remote Exception( cX.getMess age());
  205                    }                 
  206                    retu rn region;
  207           }
  208   }