Produced by Araxis Merge on 12/5/2017 12:06:38 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\CoreValueObjects\main\src\java\gov\va\med\imaging\exchange\business\storage | StorageServerConfiguration.java | Mon Dec 4 21:35:18 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\src\java\gov\va\med\imaging\exchange\business\storage | StorageServerConfiguration.java | Mon Dec 4 21:58:53 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 216 |
| 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 | * | |
| 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: Dec 01, 2007 | |
| 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.stora ge; | |
| 27 | ||
| 28 | import gov .va.med.Ro utingToken ; | |
| 29 | import gov .va.med.Ro utingToken Impl; | |
| 30 | import gov .va.med.ex ceptions.R outingToke nFormatExc eption; | |
| 31 | import gov .va.med.im aging.faca de.configu ration.Abs tractBaseF acadeConfi guration; | |
| 32 | ||
| 33 | import jav a.io.File; | |
| 34 | ||
| 35 | import org .apache.lo gging.log4 j.LogManag er; | |
| 36 | import org .apache.lo gging.log4 j.Logger; | |
| 37 | ||
| 38 | public cla ss Storage ServerConf iguration | |
| 39 | extends Ab stractBase FacadeConf iguration | |
| 40 | { | |
| 41 | pr ivate stat ic Storage ServerConf iguration storageSer verConfigu ration = n ull; | |
| 42 | pr ivate stat ic final L ogger logg er = LogMa nager.getL ogger(Stor ageServerC onfigurati on.class); | |
| 43 | ||
| 44 | privat e String i conImageFo lder; | |
| 45 | ||
| 46 | ||
| 47 | /* * | |
| 48 | * @return t he iconIma geFolder | |
| 49 | * / | |
| 50 | pu blic Strin g getIconI mageFolder () { | |
| 51 | retu rn iconIma geFolder; | |
| 52 | } | |
| 53 | ||
| 54 | /* * | |
| 55 | * @param ic onImageFol der the ic onImageFol der to set | |
| 56 | * / | |
| 57 | pu blic void setIconIma geFolder(S tring icon ImageFolde r) { | |
| 58 | this .iconImage Folder = i conImageFo lder; | |
| 59 | } | |
| 60 | ||
| 61 | @O verride | |
| 62 | pu blic Abstr actBaseFac adeConfigu ration loa dDefaultCo nfiguratio n() | |
| 63 | { | |
| 64 | retu rn this; | |
| 65 | } | |
| 66 | ||
| 67 | pu blic stati c synchron ized Stora geServerCo nfiguratio n getConfi guration() | |
| 68 | { | |
| 69 | if(s torageServ erConfigur ation == n ull) | |
| 70 | { | |
| 71 | Storag eServerCon figuration config = new Storag eServerCon figuration (); | |
| 72 | storag eServerCon figuration = (Storag eServerCon figuration )config.lo adConfigur ation(); | |
| 73 | } | |
| 74 | retu rn storage ServerConf iguration; | |
| 75 | } | |
| 76 | ||
| 77 | ||
| 78 | public static vo id main(St ring[] arg s) { | |
| 79 | ||
| 80 | St orageServe rConfigura tion confi g = getCon figuration (); | |
| 81 | ||
| 82 | St ring path= System.ge tenv("vixc ache"); // <x: /vixcache> | |
| 83 | if (path.len gth() < 4) { | |
| 84 | path = "c:/tem p/"; | |
| 85 | } | |
| 86 | if (!(path.e ndsWith("/ ") || path .endsWith( "\\"))){ | |
| 87 | path += "/"; | |
| 88 | } | |
| 89 | co nfig.setIc onImageFol der(path + "IconImag e"); | |
| 90 | chec kAndMakeDi rs(config. getIconIma geFolder() ); | |
| 91 | ||
| 92 | // Store the configura tion | |
| 93 | co nfig.store Configurat ion(); | |
| 94 | } | |
| 95 | ||
| 96 | privat e static v oid printU sage() | |
| 97 | { | |
| 98 | Sy stem.out.p rintln("Th is program requires no argumen ts."); | |
| 99 | } | |
| 100 | ||
| 101 | privat e static v oid checkA ndMakeDirs (String fo lderPath) | |
| 102 | { | |
| 103 | File folder = new File(f olderPath) ; | |
| 104 | if ( !folder.ex ists()) | |
| 105 | { | |
| 106 | folder .mkdirs(); | |
| 107 | } | |
| 108 | } | |
| 109 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.