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\permission\sls\simulator | SLSMockImpl.java | Fri Apr 21 20:15:58 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 60 |
| 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.permi ssion.sls. simulator; | |||||
| 2 | ||||||
| 3 | import jav ax.ejb.Sta teless; | |||||
| 4 | import jav ax.jws.Web Service; | |||||
| 5 | import jav ax.xml.ws. soap.MTOM; | |||||
| 6 | import gov .va.nvap.s erver.serv ice.permis sion.sls.S ecurityLab elingServi ce; | |||||
| 7 | import jav ax.annotat ion.PostCo nstruct; | |||||
| 8 | import org .apache.co mmons.lang .StringUti ls; | |||||
| 9 | import org .slf4j.Log gerFactory ; | |||||
| 10 | ||||||
| 11 | ||||||
| 12 | /** | |||||
| 13 | * Web Ser vice Imple mentation to Mock th e Security Labeling Service | |||||
| 14 | * | |||||
| 15 | * @author Sricharan Reddy | |||||
| 16 | * | |||||
| 17 | */ | |||||
| 18 | @WebServic e( | |||||
| 19 | endpoi ntInterfac e = "gov.v a.nvap.ser ver.servic e.permissi on.sls.Sec urityLabel ingService ", | |||||
| 20 | servic eName="Sec urityLabel ingService ", | |||||
| 21 | portNa me="Securi tyLabeling ServicePor t", | |||||
| 22 | target Namespace = "http:// sls.permis sion.servi ce.server. nvap.va.go v/") | |||||
| 23 | @Stateless | |||||
| 24 | @MTOM | |||||
| 25 | public cla ss SLSMock Impl imple ments Secu rityLabeli ngService | |||||
| 26 | { | |||||
| 27 | privat e static f inal org.s lf4j.Logge r LOGGER = | |||||
| 28 | Lo ggerFactor y.getLogge r(SLSMockI mpl.class) ; | |||||
| 29 | ||||||
| 30 | // EJB s are thre ad-safe | |||||
| 31 | privat e Restrict ionCheckUt il restric tionUtil; | |||||
| 32 | ||||||
| 33 | ||||||
| 34 | @P ostConstru ct | |||||
| 35 | public void post Construct( ) | |||||
| 36 | { | |||||
| 37 | tr y | |||||
| 38 | { | |||||
| 39 | restricti onUtil = R estriction CheckUtil. create(); | |||||
| 40 | } | |||||
| 41 | ca tch(Except ion ex) | |||||
| 42 | { | |||||
| 43 | LOGGER.w arn("Unabl e to load mock restr icted pati ent ID dat a from pro p file.", ex); | |||||
| 44 | } | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | @O verride | |||||
| 48 | pu blic Strin g evalConf identialit yCode(byte [] ccdXML) | |||||
| 49 | { | |||||
| 50 | String pa tientID = XmlParseUt il.parse(c cdXML); | |||||
| 51 | if (StringUti ls.isBlank (patientID )) | |||||
| 52 | { | |||||
| 53 | throw ne w IllegalA rgumentExc eption("Un able to pa rse patien t ID from given C-CD A CCD."); | |||||
| 54 | } | |||||
| 55 | Stri ng confide ntialityCo de = restr ictionUtil .checkRest riction(pa tientID); | |||||
| 56 | retu rn confide ntialityCo de; | |||||
| 57 | } | |||||
| 58 | ||||||
| 59 | ||||||
| 60 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.