50. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/1/2018 12:13:15 PM Central 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.

50.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\AdapterEJB\src\main\java\gov\va\med\nhin\adapter\policyengine\pdpproxy PDPProxyVAP.java Thu Feb 22 14:26:30 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\AdapterEJB\src\main\java\gov\va\med\nhin\adapter\policyengine\pdpproxy PDPProxyVAP.java Tue Feb 27 14:24:40 2018 UTC

50.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 102
Changed 2 4
Inserted 0 0
Removed 0 0

50.3 Comparison options

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

50.4 Active regular expressions

No regular expressions were active.

50.5 Comparison detail

  1   package go v.va.med.n hin.adapte r.policyen gine.pdppr oxy;
  2  
  3   import gov .va.med.nh in.adapter .utils.soa p.handler. SOAPHandle rResolver;
  4   import jav a.net.URL;
  5  
  6   import jav ax.ejb.EJB ;
  7   import jav ax.ejb.*;
  8   import jav ax.xml.nam espace.QNa me;
  9  
  10   import gov .va.med.nh in.adapter .propertyl ookup.Prop ertyLookup ;
  11   import gov .va.med.nh in.adapter .propertyl ookup.Prop ertyLookup Local;
  12   import gov .va.med.nh in.vap.ser ver.servic e.permissi on.context handler.XA CMLContext HandlerPor tType;
  13   import gov .va.med.nh in.vap.ser ver.servic e.permissi on.context handler.XA CMLContext HandlerSer vice;
  14   import oas is.names.t c.xacml._2 _0.context .schema.os .RequestTy pe;
  15   import oas is.names.t c.xacml._2 _0.context .schema.os .ResponseT ype;
  16  
  17   /**
  18    *
  19    * @author   DN S      VAZQUD
  20    */
  21   @Transacti onAttribut e(value =  Transactio nAttribute Type.SUPPO RTS)
  22   @Stateless (name = "P DPProxyVAP ")
  23   public cla ss PDPProx yVAP imple ments PDPP roxyLocal
  24   {
  25       privat e XACMLCon textHandle rService x acmlContex tHandlerSe rvice;
  26       privat e Property Lookup pro pertyLooku p;
  27  
  28       @EJB(b eanInterfa ce = Prope rtyLookupL ocal.class , beanName  = "Proper tyFileLook up")
  29       public  void setP ropertyLoo kup(Proper tyLookup p ropertyLoo kup)
  30       {
  31           th is.propert yLookup =  propertyLo okup;
  32       }
  33  
  34       public  ResponseT ype checkP olicy(Requ estType re quest)
  35       {
  36           re turn getXA CMLContext HandlerPor t().checkP olicy(requ est);
  37       }
  38  
  39       privat e XACMLCon textHandle rPortType  getXACMLCo ntextHandl erPort()
  40       {
  41           if  (xacmlCon textHandle rService = = null) {
  42                try {
  43                      xacmlConte xtHandlerS ervice = n ew XACMLCo ntextHandl erService( new URL(pr opertyLook up.getProp erty("XACM LContextHa ndlerServi ceWSDL")),  new QName ("http://c ontexthand ler.permis sion.servi ce.server. vap.nhin. URL         /", "XACML ContextHan dlerServic e"));
  44                    xacm lContextHa ndlerServi ce.setHand lerResolve r(new SOAP HandlerRes olver(true ));
  45                }
  46                catch (T hrowable t ) {
  47                    thro w new Runt imeExcepti on("Unable  to get XA CMLContext HandlerPor t.", t);
  48                }
  49           }
  50  
  51           re turn xacml ContextHan dlerServic e.getXACML ContextHan dlerPort() ;
  52       }
  53   }