343. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:29 AM Eastern 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.

343.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\report SynchronousReportService.java Fri Dec 7 17:36:22 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\report SynchronousReportService.java Wed Dec 12 19:46:45 2018 UTC

343.2 Comparison summary

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

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

343.4 Active regular expressions

No regular expressions were active.

343.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;
  6  
  7   // Java cl asses
  8  
  9   // Library  classes
  10   import org .apache.co mmons.lang .Validate;
  11   import org .springfra mework.ste reotype.Se rvice;
  12  
  13   import gov .va.med.fw .report.da ta.ReportD ata;
  14   import gov .va.med.fw .service.A bstractCom ponent;
  15   import gov .va.med.fw .service.S erviceExce ption;
  16  
  17   // ESR cla sses
  18  
  19   /**
  20    * 
  21    * 
  22    * Project : Framewor k</br> Cre ated on: 4 :27:51 PM  </br>
  23    * 
  24    * @author   DN S
  25    */
  26   @Service
  27   public cla ss Synchro nousReport Service ex tends Abst ractCompon ent implem ents Repor tService {
  28  
  29           /* *
  30            *  An instan ce of seri alVersionU ID
  31            * /
  32           pr ivate stat ic final l ong serial VersionUID  = -355795 8044224151 158L;
  33  
  34           /* *
  35            *  A default  construct or
  36            * /
  37           pu blic Synch ronousRepo rtService( ) {
  38                    supe r();
  39           }
  40  
  41           /* *
  42            *  Generates  a report  using the  specific r eport conf iguration.  Use this
  43            *  method to  generate  a report t hat alread y has a we ll statica lly define d
  44            *  report cr iteria set , and repo rt templat e. A repor t criteria  set is us ed
  45            *  to query  report dat a to popul ate a repo rt templat e.
  46            *  
  47            *  @param co nfiguratio n
  48            *              A report  configura tion
  49            *  @return R eport that  encapsula tes the ac tual forma tted repor t
  50            * /
  51           pu blic void  buildRepor t(ReportCo nfiguratio n configur ation) thr ows Servic eException  {
  52                    this .getReport Builder(co nfiguratio n).buildRe port(confi guration);
  53           }
  54  
  55           /* *
  56            *  Generates  a report  using the  specific r eport conf iguration  and data
  57            *  
  58            *  @param co nfiguratio n
  59            *              A report  configura tion
  60            *  @param da ta
  61            *              Data to  generate a  report
  62            *  @return R eport that  encapsula tes the ac tual forma tted repor t
  63            * /
  64           pu blic void  buildRepor t(ReportCo nfiguratio n configur ation, Rep ortData da ta)
  65                             throws  ServiceEx ception {
  66                    this .getReport Builder(co nfiguratio n).buildRe port(confi guration,  data);
  67           }
  68  
  69           /* *
  70            *  Returns t he specifi c report b uilder tha t knows ho w to build  a report  A
  71            *  report bu ilder is l ooked up i n an appli cation con text using  a report  name
  72            *  as a uniq ue ID.
  73            *  
  74            *  @param co nfiguratio n
  75            *              A report  configura tion
  76            *  @return R eportBuild er a build er to buil d a report
  77            *  @throws R eportExcep tion
  78            *               Thrown  in case of  errors ob taining a  builder
  79            * /
  80           pr otected Re portBuilde r getRepor tBuilder(R eportConfi guration c onfigurati on)
  81                             throws  ReportExc eption {
  82  
  83                    Vali date.notNu ll(configu ration, "A  report co nfiguratio n must not  be NULL") ;
  84                    Vali date.notNu ll(configu ration.get ReportName (), "A rep ort name m ust not be  NULL");
  85  
  86                    Repo rtBuilder  builder =  null;
  87                    try  {
  88                             builde r = (Repor tBuilder)  this.getCo mponent(co nfiguratio n.getRepor tName(),
  89                                               ReportBuil der.class) ;
  90                    } ca tch (Excep tion e) {
  91                             if (lo gger.isDeb ugEnabled( )) {
  92                                      logger.d ebug("A bu ilder is n ot configu red for re port ["
  93                                                       +  configurat ion.getRep ortName()  + "]");
  94                                      logger.d ebug("Use  a default  builder: "  + Configu rableRepor tBuilder.c lass.getNa me());
  95                             }
  96                             logger .error("Fa iled to ge t a report  builder",  e);
  97                             throw  new Report Exception( "Failed to  get a rep ort builde r", e);
  98                    }
  99                    retu rn builder ;
  100           }
  101   }