Produced by Araxis Merge on 5/28/2019 3:28:34 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 | CV_src.zip\CVjMeadows-CCP\src\gov\va\med\jmeadows\dataservicehandler | VistaDataVLERServiceHandler.java | Tue Apr 30 19:08:03 2019 UTC |
2 | CV_src.zip\CVjMeadows-CCP\src\gov\va\med\jmeadows\dataservicehandler | VistaDataVLERServiceHandler.java | Sat May 25 18:46:02 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 222 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
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 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Hon orable Sen ator Danie l K. Inouy e | |
7 | * VA Pacific Is lands Heal th Care Sy stem | |
8 | * Tri pler Army Medical Ce nter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.j meadows.da taserviceh andler; | |
13 | ||
14 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
15 | import gov .va.med.jm eadows.dao .hdd.VLERS iteCache; | |
16 | import gov .va.med.vd s.webservi ce.Author; | |
17 | import gov .va.med.vd s.webservi ce.QueryBe an; | |
18 | import gov .va.med.vd s.webservi ce.VistaDa ta; | |
19 | import gov .va.med.vd s.webservi ce.VistaDa taService; | |
20 | import gov .va.med.vd s.webservi ce.VlerDoc ument; | |
21 | ||
22 | import jav a.util.Lis t; | |
23 | ||
24 | import jav ax.xml.nam espace.QNa me; | |
25 | import jav ax.xml.ws. BindingPro vider; | |
26 | import jav ax.xml.ws. handler.Ha ndler; | |
27 | ||
28 | ||
29 | /** | |
30 | * | |
31 | * @author vhahongot om | |
32 | */ | |
33 | public cla ss VistaDa taVLERServ iceHandler extends D ataService Handler { | |
34 | privat e VistaDat aService m _VistaData VLERServic e; | |
35 | ||
36 | public VistaData VLERServic eHandler(S tring url) { | |
37 | su per(); | |
38 | ||
39 | se rviceURL = url; | |
40 | se rviceName = "VistaDa taVLERServ ice"; | |
41 | serviceNam espace = " http:// DNS . URL /"; | |
42 | qS erviceName = new QNa me(service Namespace, serviceNa me); | |
43 | ||
44 | se rviceConne ctionTimeo utMS = APP _CONFIG.ge tVLERConne ctionTimeo utMS(); | |
45 | se rviceReque stTimeoutM S = APP_CO NFIG.getVL ERRequestT imeoutMS() ; | |
46 | ||
47 | m_ VistaDataV LERService = new Vis taDataServ ice(); | |
48 | } | |
49 | ||
50 | privat e VistaDat a getVista DataPort() { | |
51 | ||
52 | Vi staData po rt = m_Vis taDataVLER Service.ge tVistaData Port(); | |
53 | ||
54 | // set port e ndpoint ad dress | |
55 | Bi ndingProvi der prov = (BindingP rovider) p ort; | |
56 | pr ov.getRequ estContext ().put(Bin dingProvid er.ENDPOIN T_ADDRESS_ PROPERTY, serviceURL ); | |
57 | pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.connect. timeout", serviceCon nectionTim eoutMS); | |
58 | pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.request. timeout", serviceReq uestTimeou tMS); | |
59 | pr ov.getRequ estContext ().put("co m.sun.xml. ws.connect .timeout", serviceCo nnectionTi meoutMS); | |
60 | pr ov.getRequ estContext ().put("co m.sun.xml. ws.request .timeout", serviceRe questTimeo utMS); | |
61 | ||
62 | // SOAP mess age loggin g - Enable to show l ogging in output win dow | |
63 | if ("test".e qualsIgnor eCase(APP_ CONFIG.get AppEnviron ment()) || "developm ent".equal sIgnoreCas e(APP_CONF IG.getAppE nvironment ())) { | |
64 | prov.get Binding(). getHandler Chain().ad d(new SOAP LoggingHan dler()); | |
65 | List<Han dler> hand lerList = prov.getBi nding().ge tHandlerCh ain(); | |
66 | handlerL ist.add(ne w SOAPLogg ingHandler ()); | |
67 | prov.get Binding(). setHandler Chain(hand lerList); | |
68 | } | |
69 | ||
70 | re turn port; | |
71 | } | |
72 | ||
73 | public List<Vle rDocument> getVLERDo cumentList (QueryBean queryBean ) throws J MeadowsExc eption { | |
74 | ||
75 | tr y { | |
76 | VistaDat a port = g etVistaDat aPort(); | |
77 | List<Vle rDocument> vdList = port.getPa tientDocum entList(qu eryBean); | |
78 | for (Vle rDocument vd : vdLis t) { | |
79 | if ( vd.getHome CommunityI d() != nul l) { | |
80 | Author aut hor = new Author(); | |
81 | author.set Institutio n(getVLERS iteName(vd .getHomeCo mmunityId( ))); | |
82 | author.set Name(vd.ge tHomeCommu nityId()); | |
83 | vd.getAuth orList().a dd(0, auth or); | |
84 | } | |
85 | } | |
86 | return v dList; | |
87 | } catch (Exc eption e) { | |
88 | throw ne w JMeadows Exception( e); | |
89 | } | |
90 | } | |
91 | ||
92 | public String ge tVLERSiteN ame(String hcid) { | |
93 | St ring outpu t = ""; | |
94 | St ring hci = hcid.subs tring(8, h cid.length ()); | |
95 | if (VLERSite Cache.getC ode("", hc i, "") != null) { | |
96 | output = VLERSiteC ache.getCo de("", hci , "").getD isplay(); | |
97 | } | |
98 | re turn outpu t; | |
99 | } | |
100 | ||
101 | public VlerDocum ent getVLE RDocument( VlerDocume nt vDoc, Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
102 | Vl erDocument returnVal = null; | |
103 | tr y { | |
104 | VistaDat a port = g etVistaDat aPort(); | |
105 | returnVa l = port. getPatient Document(v Doc, query Bean); | |
106 | } catch (Exc eption e) { | |
107 | throw ne w JMeadows Exception( e); | |
108 | } | |
109 | re turn retur nVal; | |
110 | } | |
111 | ||
112 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.