301. EPMO Open Source Coordination Office Redaction File Detail Report

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

301.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingTestResources\main\src\java\gov\va\med\imaging\exchange\configuration AppConfigurationStub.java Mon Dec 4 21:35:16 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingTestResources\main\src\java\gov\va\med\imaging\exchange\configuration AppConfigurationStub.java Mon Dec 4 22:03:37 2017 UTC

301.2 Comparison summary

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

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

301.4 Active regular expressions

No regular expressions were active.

301.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: Dec  6, 2006
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
BUCKD
  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.conf iguration;
  27  
  28   import gov .va.med.im aging.core .interface s.IAppConf iguration;
  29   import gov .va.med.im aging.core .interface s.exceptio ns.Applica tionConfig urationExc eption;
  30  
  31   import jav a.io.File;
  32   import jav a.net.URI;
  33   import jav a.net.URIS yntaxExcep tion;
  34  
  35   import org .apache.lo gging.log4 j.LogManag er;
  36   import org .apache.lo gging.log4 j.Logger;
  37  
  38   /**
  39    * @author         
BUCKD
  40    * Do not  add member  variables  here. Ins tead put t hem in App Configurat ion.
  41    */
  42   public cla ss AppConf igurationS tub 
  43   implements  IAppConfi guration 
  44   {
  45           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(AppC onfigurati onStub.cla ss);
  46           
  47           pr ivate stat ic final S tring APP_ CONFIG_FIL ENAME = "V iXConfig.x ml";
  48           
  49           pr ivate bool ean cachin gEnabled;
  50           pr ivate Stri ng biaPass word;
  51           pr ivate Stri ng biaUser name;
  52           pr ivate Stri ng localSi teNumber;
  53           pr ivate URI  siteServic eUri;
  54           pr ivate URI  smtpServer Uri;
  55           pr ivate Stri ng vistaIm agingVersi onRequired ;
  56           pr ivate Stri ng vixSoft wareVersio n;
  57           pr ivate bool ean decomp ressionEna bled;
  58           pr ivate bool ean downSa mplingEnab led;
  59           pr ivate bool ean noLoss lessCompre ssion;
  60           pr ivate bool ean sensit ivePatient Blocked;
  61           pr ivate bool ean vixCon figured;
  62           pr ivate bool ean vixEna bled;
  63           pr ivate Stri ng appConf igurationF ilespec =  null;
  64           pr ivate Stri ng vixConf igurationD irectory =  null;
  65           
  66           
  67           pu blic AppCo nfiguratio nStub() {
  68                    supe r();
  69           }
  70           
  71           /* *
  72            *  Initializ ation call ed by Spri ng to init ialize sin gleton.
  73            *  Note that  this meth od is not  a part of  the IAppCo nfiguratio n interfac e
  74            *  @throws A pplication Configurat ionExcepti on 
  75            * /
  76           pu blic void  init() 
  77           th rows Appli cationConf igurationE xception 
  78           {
  79                    // a  concessio n for the  developmen t environm ent - crea te the dir ectory tha t the app  configurat ion
  80                    // c an reside  in
  81                    File  configFil e = new Fi le(this.ge tAppConfig urationFil espec());
  82                    File  configDir  = configF ile.getPar entFile();
  83                    if ( configDir  != null &&  !configDi r.exists() )
  84                    {
  85                             config Dir.mkdirs ();
  86                    }
  87                    this .cachingEn abled = tr ue;
  88                    this .downSampl ingEnabled  = false;
  89                    this .noLossles sCompressi on = false ;
  90                    this .decompres sionEnable d=true;
  91                    try 
  92                    {
  93                             // est ablish rem aining dev elopment e nvironment  defaults
  94                             this.s iteService Uri = new  URI("http: //localhos t/VistaWeb Svcs/Imagi ngExchange SiteServic e.asmx");
  95                              this.smtpS erverUri =  new URI(" DNS          ");
  96                    }
  97                    catc h (URISynt axExceptio n ex)
  98                    {
  99                             throw  new Applic ationConfi gurationEx ception(ex );
  100                    }
  101                    this .localSite Number = " 660";
  102                    this .vixSoftwa reVersion  = "0.00";
  103                    this .biaUserna me = "";
  104                    this .biaPasswo rd = "";
  105                    this .vixEnable d = true;
  106  
  107                    logg er.info("u sing class  AppConfig urationStu b");                 
  108           }
  109  
  110           @O verride
  111           pu blic Strin g getLocal SiteNumber () {
  112                    retu rn localSi teNumber;
  113           }
  114  
  115           @O verride
  116           pu blic URI g etSmtpServ erUri() {
  117                    retu rn smtpSer verUri;
  118           }
  119  
  120           @O verride
  121           pu blic Strin g getVistA ImagingVer sionRequir ed()
  122                             throws  Applicati onConfigur ationExcep tion {
  123                    retu rn vistaIm agingVersi onRequired ;
  124           }
  125  
  126           @O verride
  127           pu blic Strin g getVixCo nfiguratio nDirectory ()
  128                             throws  Applicati onConfigur ationExcep tion {
  129                    Stri ng configD ir = null;
  130                    conf igDir = th is.vixConf igurationD irectory;
  131                    
  132                    
  133                    if ( configDir  == null)
  134                    {
  135                             config Dir = Syst em.getenv( "vixconfig ");
  136                             if (co nfigDir ==  null)
  137                             {
  138                                      throw ne w Applicat ionConfigu rationExce ption("The  vixconfig  has not b een set.") ;
  139   //                                 configDi r = this.g etBootstra pAppConfig urationDir ectory();
  140                             }
  141  
  142                             this.s etVixConfi gurationDi rectory(co nfigDir);
  143                    }
  144                    retu rn configD ir;
  145           }
  146  
  147           @O verride
  148           pu blic Strin g getVixSo ftwareVers ion() {
  149                    retu rn vixSoft wareVersio n;
  150           }
  151  
  152           @O verride
  153           pu blic boole an isCachi ngEnabled( ) {
  154                    retu rn caching Enabled;
  155           }
  156  
  157           @O verride
  158           pu blic boole an isDecom pressionEn abled() {
  159                    retu rn decompr essionEnab led;
  160           }
  161  
  162           @O verride
  163           pu blic boole an isDownS amplingEna bled() {
  164                    retu rn downSam plingEnabl ed;
  165           }
  166  
  167           @O verride
  168           pu blic boole an isNoLos slessCompr ession() {
  169                    retu rn noLossl essCompres sion;
  170           }
  171  
  172           @O verride
  173           pu blic boole an isSensi tivePatien tBlocked()  {
  174                    retu rn sensiti vePatientB locked;
  175           }
  176  
  177           @O verride
  178           pu blic boole an loadApp Configurat ionFromFil e()
  179                             throws  Applicati onConfigur ationExcep tion {
  180                    // T ODO Auto-g enerated m ethod stub
  181                    retu rn false;
  182           }
  183  
  184           @O verride
  185           pu blic boole an saveApp Configurat ionToFile( )
  186                             throws  Applicati onConfigur ationExcep tion {
  187                    // T ODO Auto-g enerated m ethod stub
  188                    retu rn false;
  189           }
  190  
  191           @O verride
  192           pu blic void  setCaching Enabled(bo olean enab led) {
  193                    this .cachingEn abled = en abled;
  194           }
  195  
  196           @O verride
  197           pu blic void  setDecompr essionEnab led(boolea n enabled)  {
  198                    this .decompres sionEnable d = enable d;
  199           }
  200  
  201           @O verride
  202           pu blic void  setDownSam plingEnabl ed(boolean  enabled)  {
  203                    this .downSampl ingEnabled  = enabled ;
  204           }
  205  
  206           @O verride
  207           pu blic void  setLocalSi teNumber(S tring site Number) {
  208                    this .localSite Number = s iteNumber;
  209           }
  210  
  211           @O verride
  212           pu blic void  setNoLossl essCompres sion(boole an enabled ) {
  213                    this .noLossles sCompressi on = enabl ed;
  214           }
  215  
  216           @O verride
  217           pu blic void  setSensiti vePatientB locked(boo lean enabl ed) {
  218                    this .sensitive PatientBlo cked = ena bled;
  219           }
  220  
  221           @O verride
  222           pu blic void  setSmtpSer verUri(URI  uri) {
  223                    this .smtpServe rUri = uri ;
  224           }
  225  
  226           @O verride
  227           pu blic void  setVistAIm agingVersi onRequired (String ve rsion) {
  228                    this .vistaImag ingVersion Required =  version;
  229           }
  230  
  231           @O verride
  232           pu blic void  setVixSoft wareVersio n(String v ixSoftware Version) {
  233                    this .vixSoftwa reVersion  = vixSoftw areVersion ;
  234           }
  235           
  236           pu blic Strin g getAppCo nfiguratio nFilespec( ) throws A pplication Configurat ionExcepti on
  237           {
  238                    Stri ng fileSpe c = null;
  239                    file Spec = thi s.appConfi gurationFi lespec;
  240  
  241                    if ( fileSpec = = null)
  242                    {
  243                             fileSp ec = this. getVixConf igurationD irectory() ;
  244                             // add  the trail ing file s eparator c haracter i f necessar y
  245                             if (!f ileSpec.en dsWith("\\ ") || !fil eSpec.ends With("/"))
  246                             {
  247                                      fileSpec  += "/";
  248                             }
  249                             fileSp ec += APP_ CONFIG_FIL ENAME;
  250  
  251                             this.s etAppConfi gurationFi lespec(fil eSpec);
  252                    }
  253                    
  254                    retu rn fileSpe c;
  255           }
  256           
  257           pu blic void  setAppConf igurationF ilespec(St ring fileS pec) {
  258                    this .appConfig urationFil espec = fi leSpec;        
  259           }
  260  
  261           pu blic void  setVixConf igurationD irectory(S tring vixC onfigurati onDirector y) {
  262                    this .vixConfig urationDir ectory = v ixConfigur ationDirec tory;     
  263           }
  264   }