Produced by Araxis Merge on 3/25/2019 8:58:05 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\ViewerImagingWebApp\main\src\java\gov\va\med\imaging\viewer\commands | SetImagePropertiesCommand.java | Mon Mar 18 20:39:08 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\ViewerImagingWebApp\main\src\java\gov\va\med\imaging\viewer\commands | SetImagePropertiesCommand.java | Tue Mar 19 12:04:12 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 262 |
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 | package go v.va.med.i maging.vie wer.comman ds; | |
2 | ||
3 | ||
4 | import gov .va.med.Ro utingToken ; | |
5 | import gov .va.med.im aging.Stri ngUtil; | |
6 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
7 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
8 | import gov .va.med.im aging.exch ange.trans lation.exc eptions.Tr anslationE xception; | |
9 | import gov .va.med.im aging.view er.busines s.ImagePro perty; | |
10 | import gov .va.med.im aging.view er.rest.tr anslator.V iewerImagi ngRestTran slator; | |
11 | import gov .va.med.im aging.view er.rest.ty pes.ImageP ropertiesT ype; | |
12 | import gov .va.med.im aging.view er.rest.ty pes.SetIma geProperti esResultsT ype; | |
13 | import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField; | |
14 | ||
15 | import jav a.util.Arr ays; | |
16 | import jav a.util.Has hMap; | |
17 | import jav a.util.Lis t; | |
18 | import jav a.util.Map ; | |
19 | ||
20 | ||
21 | ||
22 | /** | |
23 | * @author DNS tjahjb | |
24 | * | |
25 | */ | |
26 | public cla ss SetImag ePropertie sCommand | |
27 | extends Ab stractView erImagingC ommands<Li st<String> , SetImage Properties ResultsTyp e> | |
28 | { | |
29 | pr ivate Stri ng interfa ceVersion; | |
30 | pr ivate Imag ePropertie sType imag ePropertie s; | |
31 | ||
32 | pu blic SetIm agePropert iesCommand ( | |
33 | ImageP ropertiesT ype imageP roperties, | |
34 | String interface Version) | |
35 | { | |
36 | supe r("SetImag ePropertie sCommand") ; | |
37 | this .setImageP roperties( imagePrope rties); | |
38 | this .interface Version = interfaceV ersion; | |
39 | } | |
40 | ||
41 | @O verride | |
42 | pr otected Li st<String> executeRo uterComman d() | |
43 | th rows Metho dException , Connecti onExceptio n | |
44 | { | |
45 | try | |
46 | { | |
47 | Routin gToken rou tingToken = createLo calRouting Token(); | |
48 | String result = getRouter( ).setImage Properties ( | |
49 | routingTok en, | |
50 | getImagePr operties() | |
51 | ); | |
52 | ||
53 | String [] ret = S tringUtil. split(resu lt, String Util.NEW_L INE); | |
54 | return Arrays.as List(ret); | |
55 | } | |
56 | catc h(Exceptio n e) | |
57 | { | |
58 | // log ging and t ransaction context s etting han dled by ca lling meth od | |
59 | throw new Method Exception( e); | |
60 | } | |
61 | } | |
62 | ||
63 | ||
64 | @O verride | |
65 | pu blic Strin g getInter faceVersio n() | |
66 | { | |
67 | retu rn this.in terfaceVer sion; | |
68 | } | |
69 | ||
70 | /* (non-Java doc) | |
71 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getEnt riesReturn ed(java.la ng.Object) | |
72 | * / | |
73 | @O verride | |
74 | pu blic Integ er getEntr iesReturne d(SetImage Properties ResultsTyp e translat edResult) | |
75 | { | |
76 | retu rn transla tedResult. getImagePr operties() .length; | |
77 | } | |
78 | ||
79 | ||
80 | /* (non-Java doc) | |
81 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getMet hodParamet erValuesSt ring() | |
82 | * / | |
83 | @O verride | |
84 | pr otected St ring getMe thodParame terValuesS tring() | |
85 | { | |
86 | retu rn "imageP roperties [" + this. getImagePr operties() + "] "; | |
87 | } | |
88 | ||
89 | ||
90 | /* (non-Java doc) | |
91 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getRes ultClass() | |
92 | * / | |
93 | @O verride | |
94 | pr otected Cl ass<SetIma geProperti esResultsT ype> getRe sultClass( ) | |
95 | { | |
96 | retu rn SetImag ePropertie sResultsTy pe.class; | |
97 | } | |
98 | ||
99 | ||
100 | @O verride | |
101 | pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField, String> g etTransact ionContext Fields() | |
102 | { | |
103 | Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = | |
104 | new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>(); | |
105 | ||
106 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.quality , transact ionContext NaValue); | |
107 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.queryFi lter, tran sactionCon textNaValu e); | |
108 | ||
109 | retu rn transac tionContex tFields; | |
110 | } | |
111 | ||
112 | @O verride | |
113 | pr otected Se tImageProp ertiesResu ltsType tr anslateRou terResult( List<Strin g> routerR esult) | |
114 | th rows Trans lationExce ption, Met hodExcepti on | |
115 | { | |
116 | retu rn ViewerI magingRest Translator .translate SetImagePr opertiesRe sults(rout erResult); | |
117 | } | |
118 | ||
119 | pu blic void setImagePr operties(I mageProper tiesType i mageProper ties) { | |
120 | this .imageProp erties = i mageProper ties; | |
121 | } | |
122 | ||
123 | pu blic List< ImagePrope rty> getIm agePropert ies() | |
124 | { | |
125 | retu rn ViewerI magingRest Translator .translate ImagePrope rties(imag ePropertie s); | |
126 | } | |
127 | ||
128 | ||
129 | ||
130 | } | |
131 | ||
132 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.