Produced by Araxis Merge on 12/5/2017 12:06:47 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\MIXDataSource\main\src\java\gov\va\med\imaging\mix\proxy\v1 | MixProxyUtilities.java | Mon Dec 4 21:35:20 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\MIXDataSource\main\src\java\gov\va\med\imaging\mix\proxy\v1 | MixProxyUtilities.java | Mon Dec 4 22:04:08 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 202 |
| Changed | 2 | 4 |
| 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 | * | |
| 3 | Package: MAG - Vis tA Imaging | |
| 4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
| 5 | Date Cre ated: May 8, 2008 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 8 | Descript ion: | |
| 9 | ||
| 10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 11 | ;; Property of the US Government . | |
| 12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
| 13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
| 14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
| 15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
| 16 | ;; telephon e (301) 73 4-0100. | |
| 17 | ;; | |
| 18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
| 19 | ;; a Class I I medical device. A s such, it may not b e changed | |
| 20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
| 21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
| 22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
| 23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 24 | ||
| 25 | */ | |
| 26 | package go v.va.med.i maging.mix .proxy.v1; | |
| 27 | ||
| 28 | import jav a.util.Sor tedSet; | |
| 29 | ||
| 30 | import org .apache.lo gging.log4 j.LogManag er; | |
| 31 | import org .apache.lo gging.log4 j.Logger; | |
| 32 | ||
| 33 | import gov .va.med.im aging.exch ange.busin ess.Site; | |
| 34 | // import gov.va.med .imaging.p roxy.ids.I DSOperatio n; | |
| 35 | // import gov.va.med .imaging.p roxy.ids.I DSProxy; | |
| 36 | // import gov.va.med .imaging.p roxy.ids.I DSService; | |
| 37 | import gov .va.med.im aging.prox y.services .ProxyServ iceType; | |
| 38 | import gov .va.med.im aging.url. mix.config uration.MI XSiteConfi guration; | |
| 39 | ||
| 40 | /** | |
| 41 | * Common utilities for all Ex change dat a sources | |
| 42 | * | |
| 43 | * @author
|
|
| 44 | * | |
| 45 | */ | |
| 46 | public cla ss MixProx yUtilities | |
| 47 | { | |
| 48 | ||
| 49 | // pr ivate fina l static I DSProxy ve rsionProxy = new IDS Proxy(); | |
| 50 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(MixP roxyUtilit ies.class) ; | |
| 51 | ||
| 52 | ||
| 53 | pu blic stati c boolean isMixSiteS erviceAvai lable(Site site, Str ing servic eName, Str ing dataso urceVersio n) | |
| 54 | { | |
| 55 | // // g et the ser vice from the IDS on the remot e web app | |
| 56 | // Sort edSet<IDSS ervice> se rvices = v ersionProx y.getImagi ngServices (site, ser viceName, datasource Version); | |
| 57 | // // i f nothing is returne d, then th ere are no facades t o service this versi on | |
| 58 | // if(( services = = null) || (services .size() <= 0)) | |
| 59 | // return false; | |
| 60 | // IDSS ervice ser vice = ser vices.firs t(); | |
| 61 | // IDSO peration i mageOperat ion = serv ice.getOpe rationByTy pe(IDSOper ation.IDS_ OPERATION_ IMAGE); | |
| 62 | // IDSO peration m etadataOpe ration = s ervice.get OperationB yType(IDSO peration.I DS_OPERATI ON_METADAT A); | |
| 63 | // if(( imageOpera tion == nu ll) || (me tadataOper ation == n ull)) | |
| 64 | // { | |
| 65 | // logger .error("Mi ssing an I DS operati on (" + (i mageOperat ion == nul l ? "image " : "metad ata") + " null for s ite [" + s ite.getSit eNumber() + "]"); | |
| 66 | // return false; | |
| 67 | // } | |
| 68 | retu rn true; | |
| 69 | } | |
| 70 | ||
| 71 | pu blic stati c MixProxy Services g etMixProxy Services(M IXSiteConf iguration siteConfig uration, | |
| 72 | String siteNumbe r, String serviceNam e, String datasource Version, | |
| 73 | String host, int port, Str ing alienS iteNumber) | |
| 74 | { | |
| 75 | // T ODO no IDS in DAS: i mplant DAS MIX servi ces for go od here an d return t hem | |
| 76 | // * *** | |
| 77 | // g et the ser vice from the IDS on the remot e web app | |
| 78 | // Sort edSet<IDSS ervice> se rvices = v ersionProx y.getImagi ngServices (siteNumbe r, | |
| 79 | // host, po rt, servic eName, dat asourceVer sion); | |
| 80 | // // i f nothing is returne d, then th ere are no facades t o service this versi on | |
| 81 | // if(( services = = null) || (services .size() <= 0)) | |
| 82 | // { | |
| 83 | // logger .warn("Got null serv ices back from IDS s ervice for site [" + siteNumbe r + "], in dicates re mote site does not h ave a VIX. Cannot us e Federati on for thi s site"); | |
| 84 | // return null; | |
| 85 | // } | |
| 86 | // IDSS ervice ser vice = ser vices.firs t(); | |
| 87 | ||
| 88 | MixP roxyServic es proxySe rvices = n ew MixProx yServices( alienSiteN umber); | |
| 89 | prox yServices. add(new Mi xProxyServ ice(siteCo nfiguratio n, host, p ort, Proxy ServiceTyp e.metadata , true)); // pass 1 level 1 | |
| 90 | prox yServices. add(new Mi xProxyServ ice(siteCo nfiguratio n, host, p ort, Proxy ServiceTyp e.metadata , false)); // pass 1 level 2 | |
| 91 | prox yServices. add(new Mi xProxyServ ice(siteCo nfiguratio n, host, p ort, Proxy ServiceTyp e.image, t rue)); // pass 2 TN | |
| 92 | prox yServices. add(new Mi xProxyServ ice(siteCo nfiguratio n, host, p ort, Proxy ServiceTyp e.image, f alse)); // pass 2 RE F/DIAG | |
| 93 | ||
| 94 | // for( IDSOperati on operati on : servi ce.getOper ations()) | |
| 95 | // { | |
| 96 | // proxyS ervices.ad d(new MixP roxyServic e(siteConf iguration, service, operation, host, por t)); | |
| 97 | // } | |
| 98 | // | |
| 99 | retu rn proxySe rvices; | |
| 100 | } | |
| 101 | ||
| 102 | ||
| 103 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.