10. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/31/2017 11:16:52 AM Central 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.

10.1 Files compared

# Location File Last Modified
1 JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\JLV\src\java\gov\va\med\jlvqos JLVQoSDataServiceHandlerImpl.java Thu Aug 31 12:14:56 2017 UTC
2 JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\JLV\src\java\gov\va\med\jlvqos JLVQoSDataServiceHandlerImpl.java Thu Aug 31 13:21:00 2017 UTC

10.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 524
Changed 1 2
Inserted 0 0
Removed 0 0

10.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

10.4 Active regular expressions

No regular expressions were active.

10.5 Comparison detail

  1  
  2   package go v.va.med.j lvqos;
  3  
  4   import gov .va.med.co mmon.AppCo nfig;
  5   import gov .va.med.jl vqos.webse rvice.JLVQ oSData;
  6   import gov .va.med.jl vqos.webse rvice.JLVQ oSDataServ ice;
  7   import gov .va.med.jm eadows.Hea derHandler Resolver;
  8   import gov .va.med.jm eadows.web service.JM eadowsQuer y;
  9   import gov .va.med.jm eadows.web service.Pa tient;
  10   import gov .va.med.jm eadows.web service.Si te;
  11   import gov .va.med.jm eadows.web service.Us er;
  12   import gov .va.med.vh ahon.commo n.Utils;
  13   import org .apache.lo g4j.Logger ;
  14   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  15   import org .springfra mework.ste reotype.Co mponent;
  16  
  17   import jav ax.xml.nam espace.QNa me;
  18   import jav ax.xml.soa p.SOAPExce ption;
  19   import jav ax.xml.ws. BindingPro vider;
  20   import jav ax.xml.ws. soap.MTOMF eature;
  21   import jav a.util.Arr ayList;
  22   import jav a.util.Lis t;
  23  
  24   @Component
  25   public cla ss JLVQoSD ataService HandlerImp l implemen ts JLVQoSD ataService Handler {
  26  
  27       privat e static f inal Logge r logger =  Logger.ge tLogger(JL VQoSDataSe rviceHandl erImpl.cla ss.getName ());
  28       @Autow ired
  29       protec ted AppCon fig appCon fig;
  30       privat e String s erviceURL;
  31       privat e String m _ServiceNa me = "JLVQ oSDataServ ice";
  32         private St ring m_nam espace = " http://web service.jl vqos. URL         /";
  33       privat e QName m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e);
  34  
  35       privat e String a ppName;
  36  
  37       privat e String u sername;
  38       privat e String p assword;
  39  
  40       privat e int conn ectionTime outMS = 30 000;
  41       privat e int requ estTimeout MS = 30000 ;
  42  
  43       privat e JLVQoSDa taService  m_jlvqosDa taService;
  44  
  45       public  JLVQoSDat aServiceHa ndlerImpl( String url ) {
  46           se rviceURL =  url;
  47       }
  48  
  49       public  JLVQoSDat aServiceHa ndlerImpl( ) {
  50  
  51       }
  52  
  53       public  int getCo nnectionTi meoutMS()  {
  54           re turn conne ctionTimeo utMS;
  55       }
  56  
  57       public  void setC onnectionT imeoutMS(i nt connect ionTimeout MS) {
  58           th is.connect ionTimeout MS = conne ctionTimeo utMS;
  59       }
  60  
  61       public  int getRe questTimeo utMS() {
  62           re turn reque stTimeoutM S;
  63       }
  64  
  65       public  void setR equestTime outMS(int  requestTim eoutMS) {
  66           th is.request TimeoutMS  = requestT imeoutMS;
  67       }
  68  
  69       public  String ge tServiceUR L() {
  70           re turn servi ceURL;
  71       }
  72  
  73       public  void setS erviceURL( String ser viceURL) {
  74           th is.service URL = serv iceURL;
  75       }
  76  
  77       privat e JLVQoSDa ta getJLVQ oSDataPort () {
  78           re turn getJL VQoSDataPo rt(false);
  79       }
  80  
  81       public  String ge tUsername( ) {
  82           re turn usern ame;
  83       }
  84  
  85       public  void setU sername(St ring usern ame) {
  86           th is.usernam e = userna me;
  87       }
  88  
  89       public  String ge tPassword( ) {
  90           re turn passw ord;
  91       }
  92  
  93       public  void setP assword(St ring passw ord) {
  94           th is.passwor d = passwo rd;
  95       }
  96  
  97       privat e JLVQoSDa ta getJLVQ oSDataPort (boolean i ncludeMTOM Feature) {
  98           if  (m_jlvqos DataServic e == null)  {
  99                createSe rvice();
  100                if (appC onfig.getE nableWSSec urityHeade r()) {
  101                    m_jl vqosDataSe rvice.setH andlerReso lver(new H eaderHandl erResolver ());
  102                }
  103           }
  104  
  105           JL VQoSData p ort = null ;
  106           if  (includeM TOMFeature ) {
  107                port = m _jlvqosDat aService.g etJLVQoSDa taPort(new  MTOMFeatu re());
  108           }  else port  = m_jlvqos DataServic e.getJLVQo SDataPort( );
  109  
  110           // set connec tion timeo ut
  111           Bi ndingProvi der bp = ( BindingPro vider) por t;
  112           bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL);
  113           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS);
  114           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS);
  115           bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS);
  116           bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS);
  117  
  118           re turn port;
  119       }
  120  
  121       privat e synchron ized void  createServ ice() {
  122           if  (m_jlvqos DataServic e == null)  {
  123                try {
  124                    m_jl vqosDataSe rvice = ne w JLVQoSDa taService( );
  125                } catch  (Exception  e) {
  126                    thro w new Runt imeExcepti on(e);
  127                }
  128  
  129           }
  130       }
  131  
  132   //    priv ate void l og(String  methodName ) {
  133   //         log(method Name, null );
  134   //    }
  135  
  136   //    priv ate void l og(String  methodName , JMeadows Query quer yBean) {
  137   //         if (logger .isDebugEn abled()) {
  138   //             logger .debug("In voking met hod: " + m ethodName) ;
  139   //             if (qu eryBean !=  null) {
  140   //                 lo gQueryBean Params(met hodName, q ueryBean);
  141   //             }
  142   //         }
  143   //    }
  144  
  145       privat e void log QueryBeanP arams(Stri ng methodN ame, JMead owsQuery q ueryBean)  {
  146           if  (!logger. isDebugEna bled()) re turn;
  147  
  148           St ring userI d;
  149           Si te hostSit e;
  150           St ring patVA Icn;
  151           St ring patDo DEdipi;
  152           Li st<Site> v istaSites  = new Arra yList<Site >();
  153           St ring itemI d;
  154           St ring recor dSiteCode;
  155           St ring statu s;
  156           In teger acti ve;
  157           St ring start Date;
  158           St ring endDa te;
  159  
  160           St ringBuilde r sb = new  StringBui lder();
  161           sb .append(me thodName);
  162           sb .append("  query bean  params: " );
  163  
  164           if  (queryBea n != null)  {
  165                User use r = queryB ean.getUse r();
  166                Patient  patient =  queryBean. getPatient ();
  167  
  168                if (user  != null)  {
  169                    user Id = user. getUserId( );
  170                    host Site = use r.getHostS ite();
  171  
  172                    sb.a ppend("Use r - userId : ");
  173                    sb.a ppend(user Id);
  174                    sb.a ppend(" ,  hostSite:  ");
  175                    if ( hostSite ! = null) sb .append(ho stSite.get SiteCode() );
  176                } else {
  177                    sb.a ppend("Use r - null") ;
  178                }
  179  
  180                if (pati ent != nul l) {
  181  
  182                    patV AIcn = pat ient.getIC N();
  183                    patD oDEdipi =  patient.ge tEDIPI();
  184  
  185                    sb.a ppend("; P atient - " );
  186                    sb.a ppend(", I CN: ");
  187                    sb.a ppend(patV AIcn);
  188                    sb.a ppend(", E DIPI: ");
  189                    sb.a ppend(patD oDEdipi);
  190  
  191                    sb.a ppend(", v istaSites:  ");
  192  
  193                    if ( vistaSites .size() <  1) sb.appe nd("none") ;
  194  
  195                    for  (Site site  : vistaSi tes) {
  196                         String sit eCode = si te.getSite Code();
  197                         sb.append( siteCode);
  198                         sb.append( ", ");
  199                    }
  200                } else {
  201                    sb.a ppend("; P atient - n ull");
  202                }
  203  
  204                itemId =  queryBean .getItemId ();
  205                active =  queryBean .getActive ();
  206                recordSi teCode = q ueryBean.g etRecordSi teCode();
  207                startDat e = Utils. formatDisp layDate(qu eryBean.ge tStartDate ());
  208                endDate  = Utils.fo rmatDispla yDate(quer yBean.getE ndDate());
  209                status =  queryBean .getStatus ();
  210  
  211                sb.appen d("; start Date: ");
  212                sb.appen d(startDat e);
  213                sb.appen d(", endDa te: ");
  214                sb.appen d(endDate) ;
  215                sb.appen d(", itemI d: ");
  216                sb.appen d(itemId);
  217                sb.appen d(", recor dSiteCode:  ");
  218                sb.appen d(recordSi teCode);
  219                sb.appen d(", statu s: ");
  220                sb.appen d(status);
  221                sb.appen d(", activ e: ");
  222                sb.appen d(active);
  223  
  224           }
  225  
  226           lo gger.debug (sb.toStri ng());
  227       }
  228  
  229       public  String ge tAppName()  {
  230           re turn this. appName;
  231       }
  232  
  233       public  void setA ppName(Str ing appNam e) {
  234           th is.appName  = appName ;
  235       }
  236  
  237       @Overr ide
  238       public  String ve rify() thr ows SOAPEx ception {
  239           St ring retVa l = null;
  240           tr y {
  241                JLVQoSDa ta port =  getJLVQoSD ataPort();
  242                retVal =  port.veri fy();
  243           }  catch (Exc eption e)  {
  244                logger.e rror(e.get Message(),  e);
  245                throw ne w SOAPExce ption(e);
  246           }
  247           re turn retVa l;
  248       }
  249  
  250       @Overr ide
  251       public  String ge tServiceEr rors() thr ows SOAPEx ception {
  252           St ring retVa l = null;
  253           tr y {
  254                JLVQoSDa ta port =  getJLVQoSD ataPort();
  255                retVal =  port.getS erviceErro rs();
  256           }  catch (Exc eption e)  {
  257                logger.e rror(e.get Message(),  e);
  258                throw ne w SOAPExce ption(e);
  259           }
  260           re turn retVa l;
  261       }
  262  
  263   }