Produced by Araxis Merge on 12/5/2017 12:06:40 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\ExchangeWebApp\main\src\java\gov\va\med\imaging\exchange | ImagingExchangeContext.java | Mon Dec 4 21:34:32 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ExchangeWebApp\main\src\java\gov\va\med\imaging\exchange | ImagingExchangeContext.java | Mon Dec 4 22:00:18 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 240 |
| 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: Jan 30, 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.exc hange; | |
| 27 | ||
| 28 | import gov .va.med.im aging.core .FacadeRou terUtility ; | |
| 29 | import gov .va.med.im aging.core .interface s.IAppConf iguration; | |
| 30 | import gov .va.med.im aging.core .interface s.exceptio ns.Procedu reFilterTe rmsExcepti on; | |
| 31 | import gov .va.med.im aging.exch ange.confi guration.E xchangeInt erfaceProc edureFilte rTerms; | |
| 32 | import gov .va.med.im aging.tran sactioncon text.Trans actionCont ext; | |
| 33 | import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ; | |
| 34 | ||
| 35 | import jav ax.servlet .http.Http ServletRes ponse; | |
| 36 | ||
| 37 | import org .apache.lo gging.log4 j.LogManag er; | |
| 38 | import org .apache.lo gging.log4 j.Logger; | |
| 39 | import org .springfra mework.bea ns.BeansEx ception; | |
| 40 | import org .springfra mework.con text.Appli cationCont ext; | |
| 41 | import org .springfra mework.con text.Appli cationCont extAware; | |
| 42 | ||
| 43 | /** | |
| 44 | * @author
|
|
| 45 | * | |
| 46 | */ | |
| 47 | public cla ss Imaging ExchangeCo ntext | |
| 48 | implements Applicati onContextA ware | |
| 49 | { | |
| 50 | ||
| 51 | pr ivate stat ic Applica tionContex t appConte xt; | |
| 52 | pr ivate stat ic Logger logger = L ogManager. getLogger( ImagingExc hangeConte xt.class); | |
| 53 | ||
| 54 | pr ivate IApp Configurat ion appCon figuration = null; | |
| 55 | pr ivate Exch angeInterf aceProcedu reFilterTe rms exchan geFilterTe rms = null ; | |
| 56 | ||
| 57 | pr ivate stat ic Imaging ExchangeCo ntext imag ingContext ; | |
| 58 | ||
| 59 | pr ivate stat ic Exchang eRouter ro uter = nul l; | |
| 60 | pu blic stati c Exchange Router get ExchangeRo uter() | |
| 61 | { | |
| 62 | Tran sactionCon text trans actionCont ext = Tran sactionCon textFactor y.get(); | |
| 63 | try | |
| 64 | { | |
| 65 | router = FacadeR outerUtili ty.getFaca deRouter(E xchangeRou ter.class) ; | |
| 66 | } | |
| 67 | catc h (Excepti on x) | |
| 68 | { | |
| 69 | String msg = "Er ror gettin g Federati onRouter i nstance. Applicatio n deployme nt is prob ably incor rect."; | |
| 70 | Transa ctionConte xtFactory. get().setE rrorMessag e(msg + "\ n" + x.get Message()) ; | |
| 71 | logger .error(msg , x); | |
| 72 | transa ctionConte xt.setExce ptionClass Name(x.get Class().ge tSimpleNam e()); | |
| 73 | transa ctionConte xt.setResp onseCode(H ttpServlet Response.S C_CONFLICT + ""); | |
| 74 | } | |
| 75 | retu rn router; | |
| 76 | } | |
| 77 | ||
| 78 | @O verride | |
| 79 | pu blic void setApplica tionContex t(Applicat ionContext context) | |
| 80 | throws BeansExce ption { | |
| 81 | appC ontext = c ontext; | |
| 82 | } | |
| 83 | ||
| 84 | pr ivate stat ic synchro nized void initializ eImagingCo ntext() | |
| 85 | { | |
| 86 | if(i magingCont ext == nul l) | |
| 87 | { | |
| 88 | imagin gContext = new Imagi ngExchange Context(); | |
| 89 | } | |
| 90 | } | |
| 91 | ||
| 92 | pu blic stati c synchron ized IAppC onfigurati on getAppC onfigurati on() | |
| 93 | { | |
| 94 | init ializeImag ingContext (); | |
| 95 | if(i magingCont ext.appCon figuration == null) | |
| 96 | { | |
| 97 | Object appConfig Obj = appC ontext.get Bean("appC onfigurati on"); | |
| 98 | imagin gContext.a ppConfigur ation = (I AppConfigu ration)app ConfigObj; | |
| 99 | } | |
| 100 | retu rn imaging Context.ap pConfigura tion; | |
| 101 | } | |
| 102 | ||
| 103 | pu blic stati c synchron ized Excha ngeInterfa ceProcedur eFilterTer ms getExch angeInterf aceProcedu reFilterTe rms() | |
| 104 | { | |
| 105 | init ializeImag ingContext (); | |
| 106 | if(i magingCont ext.exchan geFilterTe rms == nul l) | |
| 107 | { | |
| 108 | IAppCo nfiguratio n app = ge tAppConfig uration(); | |
| 109 | imagin gContext.e xchangeFil terTerms = new Excha ngeInterfa ceProcedur eFilterTer ms(app); | |
| 110 | try { | |
| 111 | imagingC ontext.exc hangeFilte rTerms.ini t(); | |
| 112 | } | |
| 113 | catch( ProcedureF ilterTerms Exception pftX) | |
| 114 | { | |
| 115 | logger.e rror(pftX) ; | |
| 116 | imagingC ontext.exc hangeFilte rTerms = n ull; | |
| 117 | } | |
| 118 | } | |
| 119 | retu rn imaging Context.ex changeFilt erTerms; | |
| 120 | } | |
| 121 | ||
| 122 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.