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 | GetCaptureUsersCommand.java | Mon Mar 18 20:39:09 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\ViewerImagingWebApp\main\src\java\gov\va\med\imaging\viewer\commands | GetCaptureUsersCommand.java | Tue Mar 19 12:04:12 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 308 |
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 | import gov .va.med.Ro utingToken ; | |
4 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
5 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
6 | import gov .va.med.im aging.exch ange.trans lation.exc eptions.Tr anslationE xception; | |
7 | import gov .va.med.im aging.view er.busines s.CaptureU serResult; | |
8 | import gov .va.med.im aging.view er.datasou rce.Viewer ImagingDat aSourceSer vice; | |
9 | import gov .va.med.im aging.view er.rest.tr anslator.V iewerImagi ngRestTran slator; | |
10 | import gov .va.med.im aging.view er.rest.ty pes.Captur eUserResul tsType; | |
11 | import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField; | |
12 | ||
13 | import jav a.util.Has hMap; | |
14 | import jav a.util.Lis t; | |
15 | import jav a.util.Map ; | |
16 | ||
17 | import org .apache.lo gging.log4 j.LogManag er; | |
18 | import org .apache.lo gging.log4 j.Logger; | |
19 | ||
20 | /** | |
21 | * @author DNS tjahjb | |
22 | * @param appFlag | |
23 | * @param fromDate | |
24 | * @param throughDat e | |
25 | * | |
26 | */ | |
27 | public cla ss GetCapt ureUsersCo mmand | |
28 | extends Ab stractView erImagingC ommands<Li st<Capture UserResult >, Capture UserResult sType> | |
29 | { | |
30 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(GetC aptureUser sCommand.c lass); | |
31 | ||
32 | pr ivate Stri ng appFlag ; | |
33 | pr ivate Stri ng fromDat e; | |
34 | pr ivate Stri ng through Date; | |
35 | pr ivate Stri ng interfa ceVersion; | |
36 | ||
37 | pu blic GetCa ptureUsers Command( | |
38 | String appFlag, | |
39 | String fromDate, | |
40 | String throughDa te, | |
41 | String interface Version) | |
42 | { | |
43 | supe r("GetCapt ureUsersCo mmand"); | |
44 | this .appFlag = appFlag; | |
45 | this .fromDate = fromDate ; | |
46 | this .throughDa te = throu ghDate; | |
47 | this .interface Version = interfaceV ersion; | |
48 | } | |
49 | ||
50 | @O verride | |
51 | pr otected Li st<Capture UserResult > executeR outerComma nd() | |
52 | th rows Metho dException , Connecti onExceptio n | |
53 | { | |
54 | try | |
55 | { | |
56 | logger .info("Get CaptureUse rsCommand parameters : " + getM ethodParam eterValues String()); | |
57 | ||
58 | Routin gToken rou tingToken = createLo calRouting Token(); | |
59 | ||
60 | return getRouter ().getCapt ureUsers( | |
61 | routingTok en, | |
62 | getAppFlag (), | |
63 | getFromDat e(), | |
64 | getThrough Date()); | |
65 | ||
66 | } | |
67 | catc h(Exceptio n e) | |
68 | { | |
69 | // log ging and t ransaction context s etting han dled by ca lling meth od | |
70 | throw new Method Exception( e); | |
71 | } | |
72 | } | |
73 | ||
74 | /* * | |
75 | * @return t he appFlag | |
76 | * / | |
77 | pu blic Strin g getAppFl ag() | |
78 | { | |
79 | retu rn this.ap pFlag; | |
80 | } | |
81 | ||
82 | /* * | |
83 | * @return t he fromDat e | |
84 | * / | |
85 | pu blic Strin g getFromD ate() | |
86 | { | |
87 | retu rn this.fr omDate; | |
88 | } | |
89 | ||
90 | /* * | |
91 | * @return t he through Date | |
92 | * / | |
93 | pu blic Strin g getThrou ghDate() | |
94 | { | |
95 | retu rn this.th roughDate; | |
96 | } | |
97 | ||
98 | @O verride | |
99 | pu blic Strin g getInter faceVersio n() | |
100 | { | |
101 | retu rn interfa ceVersion; | |
102 | } | |
103 | ||
104 | ||
105 | /* (non-Java doc) | |
106 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getMet hodParamet erValuesSt ring() | |
107 | * / | |
108 | @O verride | |
109 | pr otected St ring getMe thodParame terValuesS tring() | |
110 | { | |
111 | retu rn "Applic ation Flag [" + getA ppFlag() + "] " + | |
112 | "From Da te [" + th is.getFrom Date() + " ] " + | |
113 | "Through Date [" + this.getT hroughDate () + "] "; | |
114 | } | |
115 | ||
116 | ||
117 | @O verride | |
118 | pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField, String> g etTransact ionContext Fields() | |
119 | { | |
120 | Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = | |
121 | new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>(); | |
122 | ||
123 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.quality , transact ionContext NaValue); | |
124 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.queryFi lter, tran sactionCon textNaValu e); | |
125 | ||
126 | retu rn transac tionContex tFields; | |
127 | } | |
128 | ||
129 | ||
130 | @O verride | |
131 | pu blic Integ er getEntr iesReturne d(CaptureU serResults Type res) | |
132 | { | |
133 | retu rn res.get CaptureUse rs().lengt h; | |
134 | } | |
135 | ||
136 | /* (non-Java doc) | |
137 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#transl ateRouterR esult(java .lang.Obje ct) | |
138 | * / | |
139 | @O verride | |
140 | pr otected Ca ptureUserR esultsType translate RouterResu lt( | |
141 | List<C aptureUser Result> ro uterResult ) | |
142 | th rows Trans lationExce ption, Met hodExcepti on | |
143 | { | |
144 | retu rn ViewerI magingRest Translator .translate CaptureUse rResults(r outerResul t); | |
145 | } | |
146 | ||
147 | @O verride | |
148 | pr otected Cl ass<Captur eUserResul tsType> ge tResultCla ss() { | |
149 | retu rn Capture UserResult sType.clas s; | |
150 | } | |
151 | ||
152 | } | |
153 | ||
154 | ||
155 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.