328. EPMO Open Source Coordination Office Redaction File Detail Report

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

328.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 AbstractReportExporter.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 AbstractReportExporter.java Wed Dec 12 19:46:45 2018 UTC

328.2 Comparison summary

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

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

328.4 Active regular expressions

No regular expressions were active.

328.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   import jav a.io.ByteA rrayOutput Stream;
  9  
  10   import org .apache.co mmons.lang .Validate;
  11  
  12   import gov .va.med.fw .report.da ta.ReportD ata;
  13   import gov .va.med.fw .security. LoginManag er;
  14   import gov .va.med.fw .security. UserPrinci pal;
  15   import gov .va.med.fw .service.A bstractCom ponent;
  16  
  17   // ESR cla sses
  18  
  19   /**
  20    * 
  21    * 
  22    * Project : Framewor k</br> Cre ated on: 2 :00:45 PM  </br>
  23    * 
  24    * @author   DN S
  25    */
  26   public abs tract clas s Abstract ReportExpo rter exten ds Abstrac tComponent  implement s ReportEx porter {
  27  
  28           pr ivate stat ic final l ong serial VersionUID  = 1467885 6593498364 03L;
  29  
  30           /* *
  31            *  An instan ce of repo rtPersiste r
  32            * /
  33           pr ivate Repo rtPersiste r reportPe rsister =  null;
  34           pr ivate Logi nManager l oginManage r = null;
  35  
  36           /* *
  37            *  A default  construct or
  38            * /
  39           pr otected Ab stractRepo rtExporter () {
  40                    supe r();
  41                    this .setReport Persister( new FileSy stemReport Persister( ));
  42           }
  43  
  44           /* *
  45            *  @return R eturns the  reportPer sister.
  46            * /
  47           pu blic Repor tPersister  getReport Persister( ) {
  48                    retu rn reportP ersister;
  49           }
  50  
  51           /* *
  52            *  @param re portPersis ter
  53            *              The repo rtPersiste r to set.
  54            * /
  55           pu blic void  setReportP ersister(R eportPersi ster repor tPersister ) {
  56                    this .reportPer sister = r eportPersi ster;
  57           }
  58  
  59           pu blic Login Manager ge tLoginMana ger() {
  60                    retu rn loginMa nager;
  61           }
  62  
  63           pu blic void  setLoginMa nager(Logi nManager l oginManage r) {
  64                    this .loginMana ger = logi nManager;
  65           }
  66  
  67           /* *
  68            *  @see gov. va.med.fw. report.Rep ortExporte r#exportRe port(gov.v a.med.fw.r eport.Repo rtConfigur ation,
  69            *       gov. va.med.fw. report.dat a.ReportDa ta,
  70            *       gov. va.med.fw. report.Rep ortTemplat e)
  71            * /
  72           pu blic void  exportRepo rt(ReportC onfigurati on configu ration, Re portData d ata,
  73                             Report Template t emplate) t hrows Repo rtExceptio n {
  74  
  75                    Vali date.notNu ll(configu ration, "A  report co nfiguratio n must not  be NULL") ;
  76                    Vali date.notNu ll(data, " A report d ata must n ot be NULL  ");
  77  
  78                    pers ist(config uration, e xport(fill (configura tion, data , template )));
  79           }
  80  
  81           /* *
  82            *  @param co nfig
  83            *  @param st ream
  84            *  @throws R eportExcep tion
  85            * /
  86           pr otected vo id persist (ReportCon figuration  config, B yteArrayOu tputStream  stream)
  87                             throws  ReportExc eption {
  88  
  89                    if ( this.repor tPersister  != null)  {
  90                             UserPr incipal us er = confi g.getRepor tUser();
  91                             if (lo ginManager  != null & & user !=  null) {
  92                                      // Login  Anonymous ly for thi s asynchor nous threa d
  93                                      loginMan ager.login Anonymous( user.getUs erCredenti als().getU serID());
  94                             }
  95  
  96                             this.r eportPersi ster.persi st(config,  stream);
  97                    }
  98           }
  99  
  100           /* *
  101            *  @param re port
  102            *  @return
  103            *  @throws R eportExcep tion
  104            * /
  105           pr otected ab stract Byt eArrayOutp utStream e xport(Obje ct report)  throws Re portExcept ion;
  106  
  107           /* *
  108            *  @param co nfig
  109            *  @param da ta
  110            *  @param te mplate
  111            *  @return
  112            *  @throws R eportExcep tion
  113            * /
  114           pr otected ab stract Obj ect fill(R eportConfi guration c onfig, Rep ortData da ta,
  115                             Report Template t emplate) t hrows Repo rtExceptio n;
  116   }