Produced by Araxis Merge on 12/5/2017 12:06:34 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\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\artifactsource | VaSiteAuthenticatableCollectionTag.java | Mon Dec 4 21:35:32 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\artifactsource | VaSiteAuthenticatableCollectionTag.java | Mon Dec 4 21:57:14 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 254 |
| 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: Feb 14, 2012 | |
| 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.busi ness.tagli b.artifact source; | |
| 27 | ||
| 28 | import gov .va.med.im aging.Base WebFacadeR outer; | |
| 29 | import gov .va.med.im aging.arti factsource .ArtifactS ource; | |
| 30 | import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce; | |
| 31 | import gov .va.med.im aging.core .FacadeRou terUtility ; | |
| 32 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
| 33 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
| 34 | import gov .va.med.im aging.exch ange.busin ess.Site; | |
| 35 | import gov .va.med.im aging.exch ange.busin ess.taglib .exception s.MissingR equiredArg umentExcep tion; | |
| 36 | ||
| 37 | import jav a.util.Arr ayList; | |
| 38 | import jav a.util.Col lection; | |
| 39 | import jav a.util.Col lections; | |
| 40 | import jav a.util.Com parator; | |
| 41 | import jav a.util.Lis t; | |
| 42 | ||
| 43 | import jav ax.servlet .jsp.JspEx ception; | |
| 44 | ||
| 45 | import org .apache.lo gging.log4 j.Logger; | |
| 46 | import org .apache.lo gging.log4 j.LogManag er; | |
| 47 | ||
| 48 | ||
| 49 | /** | |
| 50 | * @author
|
|
| 51 | * | |
| 52 | */ | |
| 53 | public cla ss VaSiteA uthenticat ableCollec tionTag | |
| 54 | extends Ab stractArti factSource Collection Tag | |
| 55 | { | |
| 56 | pr ivate stat ic final l ong serial VersionUID = 1L; | |
| 57 | ||
| 58 | pr ivate Logg er logger = LogManag er.getLogg er(this.ge tClass()); | |
| 59 | ||
| 60 | /* (non-Java doc) | |
| 61 | * @see gov. va.med.ima ging.excha nge.busine ss.taglib. artifactso urce.Abstr actArtifac tSourceCol lectionTag #getArtifa ctSources( ) | |
| 62 | * / | |
| 63 | @O verride | |
| 64 | pr otected Co llection<R esolvedArt ifactSourc e> getArti factSource s() | |
| 65 | th rows JspEx ception, M issingRequ iredArgume ntExceptio n | |
| 66 | { | |
| 67 | tr y | |
| 68 | { | |
| 69 | Base WebFacadeR outer rout er; | |
| 70 | try | |
| 71 | { | |
| 72 | router = FacadeR outerUtili ty.getFaca deRouter(B aseWebFaca deRouter.c lass); | |
| 73 | } | |
| 74 | catc h (Excepti on x) | |
| 75 | { | |
| 76 | logger .error("Ex ception ge tting the facade rou ter implem entation." , x); | |
| 77 | throw new JspExc eption(x); | |
| 78 | } | |
| 79 | ||
| 80 | List <ResolvedA rtifactSou rce> resol vedArtifac tSources = router.ge tResolvedA rtifactSou rceList(); | |
| 81 | ||
| 82 | List <ResolvedA rtifactSou rce> resul t = new Ar rayList<Re solvedArti factSource >(); | |
| 83 | for( ResolvedAr tifactSour ce resolve dArtifactS ource : re solvedArti factSource s) | |
| 84 | { | |
| 85 | Artifa ctSource a rtifactSou rce = reso lvedArtifa ctSource.g etArtifact Source(); | |
| 86 | if(art ifactSourc e instance of Site) | |
| 87 | { | |
| 88 | Site sit e = (Site) artifactSo urce; | |
| 89 | if(site. isSiteUser Authentica table()) | |
| 90 | result.add (resolvedA rtifactSou rce); | |
| 91 | } | |
| 92 | } | |
| 93 | Coll ections.so rt(result, new Resol vedArtifac tSourceCom parator()) ; | |
| 94 | retu rn result; | |
| 95 | } | |
| 96 | ca tch(Method Exception mX) | |
| 97 | { | |
| 98 | logg er.error(m X); | |
| 99 | thro w new JspE xception(m X); | |
| 100 | } | |
| 101 | ca tch(Connec tionExcept ion mX) | |
| 102 | { | |
| 103 | logg er.error(m X); | |
| 104 | thro w new JspE xception(m X); | |
| 105 | } | |
| 106 | } | |
| 107 | ||
| 108 | cl ass Resolv edArtifact SourceComp arator | |
| 109 | im plements C omparator< ResolvedAr tifactSour ce> | |
| 110 | { | |
| 111 | ||
| 112 | /* ( non-Javado c) | |
| 113 | * @ see java.u til.Compar ator#compa re(java.la ng.Object, java.lang .Object) | |
| 114 | */ | |
| 115 | @Ove rride | |
| 116 | publ ic int com pare(Resol vedArtifac tSource so urce1, Res olvedArtif actSource source2) | |
| 117 | { | |
| 118 | Artifa ctSource a 1 = source 1.getArtif actSource( ); | |
| 119 | Artifa ctSource a 2 = source 2.getArtif actSource( ); | |
| 120 | if(a1 instanceof Site && a 2 instance of Site) | |
| 121 | { | |
| 122 | Site s1 = (Site)a1 ; | |
| 123 | Site s2 = (Site)a2 ; | |
| 124 | return s 1.getSiteN ame().comp areToIgnor eCase(s2.g etSiteName ()); | |
| 125 | } | |
| 126 | return 0; | |
| 127 | } | |
| 128 | } | |
| 129 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.