193. EPMO Open Source Coordination Office Redaction File Detail Report

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

193.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\FederationDataSourceProvider\main\src\java\gov\va\med\imaging\federationdatasource FederationImageAccessLoggingDataSourceService.java Mon Dec 4 21:34:40 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\FederationDataSourceProvider\main\src\java\gov\va\med\imaging\federationdatasource FederationImageAccessLoggingDataSourceService.java Mon Dec 4 22:00:35 2017 UTC

193.2 Comparison summary

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

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

193.4 Active regular expressions

No regular expressions were active.

193.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: Mar  6, 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.fed erationdat asource;
  27  
  28   import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce;
  29   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  30   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  31   import gov .va.med.im aging.data source.Ima geAccessLo ggingSpi;
  32   import gov .va.med.im aging.data source.exc eptions.Un supportedS erviceMeth odExceptio n;
  33   import gov .va.med.im aging.exch ange.Image AccessLogE vent;
  34   import gov .va.med.im aging.exch ange.Imagi ngLogEvent ;
  35   import gov .va.med.im aging.fede ration.pro xy.Federat ionProxy;
  36   import gov .va.med.im aging.prox y.services .ProxyServ ices;
  37   import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ;
  38   import gov .va.med.im aging.url. federation .exception s.Federati onConnecti onExceptio n;
  39   import gov .va.med.im aging.url. federation .exception s.Federati onMethodEx ception;
  40   import gov .va.med.im aging.url. vftp.VftpC onnection;
  41  
  42   import jav a.io.IOExc eption;
  43  
  44   import jav ax.xml.rpc .ServiceEx ception;
  45  
  46   import org .apache.lo gging.log4 j.LogManag er;
  47   import org .apache.lo gging.log4 j.Logger;
  48  
  49   /**
  50    * @author         
WERFEJ
  51    *
  52    */
  53   public cla ss Federat ionImageAc cessLoggin gDataSourc eService 
  54   extends Ab stractFede rationImag eAccessLog gingDataSo urceServic e
  55   {
  56           
  57           pr ivate fina l VftpConn ection fed erationCon nection;
  58           
  59           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Fede rationImag eAccessLog gingDataSo urceServic e.class);
  60           
  61           pr ivate fina l static S tring DATA SOURCE_VER SION = "0" ;
  62           pu blic final  static St ring SUPPO RTED_PROTO COL = "vft p";
  63                             
  64           pr ivate Fede rationProx y proxy =  null;
  65           
  66           /* *
  67            *  @param re solvedArti factSource
  68            *  @param pr otocol
  69            *  @throws U nsupported OperationE xception
  70            * /
  71           pu blic Feder ationImage AccessLogg ingDataSou rceService (ResolvedA rtifactSou rce resolv edArtifact Source, St ring proto col)
  72                    thro ws Unsuppo rtedOperat ionExcepti on
  73           {
  74                    supe r(resolved ArtifactSo urce, prot ocol);
  75                    fede rationConn ection = n ew VftpCon nection(ge tArtifactU rl());
  76           }
  77  
  78           /*  (non-Java doc)
  79            *  @see gov. va.med.ima ging.feder ationdatas ource.Abst ractFedera tionImageA ccessLoggi ngDataSour ceService# getDataSou rceVersion ()
  80            * /
  81           @O verride
  82           pu blic Strin g getDataS ourceVersi on() 
  83           {
  84                    retu rn DATASOU RCE_VERSIO N;
  85           }
  86  
  87           /*  (non-Java doc)
  88            *  @see gov. va.med.ima ging.datas ource.Imag eAccessLog gingSpi#Lo gImageAcce ssEvent(go v.va.med.i maging.exc hange.Imag eAccessLog Event)
  89            * /
  90           @O verride
  91           pu blic void  LogImageAc cessEvent( ImageAcces sLogEvent  logEvent)
  92           th rows Unsup portedOper ationExcep tion, Meth odExceptio n, Connect ionExcepti on 
  93           {
  94                    logg er.info("L ogImageAcc essEvent("  + logEven t.getImage Ien() + ") , Transact ionContext  (" + Tran sactionCon textFactor y.get().ge tDisplayId entity() +  ").");
  95                    if(l ogEvent ==  null)
  96                             return ;
  97                    try 
  98                    {
  99                             federa tionConnec tion.conne ct();                   
  100                    }
  101                    catc h(IOExcept ion ioX) 
  102                    {
  103                             getLog ger().erro r("Error l ogging ima ge access  event", io X);
  104                             throw  new Federa tionConnec tionExcept ion(ioX);
  105                    }
  106                    try
  107                    {
  108                             boolea n result =  getProxy( ).logImage AccessEven t(logEvent );
  109                             logger .info("Log ging of im age access  complete,  result wa s " + (res ult == tru e ? "ok" :  "error")) ;
  110                    }
  111                    catc h(ServiceE xception s X) {
  112                             logger .error("Er ror loggin g image ac cess", sX) ;
  113                             throw  new Federa tionMethod Exception( sX);
  114                    }
  115                    catc h(IOExcept ion ioX) 
  116                    {
  117                             logger .error("Er ror loggin g image ac cess", ioX );
  118                             throw  new Federa tionConnec tionExcept ion(ioX);
  119                    }
  120  
  121           }
  122  
  123           pr ivate Fede rationProx y getProxy ()
  124           th rows Conne ctionExcep tion
  125           {
  126                    if(p roxy == nu ll)
  127                    {
  128                             ProxyS ervices pr oxyService s = getFed erationPro xyServices ();                       
  129                             if(pro xyServices  == null)
  130                                      throw ne w Connecti onExceptio n("Did not  receive a ny applica ble servic es from ID S service  for site [ " + getSit e().getSit eNumber()  + "]");
  131                             proxy  = new Fede rationProx y(proxySer vices, Fed erationDat aSourcePro vider.getF ederationC onfigurati on());
  132                    }
  133                    retu rn proxy;
  134           }
  135  
  136           @O verride
  137           pu blic void  LogImaging LogEvent(I magingLogE vent logEv ent)
  138           th rows Metho dException , Connecti onExceptio n
  139           {
  140                    thro w new Unsu pportedSer viceMethod Exception( ImageAcces sLoggingSp i.class, " LogImaging LogEvent") ;         
  141           }
  142   }