26. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/7/2017 12:14:06 PM 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.

26.1 Files compared

# Location File Last Modified
1 cpss.zip\cpss\src\main\java\gov\va\cpss\job\cbs CbsQueryNewPSReceivedTasklet.java Wed Feb 1 21:07:30 2017 UTC
2 cpss.zip\cpss\src\main\java\gov\va\cpss\job\cbs CbsQueryNewPSReceivedTasklet.java Fri Feb 3 20:42:22 2017 UTC

26.2 Comparison summary

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

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

26.4 Active regular expressions

No regular expressions were active.

26.5 Comparison detail

  1   package go v.va.cpss. job.cbs;
  2  
  3   import jav a.util.Lis t;
  4  
  5   import org .apache.lo g4j.Logger ;
  6   import org .springfra mework.bat ch.core.St epContribu tion;
  7   import org .springfra mework.bat ch.core.sc ope.contex t.ChunkCon text;
  8   import org .springfra mework.bat ch.core.st ep.tasklet .Tasklet;
  9   import org .springfra mework.bat ch.repeat. RepeatStat us;
  10  
  11   import gov .va.cpss.s ervice.Fps Service;
  12  
  13   /**
  14    * Query f or all PSR eceived re cords in t he NEW sta te.
  15    * 
  16    * @author   DN S      P II
  17    */
  18   public cla ss CbsQuer yNewPSRece ivedTaskle t implemen ts Tasklet  {
  19  
  20           pr ivate fina l Logger t askletLogg er;
  21  
  22           pr ivate FpsS ervice fps Service;
  23  
  24           pr ivate CbsR untimeStat e cbsRunti meState;
  25  
  26           pu blic CbsQu eryNewPSRe ceivedTask let() {
  27                    task letLogger  = Logger.g etLogger(t his.getCla ss().getCa nonicalNam e());
  28           }
  29  
  30           pu blic FpsSe rvice getF psService( ) {
  31                    retu rn fpsServ ice;
  32           }
  33  
  34           pu blic void  setFpsServ ice(FpsSer vice fpsSe rvice) {
  35                    this .fpsServic e = fpsSer vice;
  36           }
  37  
  38           pu blic CbsRu ntimeState  getCbsRun timeState( ) {
  39                    retu rn cbsRunt imeState;
  40           }
  41  
  42           pu blic void  setCbsRunt imeState(C bsRuntimeS tate cbsRu ntimeState ) {
  43                    this .cbsRuntim eState = c bsRuntimeS tate;
  44           }
  45  
  46           @O verride
  47           pu blic Repea tStatus ex ecute(Step Contributi on contrib ution, Chu nkContext  chunkConte xt) throws  Exception  {
  48  
  49                    task letLogger. info("Begi n execute" );
  50  
  51                    // I nitialize  the run ti me paramet ers to cle ar any res idual data  from
  52                    // p revious us e.
  53                    cbsR untimeStat e.initiali ze();
  54  
  55                    // G et all the  NEW PSRec eived.
  56                    List <Long> psR eceivedL =  fpsServic e.getNewPS ReceivedID List();
  57  
  58                    if ( psReceived L.isEmpty( )) {
  59                             cbsRun timeState. setEmpty(t rue);
  60                             taskle tLogger.er ror("No ne w PSReceiv ed to proc ess");
  61                    } el se {
  62  
  63                             // Sav e the rece ntly queri ed data.
  64                             for (L ong psRece ived : psR eceivedL)  {
  65                                      taskletL ogger.info ("Adding P SReceived  ID: " + ps Received);
  66                                      cbsRunti meState.ad dPSReceive dEntry(psR eceived);
  67                             }
  68                    }
  69  
  70                    task letLogger. info("End  execute");
  71  
  72                    retu rn RepeatS tatus.FINI SHED;
  73           }
  74  
  75   }