Produced by Araxis Merge on 12/5/2017 12:06:42 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\ImagingBaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\image | AbstractImageCollectionTag.java | Mon Dec 4 21:35:30 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingBaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\image | AbstractImageCollectionTag.java | Mon Dec 4 22:01:15 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 238 |
| 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 | * 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: Jan 22, 2008 | |
| 5 | * Site Na me: Washi ngton OI F ield Offic e, Silver Spring, MD | |
| 6 | * @author
|
|
| 7 | * @versio n 1.0 | |
| 8 | * | |
| 9 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 10 | * Propert y of the U S Governme nt. | |
| 11 | * No perm ission to copy or re distribute this soft ware is gi ven. | |
| 12 | * Use of unreleased versions of this so ftware req uires the user | |
| 13 | * to exec ute a writ ten test a greement w ith the Vi stA Imagin g | |
| 14 | * Develop ment Offic e of the D epartment of Veteran s Affairs, | |
| 15 | * telepho ne (301) 7 34-0100. | |
| 16 | * | |
| 17 | * The Foo d and Drug Administr ation clas sifies thi s software as | |
| 18 | * a Class II medica l device. As such, it may not be change d | |
| 19 | * in any way. Modi fications to this so ftware may result in an | |
| 20 | * adulter ated medic al device under 21CF R820, the use of whi ch | |
| 21 | * is cons idered to be a viola tion of US Federal S tatutes. | |
| 22 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 23 | */ | |
| 24 | package go v.va.med.i maging.exc hange.busi ness.tagli b.image; | |
| 25 | ||
| 26 | import gov .va.med.im aging.exch ange.busin ess.Image; | |
| 27 | ||
| 28 | import jav a.io.IOExc eption; | |
| 29 | import jav a.util.Col lection; | |
| 30 | import jav a.util.Ite rator; | |
| 31 | ||
| 32 | import jav ax.servlet .jsp.JspEx ception; | |
| 33 | import jav ax.servlet .jsp.tagex t.BodyTagS upport; | |
| 34 | import jav ax.servlet .jsp.tagex t.Iteratio nTag; | |
| 35 | import jav ax.servlet .jsp.tagex t.Tag; | |
| 36 | ||
| 37 | import org .apache.lo gging.log4 j.LogManag er; | |
| 38 | import org .apache.lo gging.log4 j.Logger; | |
| 39 | ||
| 40 | /** | |
| 41 | * This cl ass must b e subclass ed with so mething th at will se t the | |
| 42 | * List of Image ins tances to display. | |
| 43 | * | |
| 44 | * @author
|
|
| 45 | * | |
| 46 | */ | |
| 47 | public abs tract clas s Abstract ImageColle ctionTag | |
| 48 | extends Bo dyTagSuppo rt | |
| 49 | { | |
| 50 | pr ivate stat ic final l ong serial VersionUID = 1L; | |
| 51 | pr ivate Logg er logger = LogManag er.getLogg er(this.ge tClass()); | |
| 52 | pr ivate Stri ng emptyRe sultMessag e = null; | |
| 53 | ||
| 54 | /* * | |
| 55 | * @re turn the s tudyList | |
| 56 | */ | |
| 57 | protec ted abstra ct Collect ion<Image> getImageC ollection( ) | |
| 58 | throws JspExcept ion; | |
| 59 | ||
| 60 | /* * | |
| 61 | * The messa ge to show if the im age list i s empty | |
| 62 | * @return | |
| 63 | * / | |
| 64 | pu blic Strin g getEmpty ResultMess age() | |
| 65 | { | |
| 66 | re turn empty ResultMess age; | |
| 67 | } | |
| 68 | ||
| 69 | pu blic void setEmptyRe sultMessag e(String e mptyResult Message) | |
| 70 | { | |
| 71 | th is.emptyRe sultMessag e = emptyR esultMessa ge; | |
| 72 | } | |
| 73 | ||
| 74 | /* * | |
| 75 | * @se e javax.se rvlet.jsp. tagext.Tag Support#do StartTag() | |
| 76 | */ | |
| 77 | @Overr ide | |
| 78 | public int doSta rtTag() | |
| 79 | throws JspExcept ion | |
| 80 | { | |
| 81 | Co llection<I mage> imag eList = ge tImageColl ection(); | |
| 82 | ||
| 83 | if (imageList != null & & imageLis t.size() > 0) | |
| 84 | { | |
| 85 | imag eIterator = imageLis t.iterator (); | |
| 86 | return T ag.EVAL_BO DY_INCLUDE ; | |
| 87 | } | |
| 88 | ||
| 89 | if (getEmptyR esultMessa ge() != nu ll) | |
| 90 | try{ pageContex t.getOut() .write(get EmptyResul tMessage() );} | |
| 91 | catc h(IOExcept ion ioX){l ogger.erro r("Unable to write e mpty resul t set mess age.");} | |
| 92 | ||
| 93 | re turn Tag.S KIP_BODY; | |
| 94 | } | |
| 95 | ||
| 96 | privat e Iterator <Image> im ageIterato r; | |
| 97 | ||
| 98 | Iterat or<Image> getImageIt erator() | |
| 99 | { | |
| 100 | re turn image Iterator; | |
| 101 | } | |
| 102 | ||
| 103 | @O verride | |
| 104 | public int doAft erBody() | |
| 105 | th rows JspEx ception | |
| 106 | { | |
| 107 | return g etImageIte rator().ha sNext() ? IterationT ag.EVAL_BO DY_AGAIN : Iteration Tag.SKIP_B ODY; | |
| 108 | } | |
| 109 | ||
| 110 | ||
| 111 | /* * | |
| 112 | * @se e javax.se rvlet.jsp. tagext.Tag Support#do EndTag() | |
| 113 | */ | |
| 114 | @Overr ide | |
| 115 | public int doEnd Tag() | |
| 116 | throws JspExcept ion | |
| 117 | { | |
| 118 | return T ag.EVAL_PA GE; | |
| 119 | } | |
| 120 | ||
| 121 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.