787. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/18/2018 2:02:20 PM Central Daylight 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.

787.1 Files compared

# Location File Last Modified
1 VIX_SIV_v3_0_patch_201_build_8.zip\v3.0_patch_201_build_8\VISA\Java\ImagingExchangeBaseWebProxy\main\src\java\gov\va\med\imaging\proxy\ids IDSService.java Thu Oct 11 13:30:19 2018 UTC
2 VIX_SIV_v3_0_patch_201_build_8.zip\v3.0_patch_201_build_8\VISA\Java\ImagingExchangeBaseWebProxy\main\src\java\gov\va\med\imaging\proxy\ids IDSService.java Wed Oct 17 18:56:22 2018 UTC

787.2 Comparison summary

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

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

787.4 Active regular expressions

No regular expressions were active.

787.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: Feb  29, 2008
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:     PI I
  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.pro xy.ids;
  27  
  28   import jav a.util.Arr ayList;
  29   import jav a.util.Lis t;
  30  
  31   import org .apache.lo gging.log4 j.LogManag er;
  32   import org .apache.lo gging.log4 j.Logger;
  33  
  34   /**
  35    * Represe nts a resp onse from  the IDS we b app
  36    * 
  37    * @author   PI I
  38    *
  39    */
  40   public cla ss IDSServ ice 
  41   implements  Comparabl e<IDSServi ce>
  42   {       
  43           pr ivate Stri ng version ;
  44           pr ivate Stri ng applica tionType;
  45           pr ivate Stri ng applica tionPath;
  46           pr ivate List <IDSOperat ion> opera tions = ne w ArrayLis t<IDSOpera tion>();
  47           
  48           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(IDSS ervice.cla ss);
  49  
  50           
  51           pu blic IDSSe rvice()
  52           {
  53                    supe r();
  54                    vers ion = "";
  55                    appl icationTyp e = applic ationPath  = "";
  56           }
  57           
  58           pu blic IDSSe rvice(Stri ng applica tionType,  String ver sion, 
  59                             String  applicati onPath) {
  60                    supe r();
  61                    this .version =  version;
  62                    this .applicati onType = a pplication Type;
  63                    this .applicati onPath = a pplication Path;
  64           }
  65           
  66           pu blic void  addOperati on(IDSOper ation oper ation)
  67           {
  68                    oper ations.add (operation );
  69           }
  70  
  71           pu blic List< IDSOperati on> getOpe rations()  {
  72                    retu rn operati ons;
  73           }
  74  
  75           pu blic Strin g getVersi on() {
  76                    retu rn version ;
  77           }
  78  
  79           pu blic void  setVersion (String ve rsion) {
  80                    this .version =  version;
  81           }
  82  
  83           pu blic Strin g getAppli cationPath () {
  84                    retu rn applica tionPath;
  85           }
  86  
  87           pu blic void  setApplica tionPath(S tring appl icationPat h) {
  88                    this .applicati onPath = a pplication Path;
  89           }
  90  
  91           pu blic Strin g getAppli cationType () {
  92                    retu rn applica tionType;
  93           }
  94  
  95           pu blic void  setApplica tionType(S tring appl icationTyp e) {
  96                    this .applicati onType = a pplication Type;
  97           }
  98           
  99           pu blic IDSOp eration ge tOperation ByType(Str ing operat ionType)
  100           {
  101                    for( IDSOperati on operati on : opera tions)
  102                    {
  103                             if(ope rationType .equals(op eration.ge tOperation Type()))
  104                             {
  105                                      return o peration;
  106                             }
  107                    }
  108                    retu rn null;
  109           }
  110  
  111  
  112           @O verride
  113           pu blic int c ompareTo(I DSService  that) {
  114                    int  diff = thi s.applicat ionPath.co mpareTo(th at.applica tionPath);
  115                    if(d iff != 0)
  116                             return  diff;
  117                    try
  118                    {
  119                             double  thisV = D ouble.pars eDouble(th is.version );
  120                             double  thatV = D ouble.pars eDouble(th at.version );
  121                             if(thi sV < thatV )
  122                                      return - 1;
  123                             if(thi sV > thatV )
  124                                      return 1 ;
  125                             return  0;
  126                    }
  127                    catc h(Exceptio n ex) {}
  128                    retu rn this.ve rsion.comp areTo(that .version);
  129           }
  130  
  131           @O verride
  132           pu blic Strin g toString () 
  133           {
  134                    Stri ngBuilder  sb = new S tringBuild er();          
  135                    sb.a ppend("App lication T ype: " + a pplication Type + " [ " + versio n + "]\n") ;
  136                    sb.a ppend("App lication P ath: " + a pplication Path + "\n ");
  137                    for( IDSOperati on operati on : opera tions)
  138                    {
  139                             sb.app end("\t" +  operation  + "\n");
  140                    }
  141                    retu rn sb.toSt ring();
  142           }
  143  
  144   }