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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter | CommentHistoryConverter.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 | CommentHistoryConverter.java | Wed Dec 20 22:08:31 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 126 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | package go v.va.genis is2.conver ter; | |
| 2 | ||
| 3 | import jav a.util.Arr ayList; | |
| 4 | import jav a.util.Lis t; | |
| 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.dto.Com mentHistor yDTO; | |
| 10 | import gov .va.genisi s2.model.C ommentHist ory; | |
| 11 | ||
| 12 | /** | |
| 13 | * This cl ass is use d to conve rt Comment HistoryDTO to Commen tHistory e ntity and vice-versa . | |
| 14 | * | |
| 15 | * @author P II | |
| 16 | * | |
| 17 | */ | |
| 18 | @Component | |
| 19 | public cla ss Comment HistoryCon verter imp lements Co nverter<Co mmentHisto ry, Commen tHistoryDT O> { | |
| 20 | ||
| 21 | @O verride | |
| 22 | pu blic Comme ntHistoryD TO convert (CommentHi story comm entHistory ) { | |
| 23 | Comm entHistory DTO commen tHistoryDt o = new Co mmentHisto ryDTO(); | |
| 24 | ||
| 25 | comm entHistory Dto.setCom mentId(com mentHistor y.getComme ntId()); | |
| 26 | comm entHistory Dto.setCom ments(comm entHistory .getCommen ts()); | |
| 27 | comm entHistory Dto.setCre atedOn(com mentHistor y.getCreat edOn()); | |
| 28 | comm entHistory Dto.setCre atedBy(com mentHistor y.getCreat edBy()); | |
| 29 | comm entHistory Dto.setCom mentType(c ommentHist ory.getCom mentType() .getId()); | |
| 30 | comm entHistory Dto.setReq uestId(com mentHistor y.getReque st().getId ()); | |
| 31 | comm entHistory Dto.setSta tus(commen tHistory.g etStatus() ); | |
| 32 | comm entHistory Dto.setTyp e(commentH istory.get Type()); | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | retu rn comment HistoryDto ; | |
| 37 | } | |
| 38 | ||
| 39 | pu blic Comme ntHistory convert(Co mmentHisto ryDTO comm entHistory Dto) { | |
| 40 | Comm entHistory commentHi story = ne w CommentH istory(); | |
| 41 | ||
| 42 | comm entHistory .setCommen tId(commen tHistoryDt o.getComme ntId()); | |
| 43 | comm entHistory .setReques tId(commen tHistoryDt o.getReque stId()); | |
| 44 | comm entHistory .setStatus (commentHi storyDto.g etStatus() ); | |
| 45 | comm entHistory .setCommen ts(comment HistoryDto .getCommen ts()); | |
| 46 | comm entHistory .setCreate dBy(commen tHistoryDt o.getCreat edBy()); | |
| 47 | comm entHistory .setCommen tTypeId(co mmentHisto ryDto.getC ommentType ()); | |
| 48 | ||
| 49 | retu rn comment History; | |
| 50 | } | |
| 51 | ||
| 52 | pu blic List< CommentHis toryDTO> c onvertComm entHistori es(List<Co mmentHisto ry> commen tHistories ) { | |
| 53 | List <CommentHi storyDTO> commentHis toryDtos = null; | |
| 54 | ||
| 55 | if ( null != co mmentHisto ries) { | |
| 56 | commen tHistoryDt os = new A rrayList<> (); | |
| 57 | for(Co mmentHisto ry Comment History : commentHis tories) { | |
| 58 | commentH istoryDtos .add(conve rt(Comment History)); | |
| 59 | } | |
| 60 | } | |
| 61 | ||
| 62 | retu rn comment HistoryDto s; | |
| 63 | } | |
| 64 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.