206. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:13 AM Eastern 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.

206.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\report\data AbstractReportDataService.java Wed May 29 15:26:18 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\report\data AbstractReportDataService.java Mon Jun 10 19:27:47 2019 UTC

206.2 Comparison summary

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

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

206.4 Active regular expressions

No regular expressions were active.

206.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2004 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4   // Package
  5   package go v.va.med.f w.report.d ata;
  6  
  7   // Java cl asses
  8   import jav a.util.Map ;
  9  
  10   import org .apache.co mmons.lang .Validate;
  11   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  12   import org .springfra mework.bea ns.factory .annotatio n.Qualifie r;
  13  
  14   import gov .va.med.fw .report.Re portConfig uration;
  15   import gov .va.med.fw .report.Re portExcept ion;
  16   import gov .va.med.fw .report.Re portNameRe solver;
  17   import gov .va.med.fw .report.Si mpleReport NameResolv er;
  18   import gov .va.med.fw .service.A bstractCom ponent;
  19  
  20   /**
  21    * 
  22    * 
  23    * Project : Framewor k</br> Cre ated on: 1 1:20:00 AM  </br>
  24    * 
  25    * @author   DN S
  26    */
  27   public abs tract clas s Abstract ReportData Service ex tends Abst ractCompon ent implem ents
  28                    Repo rtDataServ ice {
  29  
  30           /* *
  31            *  An instan ce of seri alVersionU ID
  32            * /
  33           pr ivate stat ic final l ong serial VersionUID  = -282777 1775513302 070L;
  34  
  35           /* *
  36            *  A map con taining al l report d ata daos
  37            * /
  38           pr ivate Map  reportData DAOs = nul l;
  39  
  40           /* *
  41            *  An instan ce of name Resolver
  42            * /
  43           @A utowired
  44           pr ivate Repo rtNameReso lver nameR esolver =  null;
  45  
  46           /* *
  47            *  A default  construct or
  48            * /
  49           pu blic Abstr actReportD ataService () {
  50                    supe r();
  51           }
  52  
  53           /* *
  54            *  @return R eturns the  nameResol ver.
  55            * /
  56           pu blic Repor tNameResol ver getNam eResolver( ) {
  57                    retu rn nameRes olver;
  58           }
  59  
  60           /* *
  61            *  @param na meResolver
  62            *              The name Resolver t o set.
  63            * /
  64           pu blic void  setNameRes olver(Repo rtNameReso lver nameR esolver) {
  65                    this .nameResol ver = name Resolver;
  66           }
  67  
  68           /* *
  69            *  @param re portDataDA Os
  70            *              The repo rtDataDAOs  to set.
  71            * /
  72           pu blic void  setReportD ataDAOs(Ma p reportDa taDAOs) {
  73                    this .reportDat aDAOs = re portDataDA Os;
  74           }
  75  
  76           /* *
  77            *  @see gov. va.med.fw. service.Ab stractComp onent#afte rPropertie sSet()
  78            * /
  79           pu blic void  afterPrope rtiesSet()  throws Ex ception {
  80                    
  81                    if ( reportData DAOs == nu ll) {
  82                             logger .warn("$$$ $$ find wh o created  this class  and ensur e reportDa taDAOs get s set.");
  83                    }
  84                    
  85                    if ( this.nameR esolver ==  null) {
  86                             this.n ameResolve r = new Si mpleReport NameResolv er();
  87                    }
  88           }
  89  
  90           /* *
  91            *  @see gov. va.med.fw. report.dat a.ReportDa taService# requestRep ortData(go v.va.med.f w.report.R eportConfi guration)
  92            * /
  93           pu blic Repor tData requ estReportD ata(Report Configurat ion config ) throws R eportExcep tion {
  94  
  95                    Vali date.notNu ll(config,  "A report  configura tion must  not be NUL L");
  96                    Vali date.notNu ll(config. getQueryCr iteria(),  "A report  query crit eria must  not be NUL L");
  97  
  98                    // P erform any  pre-proce ssing oper ation in a  DAO first
  99                    Repo rtDataDAO  dao = this .getReport DataDAO(co nfig);
  100                    dao. preDataRet rieval(con fig);
  101  
  102                    retu rn doReque stData(con fig);
  103           }
  104  
  105           /* *
  106            *  Returns a  dao that  is used to  retrieve  report dat a
  107            *  
  108            *  @param co nfig
  109            *              A report  configura tion
  110            *  @return A  report da ta dap
  111            *  @throws R eportExcep tion
  112            *               In case  of errors  getting a  report da ta dao
  113            * /
  114           pr otected Re portDataDA O getRepor tDataDAO(R eportConfi guration c onfig) thr ows Report Exception  {
  115                    Stri ng name =  this.nameR esolver.ge tReportNam e(config);
  116                    if ( !this.repo rtDataDAOs .containsK ey(name))  {
  117                             throw  new Report Exception( "A report  data DAO i s missing  for report : " + name );
  118                    }
  119                    Obje ct compone ntName = r eportDataD AOs.get(na me);
  120                    try  {
  121                             Object  dao = thi s.getCompo nent((Stri ng) compon entName);
  122                             return  (ReportDa taDAO) dao ;
  123                    } ca tch (Excep tion e) {
  124                             throw  new Report Exception( "A report  data dao "  + compone ntName + "  is not de fined", e) ;
  125                    }
  126           }
  127  
  128           /* *
  129            *  Performs  the actual  tast of r equest for  report da ta
  130            *  
  131            *  @param co nfiguratio n
  132            *              A report  configura tion
  133            *  @return A  report da ta
  134            *  @throws R eportExcep tion
  135            *               In case  of errors  request r eport data
  136            * /
  137           pr otected ab stract Rep ortData do RequestDat a(ReportCo nfiguratio n configur ation)
  138                             throws  ReportExc eption;
  139   }