Produced by Araxis Merge on 3/25/2019 8:58:09 AM Central 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 | C:\AraxisMergeCompare\Pri_un\IMAG_Source\VISA\Java\VixServerHealthWebApp\main\src\java\gov\va\med\imaging\vixserverhealth\taglib | VixServerHealthViewTag.java | Mon Mar 18 20:39:08 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\VixServerHealthWebApp\main\src\java\gov\va\med\imaging\vixserverhealth\taglib | VixServerHealthViewTag.java | Tue Mar 19 12:04:36 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 350 |
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 15, 2010 | |
6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
7 | Developer: DNS werfej | |
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.vix serverheal th.taglib; | |
27 | ||
28 | import gov .va.med.Ro utingToken Impl; | |
29 | import gov .va.med.im aging.GUID ; | |
30 | import gov .va.med.im aging.core .FacadeRou terUtility ; | |
31 | import gov .va.med.im aging.heal th.VixServ erHealthSo urce; | |
32 | import gov .va.med.im aging.heal th.VixSite ServerHeal th; | |
33 | import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ; | |
34 | import gov .va.med.im aging.vixs erverhealt h.VixServe rHealthRou ter; | |
35 | import gov .va.med.im aging.vixs erverhealt h.web.VixD icomSendFa ilures; | |
36 | import gov .va.med.im aging.vixs erverhealt h.web.VixS erverHealt hView; | |
37 | ||
38 | import jav a.util.Lis t; | |
39 | ||
40 | import jav ax.servlet .jsp.JspEx ception; | |
41 | import jav ax.servlet .jsp.tagex t.Tag; | |
42 | ||
43 | import org .apache.lo gging.log4 j.LogManag er; | |
44 | import org .apache.lo gging.log4 j.Logger; | |
45 | import org .springfra mework.web .servlet.s upport.Jsp AwareReque stContext; | |
46 | import org .springfra mework.web .servlet.s upport.Req uestContex t; | |
47 | ||
48 | /** | |
49 | * @author DNS werfej | |
50 | * | |
51 | */ | |
52 | public cla ss VixServ erHealthVi ewTag | |
53 | extends Ab stractVixS erverHealt hTag | |
54 | { | |
55 | pr ivate stat ic final l ong serial VersionUID = 1L; | |
56 | ||
57 | pr ivate Logg er logger = LogManag er.getLogg er(this.ge tClass()); | |
58 | ||
59 | /* * | |
60 | * {@link ja vax.servle t.jsp.Page Context} a ttribute f or page-le vel | |
61 | * {@link Re questConte xt} instan ce. | |
62 | * / | |
63 | pu blic stati c final St ring REQUE ST_CONTEXT _PAGE_ATTR IBUTE = "o rg.springf ramework.w eb.servlet .tags.REQU EST_CONTEX T"; | |
64 | ||
65 | pr ivate Stri ng siteNum ber = null ; | |
66 | pr ivate Bool ean forceR efresh = n ull; | |
67 | pr ivate List <VixDicomS endFailure s> dicomSe rvicesStat s = null; | |
68 | pr ivate Requ estContext requestCo ntext; | |
69 | pr ivate VixS erverHealt hView vixS erverHealt hView = nu ll; | |
70 | ||
71 | /* * | |
72 | * Return th e current RequestCon text. | |
73 | * / | |
74 | pr otected sy nchronized final Req uestContex t getReque stContext( ) | |
75 | { | |
76 | if(t his.reques tContext = = null) | |
77 | { | |
78 | this.r equestCont ext = (Req uestContex t) this.pa geContext. getAttribu te(REQUEST _CONTEXT_P AGE_ATTRIB UTE); | |
79 | if (th is.request Context == null) | |
80 | { | |
81 | this.req uestContex t = new Js pAwareRequ estContext (this.page Context); | |
82 | this.pag eContext.s etAttribut e(REQUEST_ CONTEXT_PA GE_ATTRIBU TE, this.r equestCont ext); | |
83 | } | |
84 | } | |
85 | ||
86 | retu rn this.re questConte xt; | |
87 | } | |
88 | ||
89 | /* * | |
90 | * @re turn the s iteNumber | |
91 | */ | |
92 | public String ge tSiteNumbe r() | |
93 | { | |
94 | re turn siteN umber; | |
95 | } | |
96 | ||
97 | /* * | |
98 | * @pa ram siteNu mber the s iteNumber to set | |
99 | */ | |
100 | public void setS iteNumber( String sit eNumber) | |
101 | { | |
102 | th is.siteNum ber = site Number; | |
103 | } | |
104 | ||
105 | /* * | |
106 | * @return t he forceRe fresh | |
107 | * / | |
108 | pu blic Boole an getForc eRefresh() { | |
109 | retu rn forceRe fresh; | |
110 | } | |
111 | ||
112 | /* * | |
113 | * @param fo rceRefresh the force Refresh to set | |
114 | * / | |
115 | pu blic void setForceRe fresh(Bool ean forceR efresh) { | |
116 | this .forceRefr esh = forc eRefresh; | |
117 | } | |
118 | ||
119 | pu blic List< VixDicomSe ndFailures > getDicom ServicesSt ats() { | |
120 | retu rn dicomSe rvicesStat s; | |
121 | } | |
122 | ||
123 | pu blic void setDicomSe rvicesStat s(List<Vix DicomSendF ailures> d icomServic esStats) { | |
124 | this .dicomServ icesStats = dicomSer vicesStats ; | |
125 | } | |
126 | ||
127 | /* (non-Java doc) | |
128 | * @see gov. va.med.ima ging.vixse rverhealth .taglib.Ab stractVixS erverHealt hTag#getVi xServerHea lthView() | |
129 | * / | |
130 | @O verride | |
131 | pr otected Vi xServerHea lthView ge tVixServer HealthView () | |
132 | th rows JspEx ception | |
133 | { | |
134 | if(t his.vixSer verHealthV iew == nul l) | |
135 | { | |
136 | try | |
137 | { | |
138 | VixSer verHealthR outer rout er; | |
139 | try | |
140 | { | |
141 | router = FacadeRou terUtility .getFacade Router(Vix ServerHeal thRouter.c lass); | |
142 | } | |
143 | catch (Exception x) | |
144 | { | |
145 | logger.e rror("Exce ption gett ing the fa cade route r implemen tation.", x); | |
146 | throw ne w JspExcep tion(x); | |
147 | } | |
148 | Transa ctionConte xtFactory. get().setT ransaction Id(new GUI D().toStri ng()); | |
149 | boolea n refresh = false; | |
150 | if(get ForceRefre sh() != nu ll) | |
151 | refresh = getForce Refresh(); | |
152 | VixSit eServerHea lth health = | |
153 | router.g etVixSiteS erverHealt h(RoutingT okenImpl.c reateVARad iologySite (getSiteNu mber()), | |
154 | re fresh, Vix ServerHeal thSource.v alues()); | |
155 | vixSer verHealthV iew = new VixServerH ealthView( health); | |
156 | dicomS ervicesSta ts = vixSe rverHealth View.getDi comService Stats(); | |
157 | } | |
158 | catc h (Excepti on e) | |
159 | { | |
160 | throw new JspExc eption(e); | |
161 | } | |
162 | } | |
163 | ||
164 | re turn vixSe rverHealth View; | |
165 | } | |
166 | ||
167 | /* * | |
168 | * @se e javax.se rvlet.jsp. tagext.Tag Support#do EndTag() | |
169 | */ | |
170 | @Overr ide | |
171 | public int doEnd Tag() | |
172 | throws JspExcept ion | |
173 | { | |
174 | vi xServerHea lthView = null; | |
175 | return T ag.EVAL_PA GE; | |
176 | } | |
177 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.