Produced by Araxis Merge on 12/5/2017 12:06:50 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\VistaImagingDataSourceProviderCodeGenerator\main\src\resources | VistaImagingDataSourceServiceClass.tfl | Mon Dec 4 21:34:04 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VistaImagingDataSourceProviderCodeGenerator\main\src\resources | VistaImagingDataSourceServiceClass.tfl | Mon Dec 4 22:07:03 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 234 |
| 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 | * Package : MAG - Vi stA Imagin g | |
| 3 | * WARNING : Per VHA Directive 2004-038, this routi ne should not be mod ified. | |
| 4 | * Date Cr eated: ${d ate} | |
| 5 | * Site Na me: Washi ngton OI F ield Offic e, Silver Spring, MD | |
| 6 | * @author
|
|
| 7 | * | |
| 8 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 9 | * Propert y of the U S Governme nt. | |
| 10 | * No perm ission to copy or re distribute this soft ware is gi ven. | |
| 11 | * Use of unreleased versions of this so ftware req uires the user | |
| 12 | * to exec ute a writ ten test a greement w ith the Vi stA Imagin g | |
| 13 | * Develop ment Offic e of the D epartment of Veteran s Affairs, | |
| 14 | * telepho ne (301) 7 34-0100. | |
| 15 | * | |
| 16 | * The Foo d and Drug Administr ation clas sifies thi s software as | |
| 17 | * a Class II medica l device. As such, it may not be change d | |
| 18 | * in any way. Modi fications to this so ftware may result in an | |
| 19 | * adulter ated medic al device under 21CF R820, the use of whi ch | |
| 20 | * is cons idered to be a viola tion of US Federal S tatutes. | |
| 21 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 22 | */ | |
| 23 | package ${ package}; | |
| 24 | ||
| 25 | <#list im ports as i mport> | |
| 26 | import ${i mport}.*; | |
| 27 | </#list> | |
| 28 | ||
| 29 | import org .apache.lo gging.log4 j.LogManag er; | |
| 30 | import org .apache.lo gging.log4 j.Logger; | |
| 31 | ||
| 32 | import jav a.io.IOExc eption; | |
| 33 | ||
| 34 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
| 35 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
| 36 | import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ; | |
| 37 | import gov .va.med.im aging.tran sactioncon text.Trans actionCont ext; | |
| 38 | import gov .va.med.im aging.vist adatasourc e.session. *; | |
| 39 | import gov .va.med.im aging.url. vista.*; | |
| 40 | import gov .va.med.im aging.url. vista.exce ptions.*; | |
| 41 | import gov .va.med.im aging.vist adatasourc e.common.* ; | |
| 42 | import gov .va.med.im aging.data source.exc eptions.*; | |
| 43 | import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce; | |
| 44 | import gov .va.med.im aging.exch ange.busin ess.Resolv edSite; | |
| 45 | import gov .va.med.im aging.vist aimagingda tasource.c ommon.Vist aImagingCo mmonUtilit ies; | |
| 46 | import gov .va.med.im aging.core .interface s.exceptio ns.Securit yCredentia lsExpiredE xception; | |
| 47 | import gov .va.med.im aging.core .interface s.exceptio ns.Securit yException ; | |
| 48 | ||
| 49 | ||
| 50 | ||
| 51 | @SuppressW arnings("u nused") | |
| 52 | public cla ss ${imple mentationN ame} | |
| 53 | extends ${ interfaceN ame} | |
| 54 | { | |
| 55 | ||
| 56 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(${im plementati onName}.cl ass); | |
| 57 | ||
| 58 | pu blic ${imp lementatio nName}(Res olvedArtif actSource resolvedAr tifactSour ce, | |
| 59 | String protocol) | |
| 60 | { | |
| 61 | supe r(resolved ArtifactSo urce, prot ocol); | |
| 62 | if(! (resolved ArtifactSo urce insta nceof Reso lvedSite) ) | |
| 63 | throw new Unsupp ortedOpera tionExcept ion("The a rtifact so urce must be an inst ance of Re solvedSite and it is a '" + re solvedArti factSource .getClass( ).getSimpl eName() + "'."); | |
| 64 | } | |
| 65 | ||
| 66 | pu blic stati c ${implem entationNa me} create (ResolvedA rtifactSou rce resolv edArtifact Source, St ring proto col) | |
| 67 | th rows Conne ctionExcep tion, Unsu pportedPro tocolExcep tion | |
| 68 | { | |
| 69 | retu rn new ${i mplementat ionName}(r esolvedArt ifactSourc e, protoco l); | |
| 70 | } | |
| 71 | ||
| 72 | @O verride | |
| 73 | pu blic boole an isVersi onCompatib le() | |
| 74 | th rows Secur ityExcepti on | |
| 75 | { | |
| 76 | Stri ng version = VistaIm agingCommo nUtilities .getVistaD ataSourceI magingVers ion( | |
| 77 | getVista ImagingCon figuration (), this.g etClass(), | |
| 78 | getVista ImagingReq uiredVersi on()); | |
| 79 | ||
| 80 | logg er.info("i sVersionCo mpatible s earching f or version [" + vers ion + "], Transactio nContext ( " + Transa ctionConte xtFactory. get().getD isplayIden tity() + " )."); | |
| 81 | Vist aSession l ocalVistaS ession = n ull; | |
| 82 | try | |
| 83 | { | |
| 84 | localV istaSessio n = getVis taSession( ); | |
| 85 | return VistaImag ingCommonU tilities.i sVersionCo mpatible(v ersion, lo calVistaSe ssion); | |
| 86 | } | |
| 87 | catc h(Security Credential sExpiredEx ception sc eX) | |
| 88 | { | |
| 89 | // cau ght here t o be sure it gets th rown as Se curityCred entialsExp iredExcept ion, not C onnectionE xception | |
| 90 | throw sceX; | |
| 91 | } | |
| 92 | catc h(MethodEx ception mX ) | |
| 93 | { | |
| 94 | logger .error("Th ere was an error fin ding the i nstalled I maging ver sion from VistA", mX ); | |
| 95 | Transa ctionConte xtFactory. get().addD ebugInform ation("isV ersionComp atible() f ailed, " + (mX == nu ll ? "<nul l error>" : mX.getMe ssage())); | |
| 96 | } | |
| 97 | catc h(Connecti onExceptio n cX) | |
| 98 | { | |
| 99 | logger .error("Th ere was an error fin ding the i nstalled I maging ver sion from VistA", cX ); | |
| 100 | Transa ctionConte xtFactory. get().addD ebugInform ation("isV ersionComp atible() f ailed, " + (cX == nu ll ? "<nul l error>" : cX.getMe ssage())); | |
| 101 | } | |
| 102 | catc h(IOExcept ion ioX) | |
| 103 | { | |
| 104 | logger .error("Th ere was an error fin ding the i nstalled I maging ver sion from VistA", io X); | |
| 105 | Transa ctionConte xtFactory. get().addD ebugInform ation("isV ersionComp atible() f ailed, " + (ioX == n ull ? "<nu ll error>" : ioX.get Message()) ); | |
| 106 | } | |
| 107 | fina lly | |
| 108 | { | |
| 109 | try{lo calVistaSe ssion.clos e();} | |
| 110 | catch( Throwable t){} | |
| 111 | } | |
| 112 | retu rn false; | |
| 113 | } | |
| 114 | ||
| 115 | <# list metho ds as meth od> | |
| 116 | ${ method} | |
| 117 | </ #list> | |
| 118 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.