44. EPMO Open Source Coordination Office Redaction File Detail Report

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

44.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheAPI\main\src\java\gov\va\med\imaging\storage\cache\impl RecursiveGroupAndInstanceParent.java Mon Dec 4 21:35:22 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheAPI\main\src\java\gov\va\med\imaging\storage\cache\impl RecursiveGroupAndInstanceParent.java Mon Dec 4 21:57:23 2017 UTC

44.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 204
Changed 1 2
Inserted 0 0
Removed 0 0

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

44.4 Active regular expressions

No regular expressions were active.

44.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.i maging.sto rage.cache .impl;
  5  
  6   import org .apache.lo gging.log4 j.LogManag er;
  7   import org .apache.lo gging.log4 j.Logger;
  8  
  9   import sun .security. action.Get LongAction ;
  10  
  11   import gov .va.med.im aging.stor age.cache. Group;
  12   import gov .va.med.im aging.stor age.cache. GroupAndIn stanceAnce stor;
  13   import gov .va.med.im aging.stor age.cache. GroupSet;
  14   import gov .va.med.im aging.stor age.cache. Instance;
  15   import gov .va.med.im aging.stor age.cache. InstanceSe t;
  16   import gov .va.med.im aging.stor age.cache. exceptions .CacheExce ption;
  17  
  18   /**
  19    * @author         
BECKEC
  20    *
  21    * This cl ass adds r ecursive g roup name  handling f or instanc es as well  as groups .
  22    * Any cla ss that ca n be a par ent of a s et of Grou p and Inst ance insta nces shoul d derive f rom this
  23    * class.
  24   */
  25   public abs tract clas s Recursiv eGroupAndI nstancePar ent 
  26   extends Re cursiveGro upParent
  27   implements  GroupAndI nstanceAnc estor, Gro upSet, Ins tanceSet
  28   {
  29           /* *
  30            *  
  31            * /
  32           pu blic Recur siveGroupA ndInstance Parent()
  33           {
  34           }
  35  
  36           //  ========= ========== ========== ========== ========== ========== ========== ========== ========== ========== =====
  37           //  Abstract  methods bi nd this cl ass to a p ersistence  mechanism
  38           //  ========= ========== ========== ========== ========== ========== ========== ========== ========== ========== =====
  39           
  40           /* *
  41            *  Get or cr eate an In stance.  T he groupNa me is an o rdered arr ay if the
  42            *  instances  ancestor  groups, st arting fro m the prog eny of thi s
  43            *  group.
  44            * /
  45           @O verride
  46           pu blic Insta nce getOrC reateInsta nce(String [] groupNa me, String  key) 
  47           th rows Cache Exception
  48           {
  49                    retu rn getOrCr eateInstan ce(groupNa me, key, t rue); 
  50           }
  51  
  52           /* *
  53            *  Get an In stance.  T he groupNa me is an o rdered arr ay if the
  54            *  instances  ancestor  groups, st arting fro m the prog eny of thi s
  55            *  group.
  56            * /
  57           @O verride
  58           pu blic Insta nce getIns tance(Stri ng[] group Name, Stri ng key) 
  59           th rows Cache Exception
  60           {
  61                    retu rn getOrCr eateInstan ce(groupNa me, key, f alse); 
  62           }
  63           
  64           /* *
  65            *  
  66            *  @param gr oupName
  67            *  @param ke y
  68            *  @param al lowCreate
  69            *  @return
  70            *  @throws C acheExcept ion
  71            * /
  72           @O verride
  73           pu blic Insta nce getOrC reateInsta nce(String [] groupNa me, String  key, bool ean allowC reate) 
  74           th rows Cache Exception
  75           {
  76                    if(g roupName = = null ||  groupName. length ==  0)
  77                             return  allowCrea te ?
  78                                      getOrCre ateChildIn stance(key ):
  79                                      getChild Instance(k ey);
  80  
  81                    retu rn super.g etOrCreate Instance(g roupName,  key, allow Create);
  82           }
  83           
  84           /* *
  85            *  Delete an  Instance.   The grou pName is a n ordered  array of t he
  86            *  instances  ancestor  groups, st arting fro m the prog eny of thi s
  87            *  group.
  88            *  NOTE: thi s is a rec ursive fun ction.  Th e group na me specifi es a path
  89            *  through a n object g raph of Gr oup instan ces.  This  method fo llows that  path,
  90            *  removing  the group  name that  it current ly resides  on. 
  91            * /
  92           pu blic void  deleteInst ance(Strin g[] groupN ame, Strin g key, boo lean force Delete) 
  93           th rows Cache Exception
  94           {
  95                    if(g roupName = = null ||  groupName. length ==  0)
  96                    {
  97                             delete ChildInsta nce(key, f orceDelete );
  98                             return ;
  99                    }
  100                    
  101                    supe r.deleteIn stance(gro upName, ke y, forceDe lete);
  102           }
  103   }