106. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/20/2017 5:56:12 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.

106.1 Files compared

# Location File Last Modified
1 Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter UserCountConverter.java Thu Dec 14 19:57:07 2017 UTC
2 Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter UserCountConverter.java Wed Dec 20 22:10:31 2017 UTC

106.2 Comparison summary

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

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

106.4 Active regular expressions

No regular expressions were active.

106.5 Comparison detail

  1   package go v.va.genis is2.conver ter;
  2  
  3   import jav a.util.Dat e;
  4   import jav a.util.Lis t;
  5  
  6   import org .slf4j.Log ger;
  7   import org .slf4j.Log gerFactory ;
  8   import org .springfra mework.ste reotype.Co mponent;
  9  
  10   import gov .va.genisi s2.dto.Use rCountDTO;
  11   import gov .va.genisi s2.excepti ons.ErrorE num;
  12   import gov .va.genisi s2.excepti ons.Genisi sServiceEx ception;
  13   import gov .va.genisi s2.model.U serCount;
  14  
  15   /**
  16    * This cl ass is use d to conve rt UserCou ntDTO to U serCount e ntity and
  17    * vice-ve rsa.
  18    * 
  19    * @author  P II
  20    *
  21    */
  22   @Component
  23   public cla ss UserCou ntConverte r {
  24  
  25           pr ivate stat ic final L ogger LOGG ER = Logge rFactory.g etLogger(U serCountCo nverter.cl ass);
  26  
  27           pu blic UserC ountDTO po pulateUser Count(List <UserCount > userCoun ts, Date l astRefresh ed) throws  GenisisSe rviceExcep tion {
  28                    User CountDTO u serCountDt o = new Us erCountDTO ();
  29  
  30                    user CountDto.s etLastRefr eshed(last Refreshed) ;
  31                    user CountDto.s etDispLast Refreshed( lastRefres hed);
  32                    
  33                    if ( null != us erCounts & & !userCou nts.isEmpt y()) {
  34                             userCo untDto.set TotalUsers (0);
  35                             for (U serCount u serCount :  userCount s) {
  36                                      switch ( userCount. getRoleTyp eId()) {
  37                                      case 1: 
  38                                               getAdminCo unt(userCo unt, userC ountDto);
  39                                               break;
  40                                      case 2: 
  41                                               getRequest ersCount(u serCount,  userCountD to);
  42                                               break;
  43                                      case 3:
  44                                               getDDMsCou nt(userCou nt, userCo untDto);
  45                                               break;
  46                                      case 4:
  47                                               getDSMsCou nt(userCou nt, userCo untDto);
  48                                               break;
  49                                      default:
  50                                               LOGGER.err or(ErrorEn um.INVALID _ROLETYPEI D.getError Message()  + userCoun t.getRoleT ypeId());
  51                                               throw new  GenisisSer viceExcept ion(ErrorE num.INVALI D_ROLETYPE ID.getErro rMessage()  + userCou nt.getRole TypeId());
  52                                      }
  53                             }
  54                    }
  55  
  56                    retu rn userCou ntDto;
  57           }
  58  
  59           pr ivate void  getAdminC ount(UserC ount userC ount, User CountDTO u serCountDt o) {
  60                    user CountDto.s etNumAdmin s(userCoun t.getCount ());
  61           }
  62           
  63           pr ivate void  getReques tersCount( UserCount  userCount,  UserCount DTO userCo untDto) {
  64                    user CountDto.s etNumReque sters(user Count.getC ount());
  65                    user CountDto.s etTotalUse rs(userCou ntDto.getT otalUsers( ) + userCo unt.getCou nt());
  66           }
  67           
  68           pr ivate void  getDDMsCo unt(UserCo unt userCo unt, UserC ountDTO us erCountDto ) {
  69                    user CountDto.s etNumDDMs( userCount. getCount() );
  70                    user CountDto.s etTotalUse rs(userCou ntDto.getT otalUsers( ) + userCo unt.getCou nt());
  71           }
  72           
  73           pr ivate void  getDSMsCo unt(UserCo unt userCo unt, UserC ountDTO us erCountDto ) {
  74                    user CountDto.s etNumDSMs( userCount. getCount() );
  75                    user CountDto.s etTotalUse rs(userCou ntDto.getT otalUsers( ) + userCo unt.getCou nt());
  76           }
  77   }