23. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/5/2018 10:24:09 AM 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.

23.1 Files compared

# Location File Last Modified
1 patch_205_build_9.zip\Java\ImagingCommon\main\src\java\gov\va\med\configuration ConfigurationList.java Wed May 30 14:35:21 2018 UTC
2 patch_205_build_9.zip\Java\ImagingCommon\main\src\java\gov\va\med\configuration ConfigurationList.java Fri Jun 1 20:42:42 2018 UTC

23.2 Comparison summary

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

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

23.4 Active regular expressions

No regular expressions were active.

23.5 Comparison detail

  1   /**
  2    * Package : MAG - Vi stA Imagin g
  3    * WARNING : Per VHA  Directive  2004-038,  this routi ne should  not be mod ified.
  4    * @date A ug 9, 2010
  5    * Site Na me:  Washi ngton OI F ield Offic e, Silver  Spring, MD
  6    * @author   PII
  7    * @versio n 1.0
  8    *
  9    * ------- ---------- ---------- ---------- ---------- ---------- -------
  10    * Propert y of the U S Governme nt.
  11    * No perm ission to  copy or re distribute  this soft ware is gi ven.
  12    * Use of  unreleased  versions  of this so ftware req uires the  user
  13    * to exec ute a writ ten test a greement w ith the Vi stA Imagin g
  14    * Develop ment Offic e of the D epartment  of Veteran s Affairs,
  15    * telepho ne (301) 7 34-0100.
  16    * 
  17    * The Foo d and Drug  Administr ation clas sifies thi s software  as
  18    * a Class  II medica l device.   As such,  it may not  be change d
  19    * in any  way.  Modi fications  to this so ftware may  result in  an
  20    * adulter ated medic al device  under 21CF R820, the  use of whi ch
  21    * is cons idered to  be a viola tion of US  Federal S tatutes.
  22    * ------- ---------- ---------- ---------- ---------- ---------- -------
  23    */
  24  
  25   package go v.va.med.c onfigurati on;
  26  
  27   import jav a.util.Arr ayList;
  28   import jav a.util.Col lection;
  29   import jav a.util.Lis t;
  30   import jav ax.naming. Name;
  31  
  32   /**
  33    * A List  implementa tion, deri ved from A rrayList,  that notif ies Contex tEventList ener of
  34    * all cha nges made  to its con tent.
  35    * 
  36    * @author   PII
  37    *
  38    */
  39   public cla ss Configu rationList
  40   extends Ar rayList<Ob ject>
  41   {
  42           pr ivate stat ic final l ong serial VersionUID  = 1L;
  43           pr ivate fina l Configur ationConte xt parent;
  44           pr ivate fina l Name nam e;
  45  
  46           Co nfiguratio nList(Conf igurationC ontext par ent, Name  name)
  47           {
  48                    this .parent =  parent;
  49                    this .name = na me;
  50           }
  51           
  52           /* *
  53            *  @return t he parent
  54            * /
  55           pu blic Confi gurationCo ntext getP arent()
  56           {
  57                    retu rn this.pa rent;
  58           }
  59           
  60           /* *
  61            *  @return t he name
  62            * /
  63           pu blic Name  getName()
  64           {
  65                    retu rn this.na me;
  66           }
  67  
  68           /*  (non-Java doc)
  69            *  @see java .util.Arra yList#add( java.lang. Object)
  70            * /
  71           @O verride
  72           pu blic boole an add(Obj ect elemen t)
  73           {
  74                    bool ean result  = super.a dd(element );
  75                    if(r esult)
  76                    {
  77                             int in dex = inde xOf(elemen t);
  78                             notify Parent(Con figuration ContextEve nt.TYPE.CR EATE, inde x, null, e lement);
  79                    }
  80                    retu rn result;
  81           }
  82  
  83           /*  (non-Java doc)
  84            *  @see java .util.Arra yList#add( int, java. lang.Objec t)
  85            * /
  86           @O verride
  87           pu blic void  add(int in dex, Objec t element)
  88           {
  89                    supe r.add(inde x, element );
  90                    noti fyParent(C onfigurati onContextE vent.TYPE. CREATE, in dex, null,  element);
  91                    retu rn;
  92           }
  93  
  94           /*  (non-Java doc)
  95            *  @see java .util.Arra yList#addA ll(java.ut il.Collect ion)
  96            * /
  97           @O verride
  98           pu blic boole an addAll( Collection <? extends  Object> c )
  99           {
  100                    bool ean result  = super.a ddAll(size (), c);
  101  
  102                    retu rn result;
  103           }
  104  
  105           /*  (non-Java doc)
  106            *  @see java .util.Arra yList#addA ll(int, ja va.util.Co llection)
  107            * /
  108           @O verride
  109           pu blic boole an addAll( int index,  Collectio n<? extend s Object>  c)
  110           {
  111                    bool ean result  = super.a ddAll(size (), c);
  112  
  113                    for( Object ele ment : c)
  114                    {
  115                             int el ementIndex  = indexOf (element);
  116                             notify Parent(Con figuration ContextEve nt.TYPE.CR EATE, elem entIndex,  null, elem ent);
  117                    }
  118                    retu rn result;
  119           }
  120  
  121           /*  (non-Java doc)
  122            *  @see java .util.Arra yList#clea r()
  123            * /
  124           @S uppressWar nings("unc hecked")
  125           @O verride
  126           pu blic void  clear()
  127           {
  128                    List <Object> c loneList =  (List<Obj ect>)this. clone();
  129                    supe r.clear();
  130                    
  131                    int  elementInd ex = 0;
  132                    for( Object ele ment : (Li st<Object> )cloneList )
  133                             notify Parent(Con figuration ContextEve nt.TYPE.DE LETE, elem entIndex++ , element,  null);
  134           }
  135  
  136           /*  (non-Java doc)
  137            *  @see java .util.Arra yList#get( int)
  138            * /
  139           @O verride
  140           pu blic Objec t get(int  index)
  141           {
  142                    Obje ct element  = super.g et(index);
  143                    
  144                    noti fyParent(C onfigurati onContextE vent.TYPE. READ, inde x, element , element) ;
  145                    
  146                    retu rn element ;
  147           }
  148  
  149           /*  (non-Java doc)
  150            *  @see java .util.Arra yList#remo ve(int)
  151            * /
  152           @O verride
  153           pu blic Objec t remove(i nt index)
  154           {
  155                    Obje ct result  = super.re move(index );
  156                    
  157                    noti fyParent(C onfigurati onContextE vent.TYPE. DELETE, in dex, resul t, null);
  158                    
  159                    retu rn result;
  160           }
  161  
  162           /*  (non-Java doc)
  163            *  @see java .util.Arra yList#remo ve(java.la ng.Object)
  164            * /
  165           @O verride
  166           pu blic boole an remove( Object o)
  167           {
  168                    int  index = in dexOf(o);
  169                    retu rn index > = 0 ? remo ve(index)  != null :  false;
  170           }
  171  
  172           /*  (non-Java doc)
  173            *  @see java .util.Arra yList#set( int, java. lang.Objec t)
  174            * /
  175           @O verride
  176           pu blic Objec t set(int  index, Obj ect elemen t)
  177           {
  178                    Obje ct oldValu e = super. set(index,  element);
  179                    
  180                    noti fyParent(C onfigurati onContextE vent.TYPE. UPDATE, in dex, oldVa lue, eleme nt);
  181                    
  182                    retu rn oldValu e;
  183           }
  184  
  185           //  ========= ========== ========== ========== ========== ========== ========== ========== ========== ========== =========
  186           //  
  187           //  ========= ========== ========== ========== ========== ========== ========== ========== ========== ========== =========
  188           pr ivate void  notifyPar ent(
  189                    Conf igurationC ontextEven t.TYPE eve ntType, 
  190                    int  index, 
  191                    Obje ct oldValu e, 
  192                    Obje ct newValu e)
  193           {
  194                    Conf igurationC ontextEven t event =  new Config urationCon textEvent(
  195                             eventT ype,
  196                             Config urationCon textEvent. OBJECT_TYP E.PROPERTY ,
  197                             null,
  198                             this.g etName(),
  199                             index,
  200                             oldVal ue,
  201                             newVal ue);
  202                    getP arent().ch ildCollect ionEventNo tification (event);
  203           }
  204   }