Produced by Araxis Merge on 6/9/2017 3:50: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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:50:58 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-server\src\main\java\gov\va\nvap\server\service\privacy\converter | OptoutReasonConverter.java | Fri Apr 21 20:03:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 45 |
| 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.nvap. server.ser vice.priva cy.convert er; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.p rivacy.Con sentDirect iveOptOutR easonType; | |||||
| 4 | import gov .va.nvap.s vc.consent mgmt.stub. data.Optou tReason; | |||||
| 5 | ||||||
| 6 | import org .dozer.Cus tomConvert er; | |||||
| 7 | import org .dozer.Map pingExcept ion; | |||||
| 8 | ||||||
| 9 | /** | |||||
| 10 | * A Dozer custom co nverter fo r converti ng Optout reason fro m PIP to W ebservice | |||||
| 11 | * type. | |||||
| 12 | * | |||||
| 13 | * @author Asha Amri traj | |||||
| 14 | * | |||||
| 15 | */ | |||||
| 16 | public cla ss OptoutR easonConve rter imple ments Cust omConverte r { | |||||
| 17 | ||||||
| 18 | @O verride | |||||
| 19 | pu blic Objec t convert( final Obje ct destina tion, fina l Object s ource, | |||||
| 20 | final Class<?> d estClass, final Clas s<?> sourc eClass) { | |||||
| 21 | if ( source == null) { | |||||
| 22 | return null; | |||||
| 23 | } | |||||
| 24 | if ( OptoutReas on.class.i sInstance( source)) { | |||||
| 25 | // Fro m PIP to W S Type | |||||
| 26 | final String tex t = ((Opto utReason) source).ge tText(); | |||||
| 27 | return ConsentDi rectiveOpt OutReasonT ype.fromVa lue(text); | |||||
| 28 | } | |||||
| 29 | // F rom WS Typ e to PIP | |||||
| 30 | // T ODO: canno t get the ID of opto utreason, so for now its not | |||||
| 31 | // i mplemented . | |||||
| 32 | // e lse if (Co nsentDirec tiveOptOut ReasonType .class.isI nstance(so urce)) { | |||||
| 33 | // O ptoutReaso n optoutRe ason = new OptoutRea son(); | |||||
| 34 | // o ptoutReaso n.setText( ((ConsentD irectiveOp tOutReason Type) | |||||
| 35 | // s ource).val ue()); | |||||
| 36 | // r eturn opto utReason; | |||||
| 37 | // } | |||||
| 38 | else { | |||||
| 39 | throw new Mappin gException ( | |||||
| 40 | "Converter OptoutRea sonConvert er used in correctly. Arguments passed in were:" | |||||
| 41 | + de stination + " and " + source); | |||||
| 42 | } | |||||
| 43 | } | |||||
| 44 | ||||||
| 45 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.