21322. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/2/2019 9:48:36 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.

21322.1 Files compared

# Location File Last Modified
1 JLV_JLV 2_7_2_0_0.zip\JLV_Src\JLV\src\java\gov\va\med\jlvqos JLVQoSDataServiceHandlerImpl.java Wed Mar 20 21:44:28 2019 UTC
2 JLV_JLV 2_7_2_0_0.zip\JLV_Src\JLV\src\java\gov\va\med\jlvqos JLVQoSDataServiceHandlerImpl.java Tue Apr 2 00:52:48 2019 UTC

21322.2 Comparison summary

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

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

21322.4 Active regular expressions

No regular expressions were active.

21322.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.jl vqos.webse rvice.Noti fication;
  8   import gov .va.med.jm eadows.Hea derHandler Resolver;
  9   import org .apache.lo g4j.Logger ;
  10   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  11   import org .springfra mework.ste reotype.Co mponent;
  12  
  13   import jav ax.xml.nam espace.QNa me;
  14   import jav ax.xml.soa p.SOAPExce ption;
  15   import jav ax.xml.ws. BindingPro vider;
  16   import jav ax.xml.ws. soap.MTOMF eature;
  17   import jav a.util.Lis t;
  18  
  19   @Component
  20   public cla ss JLVQoSD ataService HandlerImp l implemen ts JLVQoSD ataService Handler {
  21  
  22       privat e static f inal Logge r logger =  Logger.ge tLogger(JL VQoSDataSe rviceHandl erImpl.cla ss.getName ());
  23       @Autow ired
  24       protec ted AppCon fig appCon fig;
  25       privat e String s erviceURL;
  26       privat e String m _ServiceNa me = "JLVQ oSDataServ ice";
  27         private St ring m_nam espace = " http:// DNS . URL         /";
  28       privat e QName m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e);
  29  
  30       privat e String a ppName;
  31  
  32       privat e String u sername;
  33       privat e String p assword;
  34  
  35       privat e int conn ectionTime outMS = 30 000;
  36       privat e int requ estTimeout MS = 30000 ;
  37  
  38       privat e JLVQoSDa taService  m_jlvqosDa taService;
  39  
  40       public  JLVQoSDat aServiceHa ndlerImpl( String url ) {
  41           se rviceURL =  url;
  42       }
  43  
  44       public  JLVQoSDat aServiceHa ndlerImpl( ) {
  45  
  46       }
  47  
  48       public  int getCo nnectionTi meoutMS()  {
  49           re turn conne ctionTimeo utMS;
  50       }
  51  
  52       public  void setC onnectionT imeoutMS(i nt connect ionTimeout MS) {
  53           th is.connect ionTimeout MS = conne ctionTimeo utMS;
  54       }
  55  
  56       public  int getRe questTimeo utMS() {
  57           re turn reque stTimeoutM S;
  58       }
  59  
  60       public  void setR equestTime outMS(int  requestTim eoutMS) {
  61           th is.request TimeoutMS  = requestT imeoutMS;
  62       }
  63  
  64       public  String ge tServiceUR L() {
  65           re turn servi ceURL;
  66       }
  67  
  68       public  void setS erviceURL( String ser viceURL) {
  69           th is.service URL = serv iceURL;
  70       }
  71  
  72       privat e JLVQoSDa ta getJLVQ oSDataPort () {
  73           re turn getJL VQoSDataPo rt(false);
  74       }
  75  
  76       public  String ge tUsername( ) {
  77           re turn usern ame;
  78       }
  79  
  80       public  void setU sername(St ring usern ame) {
  81           th is.usernam e = userna me;
  82       }
  83  
  84       public  String ge tPassword( ) {
  85           re turn passw ord;
  86       }
  87  
  88       public  void setP assword(St ring passw ord) {
  89           th is.passwor d = passwo rd;
  90       }
  91  
  92       privat e JLVQoSDa ta getJLVQ oSDataPort (boolean i ncludeMTOM Feature) {
  93           if  (m_jlvqos DataServic e == null)  {
  94                createSe rvice();
  95                if (appC onfig.getE nableWSSec urityHeade r()) {
  96                    m_jl vqosDataSe rvice.setH andlerReso lver(new H eaderHandl erResolver ());
  97                }
  98           }
  99  
  100           JL VQoSData p ort = null ;
  101           if  (includeM TOMFeature ) {
  102                port = m _jlvqosDat aService.g etJLVQoSDa taPort(new  MTOMFeatu re());
  103           }  else port  = m_jlvqos DataServic e.getJLVQo SDataPort( );
  104  
  105           // set connec tion timeo ut
  106           Bi ndingProvi der bp = ( BindingPro vider) por t;
  107           bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL);
  108           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS);
  109           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS);
  110           bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS);
  111           bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS);
  112  
  113           re turn port;
  114       }
  115  
  116       privat e synchron ized void  createServ ice() {
  117           if  (m_jlvqos DataServic e == null)  {
  118                try {
  119                    m_jl vqosDataSe rvice = ne w JLVQoSDa taService( );
  120                } catch  (Exception  e) {
  121                    thro w new Runt imeExcepti on(e);
  122                }
  123  
  124           }
  125       }
  126  
  127   //    priv ate void l og(String  methodName ) {
  128   //         log(method Name, null );
  129   //    }
  130  
  131   //    priv ate void l og(String  methodName , JMeadows Query quer yBean) {
  132   //         if (logger .isDebugEn abled()) {
  133   //             logger .debug("In voking met hod: " + m ethodName) ;
  134   //             if (qu eryBean !=  null) {
  135   //                 lo gQueryBean Params(met hodName, q ueryBean);
  136   //             }
  137   //         }
  138   //    }
  139  
  140   //    priv ate void l ogQueryBea nParams(St ring metho dName, JMe adowsQuery  queryBean ) {
  141   //         if (!logge r.isDebugE nabled())  return;
  142   //
  143   //         String use rId;
  144   //         Site hostS ite;
  145   //         String pat VAIcn;
  146   //         String pat DoDEdipi;
  147   //         List<Site>  vistaSite s = new Ar rayList<Si te>();
  148   //         String ite mId;
  149   //         String rec ordSiteCod e;
  150   //         String sta tus;
  151   //         Integer ac tive;
  152   //         String sta rtDate;
  153   //         String end Date;
  154   //
  155   //         StringBuil der sb = n ew StringB uilder();
  156   //         sb.append( methodName );
  157   //         sb.append( " query be an params:  ");
  158   //
  159   //         if (queryB ean != nul l) {
  160   //             User u ser = quer yBean.getU ser();
  161   //             Patien t patient  = queryBea n.getPatie nt();
  162   //
  163   //             if (us er != null ) {
  164   //                 us erId = use r.getUserI d();
  165   //                 ho stSite = u ser.getHos tSite();
  166   //
  167   //                 sb .append("U ser - user Id: ");
  168   //                 sb .append(us erId);
  169   //                 sb .append("  , hostSite : ");
  170   //                 if  (hostSite  != null)  sb.append( hostSite.g etSiteCode ());
  171   //             } else  {
  172   //                 sb .append("U ser - null ");
  173   //             }
  174   //
  175   //             if (pa tient != n ull) {
  176   //
  177   //                 pa tVAIcn = p atient.get ICN();
  178   //                 pa tDoDEdipi  = patient. getEDIPI() ;
  179   //
  180   //                 sb .append(";  Patient -  ");
  181   //                 sb .append(",  ICN: ");
  182   //                 sb .append(pa tVAIcn);
  183   //                 sb .append(",  EDIPI: ") ;
  184   //                 sb .append(pa tDoDEdipi) ;
  185   //
  186   //                 sb .append(",  vistaSite s: ");
  187   //
  188   //                 if  (vistaSit es.size()  < 1) sb.ap pend("none ");
  189   //
  190   //                 fo r (Site si te : vista Sites) {
  191   //                      String s iteCode =  site.getSi teCode();
  192   //                      sb.appen d(siteCode );
  193   //                      sb.appen d(", ");
  194   //                 }
  195   //             } else  {
  196   //                 sb .append(";  Patient -  null");
  197   //             }
  198   //
  199   //             itemId  = queryBe an.getItem Id();
  200   //             active  = queryBe an.getActi ve();
  201   //             record SiteCode =  queryBean .getRecord SiteCode() ;
  202   //             startD ate = Util s.formatDi splayDate( queryBean. getStartDa te());
  203   //             endDat e = Utils. formatDisp layDate(qu eryBean.ge tEndDate() );
  204   //             status  = queryBe an.getStat us();
  205   //
  206   //             sb.app end("; sta rtDate: ") ;
  207   //             sb.app end(startD ate);
  208   //             sb.app end(", end Date: ");
  209   //             sb.app end(endDat e);
  210   //             sb.app end(", ite mId: ");
  211   //             sb.app end(itemId );
  212   //             sb.app end(", rec ordSiteCod e: ");
  213   //             sb.app end(record SiteCode);
  214   //             sb.app end(", sta tus: ");
  215   //             sb.app end(status );
  216   //             sb.app end(", act ive: ");
  217   //             sb.app end(active );
  218   //
  219   //         }
  220   //
  221   //         logger.deb ug(sb.toSt ring());
  222   //    }
  223  
  224       public  String ge tAppName()  {
  225           re turn this. appName;
  226       }
  227  
  228       public  void setA ppName(Str ing appNam e) {
  229           th is.appName  = appName ;
  230       }
  231  
  232       @Overr ide
  233       public  String ve rify() thr ows SOAPEx ception {
  234           St ring retVa l = null;
  235           tr y {
  236                JLVQoSDa ta port =  getJLVQoSD ataPort();
  237                retVal =  port.veri fy();
  238           }  catch (Exc eption e)  {
  239                logger.e rror(e.get Message(),  e);
  240                throw ne w SOAPExce ption(e);
  241           }
  242           re turn retVa l;
  243       }
  244  
  245       @Overr ide
  246       public  String ge tServiceEr rors() thr ows SOAPEx ception {
  247           St ring retVa l = null;
  248           tr y {
  249                JLVQoSDa ta port =  getJLVQoSD ataPort();
  250                retVal =  port.getS erviceErro rs();
  251           }  catch (Exc eption e)  {
  252                logger.e rror(e.get Message(),  e);
  253                throw ne w SOAPExce ption(e);
  254           }
  255           re turn retVa l;
  256       }
  257  
  258       @Overr ide
  259       public  List<Noti fication>  getSystemN otificatio ns(List<St ring> user Groups) th rows SOAPE xception {
  260           tr y {
  261                return g etJLVQoSDa taPort().g etSystemNo tification s(userGrou ps);
  262           }  catch (Exc eption e)  {
  263                logger.e rror(e.get Message(),  e);
  264                throw ne w SOAPExce ption(e);
  265           }
  266       }
  267  
  268   }