96. EPMO Open Source Coordination Office Redaction File Detail Report

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

96.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreRouter\main\src\java\gov\va\med\imaging\core\router\commands\provider CoreCommandContext.java Mon Dec 4 21:35:28 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreRouter\main\src\java\gov\va\med\imaging\core\router\commands\provider CoreCommandContext.java Mon Dec 4 21:58:29 2017 UTC

96.2 Comparison summary

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

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

96.4 Active regular expressions

No regular expressions were active.

96.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  4, 2011
  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.cor e.router.c ommands.pr ovider;
  27  
  28   import jav a.lang.ref lect.Metho d;
  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.Ro utingToken ;
  34   import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce;
  35   import gov .va.med.im aging.core .interface s.Router;
  36   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  37   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  38   import gov .va.med.im aging.core .interface s.router.C ommandCont ext;
  39   import gov .va.med.im aging.core .interface s.router.C ommandFact ory;
  40   import gov .va.med.im aging.data source.Dat aSourcePro vider;
  41   import gov .va.med.im aging.data source.Dic omApplicat ionEntityD ataSourceS pi;
  42   import gov .va.med.im aging.data source.Dic omDataSour ceSpi;
  43   import gov .va.med.im aging.data source.Dic omImporter DataSource Spi;
  44   import gov .va.med.im aging.data source.Dic omQueryRet rieveDataS ourceSpi;
  45   import gov .va.med.im aging.data source.Dic omStorageD ataSourceS pi;
  46   import gov .va.med.im aging.data source.Sit eResolutio nDataSourc eSpi;
  47   import gov .va.med.im aging.data source.Tra nsactionLo ggerDataSo urceSpi;
  48   import gov .va.med.im aging.data source.Ver sionableDa taSourceSp i;
  49   import gov .va.med.im aging.exch ange.busin ess.Resolv edSite;
  50  
  51   /**
  52    * @author         
WERFEJ
  53    *
  54    */
  55   public cla ss CoreCom mandContex
  56   implements  CommandCo ntext
  57   {
  58           pr ivate fina l CommandC ontext com mandContex t;
  59           pr ivate fina l DicomQue ryRetrieve DataSource Spi dicomQ ueryRetrie veService;
  60           pr ivate fina l DicomSto rageDataSo urceSpi di comStorage Service;
  61           pr ivate fina l DicomApp licationEn tityDataSo urceSpi di comApplica tionEntity Service;
  62           pr ivate fina l DicomDat aSourceSpi  dicomServ ice;
  63           pr ivate fina l DicomImp orterDataS ourceSpi d icomImport erService;
  64           
  65           pu blic CoreC ommandCont ext(Comman dContext c ommandCont ext)
  66           {
  67                    LogM anager.get Logger(Cor eCommandCo ntext.clas s).info("C reating ne w CoreComm andContext  instance" );
  68                    this .commandCo ntext = co mmandConte xt;
  69                    Reso lvedArtifa ctSource r esolvedArt ifactSourc e = null;
  70                    if(g etLocalSit e() != nul l)
  71                    {
  72                             try
  73                             {
  74                                      RoutingT oken routi ngToken =  getLocalSi te().getAr tifactSour ce().creat eRoutingTo ken();
  75                                               LogManager .getLogger (CoreComma ndContext. class).deb ug("Gettin g resolved ArtifactSo urce using  routing t oken '" +  routingTok en.toRouti ngTokenStr ing() + "' .");
  76                                      resolved ArtifactSo urce = 
  77                                               getSiteRes olver().re solveArtif actSource( routingTok en);
  78                             }
  79                             catch  (MethodExc eption e)
  80                             {
  81                                      String m sg = "Fail ed to crea te resolve dArtifactS ource to c reate loca l services  during Co reCommandC ontext ini tializatio n, " + e.g etMessage( );
  82                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg,  e);
  83                                      throw ne w Exceptio nInInitial izerError( msg);
  84                             }
  85                             catch  (Connectio nException  e)
  86                             {
  87                                      String m sg = "Fail ed to crea te resolve dArtifactS ource to c reate loca l services  during Co reCommandC ontext ini tializatio n, " + e.g etMessage( );
  88                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg,  e);
  89                                      throw ne w Exceptio nInInitial izerError( msg);
  90                             }
  91                    }
  92                    
  93                    if(r esolvedArt ifactSourc e != null)
  94                    {
  95                             try
  96                             {
  97                                      this.dic omQueryRet rieveServi ce = getPr ovider().c reateLocal DicomQuery RetrieveDa taSource(r esolvedArt ifactSourc e);
  98                             }
  99                             catch( Connection Exception  x)
  100                             {
  101                                      String m sg = "Fail ed to get  DICOM Quer y/Retrieve  services  during Cor eCommandCo ntext init ialization , " + x.ge tMessage() ;
  102                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg);
  103                                      throw ne w Exceptio nInInitial izerError( msg);
  104                             }
  105                             
  106                             try
  107                             {
  108                                      this.dic omStorageS ervice = g etProvider ().createL ocalDicomS torageData Source(res olvedArtif actSource) ;
  109                             }
  110                             catch( Connection Exception  x)
  111                             {
  112                                      String m sg = "Fail ed to get  DICOM Quer y/Retrieve  services  during Cor eCommandCo ntext init ialization , " + x.ge tMessage() ;
  113                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg);
  114                                      throw ne w Exceptio nInInitial izerError( msg);
  115                             }
  116           
  117                             try
  118                             {                
  119                                      this.dic omApplicat ionEntityS ervice = g etProvider ().createL ocalDicomA pplication EntityData Source(res olvedArtif actSource) ;
  120                             }
  121                             catch( Connection Exception  x)
  122                             {
  123                                      String m sg = "Fail ed to get  DICOM Appl ication En tity servi ces during  CoreComma ndContext  initializa tion, " +  x.getMessa ge();
  124                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg);
  125                                      throw ne w Exceptio nInInitial izerError( msg);
  126                             }
  127                             
  128                             try
  129                             {
  130                                      this.dic omService  = getProvi der().crea teLocalDic omDataSour ce(resolve dArtifactS ource);
  131                             }
  132                             catch( Connection Exception  x)
  133                             {
  134                                      String m sg = "Fail ed to get  DICOM serv ices durin g CoreComm andContext  initializ ation, " +  x.getMess age();
  135                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg);
  136                                      throw ne w Exceptio nInInitial izerError( msg);
  137                             }
  138                             
  139                             try
  140                             {
  141                                      this.dic omImporter Service =  getProvide r().create LocalDicom ImporterDa taSource(r esolvedArt ifactSourc e);
  142                             }
  143                             catch( Connection Exception  x)
  144                             {
  145                                      String m sg = "Fail ed to get  DICOM Impo rter servi ces during  CoreComma ndContext  initializa tion, " +  x.getMessa ge();
  146                                      LogManag er.getLogg er(CoreCom mandContex t.class).e rror(msg);
  147                                      throw ne w Exceptio nInInitial izerError( msg);
  148                             }
  149                    }
  150                    else
  151                    {
  152                             // if  everything  is config ured prope rly this s hould not  happen. If  this does  happen ve rify VixCo nfig.xml i s availabl e - this i s
  153                             // the  site numb er used to  get the l ocal site
  154                             LogMan ager.getLo gger(CoreC ommandCont ext.class) .error("Co uld not in itialize l ocal servi ces in Cor eCommandCo ntext, lik ely cannot  find loca l site");
  155                             dicomA pplication EntityServ ice = null ;
  156                             dicomI mporterSer vice = nul l;
  157                             dicomQ ueryRetrie veService  = null;
  158                             dicomS ervice = n ull;
  159                             dicomS torageServ ice = null ;
  160                    }
  161           }
  162  
  163           @O verride
  164           pu blic Route r getRoute r() 
  165           {
  166                    retu rn command Context.ge tRouter();
  167           }
  168  
  169           @O verride
  170           pu blic DataS ourceProvi der getPro vider() 
  171           {
  172                    retu rn command Context.ge tProvider( );
  173           }
  174  
  175           @O verride
  176           pu blic SiteR esolutionD ataSourceS pi getSite Resolver()  
  177           {
  178                    retu rn command Context.ge tSiteResol ver();
  179           }
  180  
  181           @O verride
  182           pu blic Comma ndFactory  getCommand Factory() 
  183           {
  184                    retu rn command Context.ge tCommandFa ctory();
  185           }
  186  
  187           @O verride
  188           pu blic Trans actionLogg erDataSour ceSpi getT ransaction LoggerServ ice() 
  189           {
  190                    retu rn command Context.ge tTransacti onLoggerSe rvice();
  191           }
  192  
  193           @O verride
  194           pu blic boole an isCachi ngEnabled(
  195           {
  196                    retu rn command Context.is CachingEna bled();
  197           }
  198  
  199           @O verride
  200           pu blic Resol vedSite ge tLocalSite () 
  201           {
  202                    retu rn command Context.ge tLocalSite ();
  203           }
  204  
  205           @O verride
  206           pu blic Resol vedArtifac tSource ge tResolvedA rtifactSou rce(
  207                             Routin gToken rou tingToken)  
  208           th rows Metho dException  
  209           {
  210                    retu rn command Context.ge tResolvedA rtifactSou rce(routin gToken);
  211           }
  212  
  213           @O verride
  214           pu blic Resol vedArtifac tSource ge tResolvedA rtifactSou rce(
  215                             Routin gToken rou tingToken,
  216                             Class< ? extends  Versionabl eDataSourc eSpi> spi,  Method me thod,
  217                             Object [] paramet ers) 
  218           th rows Metho dException  
  219           {
  220                    retu rn command Context.ge tResolvedA rtifactSou rce(routin gToken, sp i, method,  parameter s);
  221           }
  222  
  223           pu blic Dicom QueryRetri eveDataSou rceSpi get DicomQuery RetrieveSe rvice() 
  224           {
  225                    retu rn dicomQu eryRetriev eService;
  226           }
  227  
  228           pu blic Dicom StorageDat aSourceSpi  getDicomS torageServ ice() {
  229                    retu rn dicomSt orageServi ce;
  230           }
  231  
  232           pu blic Dicom Applicatio nEntityDat aSourceSpi  getDicomA pplication EntityServ ice() {
  233                    retu rn dicomAp plicationE ntityServi ce;
  234           }
  235  
  236           pu blic Dicom DataSource Spi getDic omService( ) {
  237                    retu rn dicomSe rvice;
  238           }
  239  
  240           pu blic Dicom ImporterDa taSourceSp i getDicom ImporterSe rvice() {
  241                    retu rn dicomIm porterServ ice;
  242           }
  243  
  244   }