Produced by Araxis Merge on 6/9/2017 3:50:57 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:57 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\pdq\interceptor | PdqAuditInterceptor.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 | 66 |
| 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.pdq .intercept or; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.inte rceptor.In terceptor; | |||||
| 4 | import gov .va.nvap.c ommon.inte rceptor.In terceptorE xception; | |||||
| 5 | import gov .va.nvap.c ommon.tran sformer.Tr ansformer; | |||||
| 6 | import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception; | |||||
| 7 | import gov .va.nvap.c ommon.vali dation.Ass ert; | |||||
| 8 | import gov .va.nvap.s ervice.aud it.AuditEx ception; | |||||
| 9 | import gov .va.nvap.s ervice.aud it.AuditSe rvice; | |||||
| 10 | import gov .va.nvap.s ervice.aud it.data.Co nsentAudit ; | |||||
| 11 | import gov .va.nvap.s ervice.pdq .RemovePat ientCorrel ationReque st; | |||||
| 12 | ||||||
| 13 | import org .springfra mework.bea ns.factory .annotatio n.Required ; | |||||
| 14 | ||||||
| 15 | /** | |||||
| 16 | * Audit i nterceptor to audit the inform ation from the patie nt demogra phics | |||||
| 17 | * service . | |||||
| 18 | * | |||||
| 19 | * @author Asha Amri traj | |||||
| 20 | * | |||||
| 21 | */ | |||||
| 22 | public cla ss PdqAudi tIntercept or impleme nts Interc eptor<Obje ct, Object > { | |||||
| 23 | ||||||
| 24 | /* * | |||||
| 25 | * The refer ence to th e audit se rver. | |||||
| 26 | * / | |||||
| 27 | Au ditService auditServ ice; | |||||
| 28 | /* * | |||||
| 29 | * Transform s from the RemovePat ientsCorre lationRequ est to Con sentAudit. | |||||
| 30 | * / | |||||
| 31 | Tr ansformer< RemovePati entCorrela tionReques t, Consent Audit> tra nsformer; | |||||
| 32 | ||||||
| 33 | @O verride | |||||
| 34 | pu blic Objec t intercep t(final Ob ject objec t) throws Intercepto rException { | |||||
| 35 | Asse rt.assertN otEmpty(ob ject, "Req uest canno t be empty !"); | |||||
| 36 | ||||||
| 37 | if ( RemovePati entCorrela tionReques t.class.is Instance(o bject)) { | |||||
| 38 | final RemovePati entCorrela tionReques t request = (RemoveP atientCorr elationReq uest) obje ct; | |||||
| 39 | try { | |||||
| 40 | // Trans form & Aud it | |||||
| 41 | final Co nsentAudit audit = t his.transf ormer.tran sform(requ est); | |||||
| 42 | this.aud itService. auditConse nt(audit); | |||||
| 43 | ||||||
| 44 | } catc h (final T ransformer Exception ex) { | |||||
| 45 | throw ne w Intercep torExcepti on(ex); | |||||
| 46 | } catc h (final A uditExcept ion ex) { | |||||
| 47 | throw ne w Intercep torExcepti on(ex); | |||||
| 48 | } | |||||
| 49 | } el se { | |||||
| 50 | throw new Runtim eException ( | |||||
| 51 | "Only Remo vePatientC orrelation Request is supported !"); | |||||
| 52 | } | |||||
| 53 | retu rn object; | |||||
| 54 | } | |||||
| 55 | ||||||
| 56 | @R equired | |||||
| 57 | pu blic void setAuditSe rvice(fina l AuditSer vice audit Service) { | |||||
| 58 | this .auditServ ice = audi tService; | |||||
| 59 | } | |||||
| 60 | ||||||
| 61 | @R equired | |||||
| 62 | pu blic void setTransfo rmer( | |||||
| 63 | final Transforme r<RemovePa tientCorre lationRequ est, Conse ntAudit> t ransformer ) { | |||||
| 64 | this .transform er = trans former; | |||||
| 65 | } | |||||
| 66 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.