197. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/15/2018 10:48:58 PM Eastern Daylight 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.

197.1 Files compared

# Location File Last Modified
1 MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_user\mhv-usermgmt-portal-data\src\main\java\gov\va\med\mhv\usermgmt\converter ActivityDTOConverter.java Thu Aug 23 20:25:32 2018 UTC
2 MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_user\mhv-usermgmt-portal-data\src\main\java\gov\va\med\mhv\usermgmt\converter ActivityDTOConverter.java Sat Sep 15 22:48:23 2018 UTC

197.2 Comparison summary

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

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

197.4 Active regular expressions

No regular expressions were active.

197.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.m hv.usermgm t.converte r;
  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.med.mh v.usermgmt .common.dt o.Activity DTO;
  10   import gov .va.med.mh v.usermgmt .data.mode l.Activity ;
  11  
  12   /**
  13    * @author   DNS
  14    *
  15    */
  16   @Component
  17   public cla ss Activit yDTOConver ter implem ents Conve rter<Activ ityDTO, Ac tivity> {
  18           
  19           pr ivate fina l static i nt DETAIL_ VALUE_MAX_ LENGTH = 2 55;
  20  
  21           @O verride
  22           pu blic Activ ity conver t(Activity DTO source ) {
  23                    Acti vity desti nation = n ew Activit y();
  24                    dest ination.se tAction(so urce.getAc tion());
  25                    dest ination.se tActivityI d(source.g etActivity Id());
  26                    dest ination.se tActivityT ype(source .getActivi tyType());
  27                    dest ination.se tCompletio nTime(sour ce.getComp letionTime ());
  28                    if(s ource.getD etailValue () != null ) {
  29                             destin ation.setD etailValue (abbreviat eString(so urce.getDe tailValue( ),DETAIL_V ALUE_MAX_L ENGTH));
  30                    }
  31                    dest ination.se tPerformer Type(sourc e.getPerfo rmerType() );
  32                    dest ination.se tStatus(so urce.getSt atus());
  33                    dest ination.se tUserProfi leId(sourc e.getUserP rofileId() );
  34                    retu rn destina tion;
  35           }
  36           
  37           pr ivate stat ic String  abbreviate String(Str ing input,  int maxLe ngth) {
  38                if (inpu t.length()  <= maxLen gth) 
  39                    retu rn input;
  40                else 
  41                    retu rn input.s ubstring(0 , maxLengt h-2) + ".. ";
  42           }
  43  
  44   }