130. EPMO Open Source Coordination Office Redaction File Detail Report

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

130.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\model\report ReportParameters.java Fri Dec 7 17:36:34 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\model\report ReportParameters.java Wed Dec 12 22:33:38 2018 UTC

130.2 Comparison summary

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

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

130.4 Active regular expressions

No regular expressions were active.

130.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrig ht � 2010  VHA. All r ights rese rved
  3    ********* ********** ********** ********** ********** ********** *********/
  4   package go v.va.med.c cht.model. report;
  5  
  6   import jav a.text.Sim pleDateFor mat;
  7   import jav a.util.Dat e;
  8   import jav a.util.Has hMap;
  9   import jav a.util.Map ;
  10   import jav a.util.Tim eZone;
  11  
  12   import jav ax.validat ion.Valid;
  13   import jav ax.validat ion.constr aints.Past ;
  14  
  15   import org .apache.co mmons.lang 3.builder. ToStringBu ilder;
  16  
  17   import gov .va.med.cc ht.model.r eport.sche duled.Date RangeBound ary;
  18   import gov .va.med.cc ht.model.t erminology .ReportFor mat;
  19   import gov .va.med.fw .model.Abs tractKeyed Entity;
  20   import gov .va.med.fw .util.Date Utils;
  21  
  22   /**
  23    * IHTA IH TA_common  Aug 8, 201 0
  24    * 
  25    * @author   DNS
  26    */
  27   public cla ss ReportP arameters  extends Ab stractKeye dEntity<Re portParame ters> {
  28           pr ivate stat ic final l ong serial VersionUID  = -128628 0451855996 4L;
  29  
  30           //  --------- ---------- ---------- ---------- ---- Field s
  31  
  32           @V alid
  33           pr ivate Time Zone userT imeZone;
  34           @V alid
  35           pr ivate Repo rtSetup re portSetup;
  36           @V alid
  37           pr ivate Repo rtFormat r eportForma t;
  38           
  39           pr ivate Stri ng reportN ame;
  40           
  41           //  --- Date  Fields (nu ll if sche duled repo rt)
  42           @P ast
  43           pr ivate Date  fromDate;
  44           pr ivate Date  toDate;
  45           pr ivate Date  asOfDate;
  46  
  47           //  --- Sched uled Repor t Fields
  48  
  49           pr ivate Date RangeBound ary schedu ledReportF romDate;
  50           pr ivate Date RangeBound ary schedu ledReportT oDate;
  51           pr ivate Inte ger daysTo KeepComple tedReports ;
  52  
  53           //  --------- ---------- ---------- ---------- ---- Busin ess Method s
  54  
  55           /* *
  56            *  The value s in this  map are se nt to the  Jasper rep orts code  used to
  57            *  populate  the report ; they are  more or l ess refere nce data u sed in the
  58            *  reports.  CPB
  59            * /
  60           pu blic Map<S tring, Obj ect> getPa rameterMap () {
  61                    Map< String, Ob ject> map  = new Hash Map<String , Object>( );
  62                    // c ommon para meters
  63                    Simp leDateForm at sdf = n ew SimpleD ateFormat( DateUtils. MMDDYYYY);
  64                    if ( userTimeZo ne != null ) {
  65                             sdf.se tTimeZone( userTimeZo ne);
  66                             // map .put("user TimeZone",  userTimeZ one.getID( ));
  67                    }
  68                    // p ut the spe cified dat es
  69  
  70                    bool ean isSche duledRepor t = schedu ledReportF romDate !=  null
  71                                      && sched uledReport ToDate !=  null;
  72                    if ( isSchedule dReport) {
  73                             Date n ow = new D ate();
  74                             map.pu t("fromDat eStr", sdf .format(sc heduledRep ortFromDat e.calculat eDate(now) ));
  75                             String  toDateStr  = sdf.for mat(schedu ledReportT oDate.calc ulateDate( now));
  76                             map.pu t("toDateS tr", toDat eStr);
  77                             map.pu t("asOfDat eStr", toD ateStr);
  78                    } el se {
  79                             if (fr omDate !=  null)
  80                                      map.put( "fromDateS tr", sdf.f ormat(from Date));
  81                             if (to Date != nu ll)
  82                                      map.put( "toDateStr ", sdf.for mat(toDate ));
  83                             if (as OfDate !=  null)
  84                                      map.put( "asOfDateS tr", sdf.f ormat(asOf Date));
  85                    }
  86  
  87                    retu rn map;
  88           }
  89  
  90           pr otected vo id buildTo String(ToS tringBuild er builder ) {
  91                    // T ODO Auto-g enerated m ethod stub
  92           }
  93  
  94           pu blic boole an isDetai ledReport( ) {
  95                    // d efaults to  Detailed  report
  96                    retu rn reportF ormat == n ull ? true  : ReportF ormat.DETA IL.equals(
  97                                      reportFo rmat.getCo de());
  98           }
  99  
  100           //  --------- ---------- ---------- ---------- ---- Acces sor Method s
  101  
  102           pu blic Repor tSetup get ReportSetu p() {
  103                    retu rn this.re portSetup;
  104           }
  105  
  106           pu blic void  setReportS etup(Repor tSetup rep ortSetup)  {
  107                    this .reportSet up = repor tSetup;
  108           }
  109  
  110           pu blic Date  getFromDat e() {
  111                    retu rn this.fr omDate;
  112           }
  113  
  114           pu blic void  setFromDat e(Date fro mDate) {
  115                    this .fromDate  = fromDate ;
  116           }
  117  
  118           pu blic Date  getToDate( ) {
  119                    retu rn this.to Date;
  120           }
  121  
  122           pu blic void  setToDate( Date toDat e) {
  123                    this .toDate =  toDate;
  124           }
  125  
  126           pu blic Date  getAsOfDat e() {
  127                    retu rn asOfDat e;
  128           }
  129  
  130           pu blic void  setAsOfDat e(Date asO fDate) {
  131                    this .asOfDate  = asOfDate ;
  132           }
  133  
  134           pu blic Repor tFormat ge tReportFor mat() {
  135                    retu rn reportF ormat;
  136           }
  137  
  138           pu blic void  setReportF ormat(Repo rtFormat r eportForma t) {
  139                    this .reportFor mat = repo rtFormat;
  140           }
  141  
  142           pu blic TimeZ one getUse rTimeZone( ) {
  143                    retu rn userTim eZone;
  144           }
  145  
  146           pu blic void  setUserTim eZone(Time Zone userT imeZone) {
  147                    this .userTimeZ one = user TimeZone;
  148           }
  149  
  150           pu blic Strin g getRepor tName() {
  151                    retu rn reportN ame;
  152           }
  153  
  154           pu blic void  setReportN ame(String  reportNam e) {
  155                    this .reportNam e = report Name;
  156           }
  157  
  158           pu blic DateR angeBounda ry getSche duledRepor tFromDate( ) {
  159                    retu rn schedul edReportFr omDate;
  160           }
  161  
  162           pu blic void  setSchedul edReportFr omDate(Dat eRangeBoun dary sched uledReport FromDate)  {
  163                    this .scheduled ReportFrom Date = sch eduledRepo rtFromDate ;
  164           }
  165  
  166           pu blic DateR angeBounda ry getSche duledRepor tToDate()  {
  167                    retu rn schedul edReportTo Date;
  168           }
  169  
  170           pu blic void  setSchedul edReportTo Date(DateR angeBounda ry schedul edReportTo Date) {
  171                    this .scheduled ReportToDa te = sched uledReport ToDate;
  172           }
  173  
  174           pu blic Integ er getDays ToKeepComp letedRepor ts() {
  175                    retu rn daysToK eepComplet edReports;
  176           }
  177  
  178           pu blic void  setDaysToK eepComplet edReports( Integer da ysToKeepCo mpletedRep orts) {
  179                    this .daysToKee pCompleted Reports =  daysToKeep CompletedR eports;
  180           }
  181  
  182   }