366. EPMO Open Source Coordination Office Redaction File Detail Report

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

366.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\SiteServiceSOAPServer\main\src\java\gov\va\med\vista\siteservice\webservices SiteServiceWebservice.java Mon Dec 4 21:35:04 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\SiteServiceSOAPServer\main\src\java\gov\va\med\vista\siteservice\webservices SiteServiceWebservice.java Mon Dec 4 22:05:47 2017 UTC

366.2 Comparison summary

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

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

366.4 Active regular expressions

No regular expressions were active.

366.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.v ista.sites ervice.web services;
  27  
  28   import gov .va.med.im aging.core .interface s.Router;
  29   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  30   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  31   import gov .va.med.im aging.exch ange.busin ess.Region ;
  32   import gov .va.med.im aging.exch ange.busin ess.Resolv edSite;
  33   import gov .va.med.im aging.exch ange.busin ess.Site;
  34   import gov .va.med.vi staweb.Web Services.S iteService .ArrayOfRe gionTO;
  35   import gov .va.med.vi staweb.Web Services.S iteService .ArrayOfSi teTO;
  36   import gov .va.med.vi staweb.Web Services.S iteService .RegionTO;
  37   import gov .va.med.vi staweb.Web Services.S iteService .SiteTO;
  38   import gov .va.med.vi sta.sitese rvice.soap .SiteServi ceSOAPCont ext;
  39   import gov .va.med.vi sta.sitese rvice.soap .SiteServi ceSOAPFaca deRouter;
  40   import gov .va.med.vi sta.sitese rvice.tran slator.Sit eServiceTr anslator;
  41  
  42   import jav a.rmi.Remo teExceptio n;
  43   import jav a.util.Arr ayList;
  44   import jav a.util.Lis t;
  45  
  46   import org .apache.lo gging.log4 j.LogManag er;
  47   import org .apache.lo gging.log4 j.Logger;
  48   import org .springfra mework.bea ns.BeansEx ception;
  49   import org .springfra mework.con text.Appli cationCont ext;
  50   import org .springfra mework.con text.Appli cationCont extAware;
  51  
  52   /**
  53    * Impleme ntation of  the Site  Service se rver
  54    * 
  55    * @author         
WERFEJ
  56    *
  57    */
  58   public cla ss SiteSer viceWebser vice 
  59   implements  gov.va.me d.vistaweb .WebServic es.SiteSer vice.SiteS erviceSoap , Applicat ionContext Aware
  60   {
  61           
  62           pu blic stati c final St ring defau ltCoreRout erBeanName  = "coreRo uter";
  63  
  64           pr ivate stat ic Applica tionContex t appConte xt;
  65           pr ivate stat ic Logger  logger = L ogManager. getLogger( SiteServic eWebservic e.class);
  66           
  67           pr ivate Rout er vixCore  = null;
  68           
  69           /*  (non-Java doc)
  70            *  @see org. springfram ework.cont ext.Applic ationConte xtAware#se tApplicati onContext( org.spring framework. context.Ap plicationC ontext)
  71            * /
  72           @O verride
  73           pu blic void  setApplica tionContex t(Applicat ionContext  context)
  74           th rows Beans Exception 
  75           {
  76                    appC ontext = c ontext;
  77           }
  78           
  79           /* *
  80            *  Return th e ViX core  router
  81            *  @return
  82            * /
  83           pr ivate Rout er getVixC ore()
  84           {
  85                    if(v ixCore ==  null)
  86                    {
  87                             Object  routerObj  = appCont ext.getBea n(defaultC oreRouterB eanName);
  88                             vixCor e = (Route r)routerOb j;
  89                    }
  90                    retu rn vixCore
  91           }
  92  
  93           /*  (non-Java doc)
  94            *  @see gov. va.med.vis taweb.WebS ervices.Si teService. SiteServic eSoap#getS ite(java.l ang.String )
  95            * /
  96           @O verride
  97           pu blic SiteT O getSite( String sit eID) throw s RemoteEx ception 
  98           {
  99                    logg er.debug(" Retrieving  Site [" +  siteID +  "]");
  100                    try
  101                    {
  102                             return  getSiteIn ternal(sit eID);
  103                    }
  104                    catc h(MethodEx ception mX )
  105                    {
  106                             logger .error("Er ror retrie ving site  [" + siteI D + "]", m X);
  107                             throw  new Remote Exception( mX.getMess age());
  108                    }
  109                    catc h(Connecti onExceptio n cX)
  110                    {
  111                             logger .error("Er ror retrie ving site  [" + siteI D + "]", c X);
  112                             throw  new Remote Exception( cX.getMess age());
  113                    }
  114           }
  115           
  116           /* *
  117            *  Internal  function t o retrieve  a site 
  118            *  @param si teID
  119            *  @return
  120            *  @throws M ethodExcep tion Occur s if the V iX core th rows an ex ception ge tting the  site
  121            *  @throws C onnectionE xception 
  122            * /
  123           pr ivate gov. va.med.vis taweb.WebS ervices.Si teService. SiteTO get SiteIntern al(String  siteID)
  124           th rows Metho dException , Connecti onExceptio n
  125           {
  126                    Site ServiceSOA PFacadeRou ter router  = SiteSer viceSOAPCo ntext.getS iteService FacadeRout er();
  127                    Site  site = ro uter.getSi te(siteID) ;
  128                    gov. va.med.vis taweb.WebS ervices.Si teService. SiteTO res ult = 
  129                             SiteSe rviceTrans lator.conv ertSite(si te, siteID );
  130                    retu rn result;
  131           }
  132  
  133           /*  (non-Java doc)
  134            *  @see gov. va.med.vis taweb.WebS ervices.Si teService. SiteServic eSoap#getS ites(java. lang.Strin g)
  135            * /
  136           @O verride
  137           pu blic Array OfSiteTO g etSites(St ring siteI Ds) throws  RemoteExc eption 
  138           {
  139                    logg er.debug(" Retrieving  sites ["  + siteIDs  + "]");              
  140                    List <gov.va.me d.vistaweb .WebServic es.SiteSer vice.SiteT O> sitesTo  = new 
  141                             ArrayL ist<gov.va .med.vista web.WebSer vices.Site Service.Si teTO>();
  142                    
  143                    Stri ng[] siteN umbers = S iteService Translator .convertDe limitedStr ingsIntoSi teNumbers( siteIDs);
  144                    for( String sit eNumber :  siteNumber s)
  145                    {
  146                             try
  147                             {
  148                                      sitesTo. add(getSit eInternal( siteNumber ));
  149                             }
  150                             catch( MethodExce ption mX)
  151                             {
  152                                      logger.e rror("Erro r retrievi ng site ["  + siteNum ber + "] f rom vix co re", mX);
  153                                      //throw  new Remote Exception( mX.getMess age());
  154                             }
  155                             catch( Connection Exception  cX)
  156                             {
  157                                      logger.e rror("Erro r retrievi ng site ["  + siteNum ber + "] f rom vix co re", cX);
  158                                      //throw  new Remote Exception( mX.getMess age());
  159                             }
  160                    }
  161                    gov. va.med.vis taweb.WebS ervices.Si teService. ArrayOfSit eTO result  = 
  162                             new go v.va.med.v istaweb.We bServices. SiteServic e.ArrayOfS iteTO(
  163                                      sitesTo. toArray(ne w gov.va.m ed.vistawe b.WebServi ces.SiteSe rvice.Site TO[sitesTo .size()])) ;                         
  164                    retu rn result;
  165           }
  166  
  167           /*  (non-Java doc)
  168            *  @see gov. va.med.vis taweb.WebS ervices.Si teService. SiteServic eSoap#getV HA()
  169            * /
  170           @O verride
  171           pu blic Array OfRegionTO  getVHA()  throws Rem oteExcepti on 
  172           {
  173                    logg er.debug(" Retrieving  all VA si tes");
  174                    try 
  175                    {
  176                             SiteSe rviceSOAPF acadeRoute r router =  SiteServi ceSOAPCont ext.getSit eServiceFa cadeRouter ();
  177                             List<R egion> reg ions = rou ter.getReg ionList();
  178                             gov.va .med.vista web.WebSer vices.Site Service.Ar rayOfRegio nTO result  = 
  179                                      SiteServ iceTransla tor.conver tRegions(r egions);
  180                             return  result;                                      
  181                    }
  182                    catc h(MethodEx ception mX )
  183                    {
  184                             logger .error("Er ror retrie ving all s ites ", mX );
  185                             throw  new Remote Exception( mX.getMess age());
  186                    }
  187                    catc h(Connecti onExceptio n cX)
  188                    {
  189                             logger .error("Er ror retrie ving all s ites", cX) ;
  190                             throw  new Remote Exception( cX.getMess age());
  191                    }
  192           }
  193  
  194           /*  (non-Java doc)
  195            *  @see gov. va.med.vis taweb.WebS ervices.Si teService. SiteServic eSoap#getV ISN(java.l ang.String )
  196            * /
  197           @O verride
  198           pu blic Regio nTO getVIS N(String r egionID) t hrows Remo teExceptio
  199           {
  200                    
  201                    logg er.debug(" Retrieving  VISN [" +  regionID  + "]");
  202                    gov. va.med.vis taweb.WebS ervices.Si teService. RegionTO r egion = nu ll;
  203                    try 
  204                    {
  205                             SiteSe rviceSOAPF acadeRoute r router =  SiteServi ceSOAPCont ext.getSit eServiceFa cadeRouter ();
  206                             Region  vaRegion  = router.g etRegion(r egionID);
  207                             region  = SiteSer viceTransl ator.conve rtRegion(v aRegion, r egionID);                          
  208                    }
  209                    catc h(MethodEx ception mX )
  210                    {
  211                             logger .error("Er ror retrie ving regio n [" + reg ionID + "]  from vix  core", mX) ;
  212                             throw  new Remote Exception( mX.getMess age());
  213                    }                 
  214                    catc h(Connecti onExceptio n cX)
  215                    {
  216                             logger .error("Er ror retrie ving regio n [" + reg ionID + "]  from vix  core", cX) ;
  217                             throw  new Remote Exception( cX.getMess age());
  218                    }
  219                    retu rn region;
  220           }
  221   }