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\pdp | PDPImplWS.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 | 92 |
| 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 | /* | |||||
| 2 | * To chan ge this te mplate, ch oose Tools | Templat es | |||||
| 3 | * and ope n the temp late in th e editor. | |||||
| 4 | */ | |||||
| 5 | package go v.va.nvap. server.ser vice.permi ssion.pdp; | |||||
| 6 | ||||||
| 7 | import gov .va.nvap.s erver.auth .ServiceAu thenticati on; | |||||
| 8 | import gov .va.nvap.s ervice.aut h.ServiceA udit; | |||||
| 9 | import gov .va.nvap.s ervice.aut h.ServiceA uthenticat ionExcepti on; | |||||
| 10 | import jav a.util.log ging.Logge r; | |||||
| 11 | import jav ax.annotat ion.Resour ce; | |||||
| 12 | import jav ax.ejb.Sta teless; | |||||
| 13 | import jav ax.interce ptor.Inter ceptors; | |||||
| 14 | import jav ax.jws.Web Method; | |||||
| 15 | import jav ax.jws.Web Result; | |||||
| 16 | import jav ax.jws.Web Service; | |||||
| 17 | import jav ax.jws.soa p.SOAPBind ing; | |||||
| 18 | import jav ax.xml.ws. WebService Context; | |||||
| 19 | import oas is.names.t c.xacml._2 _0.context .schema.os .RequestTy pe; | |||||
| 20 | import oas is.names.t c.xacml._2 _0.context .schema.os .ResponseT ype; | |||||
| 21 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |||||
| 22 | import org .springfra mework.bea ns.factory .annotatio n.Qualifie r; | |||||
| 23 | import org .springfra mework.con text.Appli cationCont ext; | |||||
| 24 | import org .springfra mework.ejb .intercept or.SpringB eanAutowir ingInterce ptor; | |||||
| 25 | ||||||
| 26 | /** | |||||
| 27 | * | |||||
| 28 | * @author Anand Sas try | |||||
| 29 | * @SOAPBi nding(para meterStyle = SOAPBin ding.Param eterStyle. BARE) | |||||
| 30 | * @WebSer vice(servi ceName = " PDPWebServ ice", port Name = "PD PWebServic ePort", | |||||
| 31 | * nam e = "PDPWe bServicePo rtType", w sdlLocatio n = | |||||
| 32 | * "ME TA-INF/xml -resources /web-servi ces/PDPWeb Service/ws dl/XACMLCo ntextHandl erService. wsdl" | |||||
| 33 | * ) | |||||
| 34 | */ | |||||
| 35 | @Stateless | |||||
| 36 | @SOAPBindi ng(paramet erStyle = SOAPBindin g.Paramete rStyle.BAR E) | |||||
| 37 | @WebServic e(wsdlLoca tion = "ME TA-INF/xml -resources /web-servi ces/PDP/ws dl/PDPImpl WS.wsdl") | |||||
| 38 | // @WebSer vice(servi ceName = " PDPWebServ ice",portN ame = "PDP WebService Port", | |||||
| 39 | // targetN amespace=" urn:oasis: names:tc:x acml:2.0:c ontext:sch ema:os", | |||||
| 40 | // wsdlLoc ation = | |||||
| 41 | // "META-I NF/xml-res ources/web -services/ PDPWebServ ice/wsdl/P DPWebServi ce.wsdl") | |||||
| 42 | @Intercept ors(Spring BeanAutowi ringInterc eptor.clas s) | |||||
| 43 | public cla ss PDPImpl WS { | |||||
| 44 | ||||||
| 45 | pr ivate stat ic final L ogger logg er = Logge r.getLogge r(PDPImplW S.class | |||||
| 46 | .getNa me()); | |||||
| 47 | ||||||
| 48 | @A utowired | |||||
| 49 | @Q ualifier(v alue = "PD PImplement ation") | |||||
| 50 | pr ivate PDPI mplJava si mplePDP;// = new PDP ImplJava() ; | |||||
| 51 | @A utowired | |||||
| 52 | pr ivate Appl icationCon text appli cationCont ext; | |||||
| 53 | @R esource | |||||
| 54 | pr ivate WebS erviceCont ext contex t; | |||||
| 55 | pr ivate Serv iceAuthent ication au th = new S erviceAuth entication (); | |||||
| 56 | /* * | |||||
| 57 | * @param re quest | |||||
| 58 | * @return | |||||
| 59 | * / | |||||
| 60 | @W ebMethod | |||||
| 61 | @W ebResult(t argetNames pace = "ur n:oasis:na mes:tc:xac ml:2.0:con text:schem a:os", nam e = "Respo nse") | |||||
| 62 | pu blic Respo nseType ch eckPolicy( final Requ estType re quest) { | |||||
| 63 | Se rviceAudit sa = new ServiceAud it(); | |||||
| 64 | In teger succ ess = 1; | |||||
| 65 | ||||||
| 66 | tr y{ | |||||
| 67 | sa = aut h.checkAut h(context, applicati onContext, "checkPol icy"); | |||||
| 68 | }c atch (Serv iceAuthent icationExc eption ex) { | |||||
| 69 | return n ull; | |||||
| 70 | } | |||||
| 71 | ||||||
| 72 | Resp onseType r esponse = null; | |||||
| 73 | lo ng startTi me = Syste m.currentT imeMillis( ); | |||||
| 74 | ||||||
| 75 | tr y { | |||||
| 76 | response = null; | |||||
| 77 | PDPImplW S.logger.e ntering(th is.getClas s().getNam e(), "chec kPolicy"); | |||||
| 78 | response = this.si mplePDP.ch eckPolicy( request); | |||||
| 79 | PDPImplW S.logger.e xiting(thi s.getClass ().getName (), "check Policy"); | |||||
| 80 | } catch (Exc eption e) { | |||||
| 81 | success = 0; | |||||
| 82 | } finally { | |||||
| 83 | if (sa ! = null) { | |||||
| 84 | sa.s etSuccess( success); | |||||
| 85 | sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime)); | |||||
| 86 | auth .persist(a pplication Context, s a); | |||||
| 87 | } | |||||
| 88 | } | |||||
| 89 | ||||||
| 90 | retu rn respons e; | |||||
| 91 | } | |||||
| 92 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.