26. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/20/2017 5:56:04 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 Genisis_2.0_v6_bld6.zip\Source Code\TS\Service\bookmarking-service\src\main\java\gov\va\genisis2\bs\converter LabelConverter.java Thu Dec 14 19:57:18 2017 UTC
2 Genisis_2.0_v6_bld6.zip\Source Code\TS\Service\bookmarking-service\src\main\java\gov\va\genisis2\bs\converter LabelConverter.java Wed Dec 20 20:13:16 2017 UTC

26.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 94
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.genis is2.bs.con verter;
  2  
  3   import jav a.util.Lis t;
  4   import jav a.util.str eam.Collec tors;
  5  
  6   import org .springfra mework.cor e.convert. converter. Converter;
  7   import org .springfra mework.ste reotype.Co mponent;
  8  
  9   import gov .va.genisi s2.bs.data .model.Lab el;
  10   import gov .va.genisi s2.ts.comm on.dto.Lab elDTO;
  11  
  12   /**
  13    * Used to  convert L abel Objec t to Label  DTO's and  vice vers a
  14    * @author   PII
  15    */
  16   @Component
  17   public cla ss LabelCo nverter im plements C onverter<L abel, Labe lDTO> {
  18           @O verride
  19           pu blic Label DTO conver t(Label la bel) {
  20                    
  21                    Labe lDTO label Dto = new  LabelDTO() ;
  22                    
  23                    labe lDto.setLa belId(labe l.getLabel Id());
  24                    labe lDto.setBo okmarkId(l abel.getBo okmarkId() );
  25                    labe lDto.setNa me(label.g etName());
  26                    labe lDto.setUs ername(lab el.getUser name());
  27                    
  28                    retu rn labelDt o;
  29           }
  30           
  31           pu blic List< LabelDTO>  convert(Li st<Label>  list){
  32                    retu rn list
  33                                      .stream( )
  34                                      .map(l - > convert( l))
  35                                      .collect (Collector s.toList() );
  36           }
  37           
  38           pu blic Label  convert(L abelDTO la belDto) {
  39                    Labe l label =  new Label( );
  40                    
  41                    labe l.setLabel Id(labelDt o.getLabel Id());
  42                    labe l.setBookm arkId(labe lDto.getBo okmarkId() );
  43                    labe l.setName( labelDto.g etName());
  44                    labe l.setUsern ame(labelD to.getUser name());
  45                    
  46                    retu rn label;
  47           }
  48   }