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 | GetQAReviewReportsCommand.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 | GetQAReviewReportsCommand.java | Tue Mar 19 12:04:12 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 252 |
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.QAReview ReportResu lt; | |
8 | import gov .va.med.im aging.view er.rest.tr anslator.V iewerImagi ngRestTran slator; | |
9 | import gov .va.med.im aging.view er.rest.ty pes.QARevi ewReportRe sultsType; | |
10 | import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField; | |
11 | ||
12 | import jav a.util.Has hMap; | |
13 | import jav a.util.Lis t; | |
14 | import jav a.util.Map ; | |
15 | ||
16 | import org .apache.lo gging.log4 j.LogManag er; | |
17 | import org .apache.lo gging.log4 j.Logger; | |
18 | ||
19 | /** | |
20 | * @author DNS tjahjb | |
21 | * @param userId | |
22 | * | |
23 | */ | |
24 | public cla ss GetQARe viewReport sCommand | |
25 | extends Ab stractView erImagingC ommands<Li st<QARevie wReportRes ult>, QARe viewReport ResultsTyp e> | |
26 | { | |
27 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(GetQ AReviewRep ortsComman d.class); | |
28 | ||
29 | pr ivate Stri ng userId; | |
30 | pr ivate Stri ng interfa ceVersion; | |
31 | ||
32 | pu blic GetQA ReviewRepo rtsCommand ( | |
33 | String userId, | |
34 | String interface Version) | |
35 | { | |
36 | supe r("GetQARe viewReport sCommand") ; | |
37 | this .userId = userId; | |
38 | this .interface Version = interfaceV ersion; | |
39 | } | |
40 | ||
41 | @O verride | |
42 | pr otected Li st<QARevie wReportRes ult> execu teRouterCo mmand() | |
43 | th rows Metho dException , Connecti onExceptio n | |
44 | { | |
45 | try | |
46 | { | |
47 | logger .info("Get QAReviewRe portsComma nd paramet ers: " + g etMethodPa rameterVal uesString( )); | |
48 | ||
49 | Routin gToken rou tingToken = createLo calRouting Token(); | |
50 | ||
51 | return getRouter ().getQARe viewReport s( | |
52 | routingTok en, | |
53 | getUserId( )); | |
54 | ||
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 | * @return t he userId | |
65 | * / | |
66 | pu blic Strin g getUserI d() | |
67 | { | |
68 | retu rn this.us erId; | |
69 | } | |
70 | ||
71 | ||
72 | @O verride | |
73 | pu blic Strin g getInter faceVersio n() | |
74 | { | |
75 | retu rn interfa ceVersion; | |
76 | } | |
77 | ||
78 | ||
79 | /* (non-Java doc) | |
80 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getMet hodParamet erValuesSt ring() | |
81 | * / | |
82 | @O verride | |
83 | pr otected St ring getMe thodParame terValuesS tring() | |
84 | { | |
85 | retu rn "User I D [" + get UserId() + "] "; | |
86 | } | |
87 | ||
88 | ||
89 | @O verride | |
90 | pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField, String> g etTransact ionContext Fields() | |
91 | { | |
92 | Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = | |
93 | new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>(); | |
94 | ||
95 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.quality , transact ionContext NaValue); | |
96 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.queryFi lter, tran sactionCon textNaValu e); | |
97 | ||
98 | retu rn transac tionContex tFields; | |
99 | } | |
100 | ||
101 | ||
102 | @O verride | |
103 | pu blic Integ er getEntr iesReturne d(QAReview ReportResu ltsType re s) | |
104 | { | |
105 | retu rn res.get QAReviewRe ports().le ngth; | |
106 | } | |
107 | ||
108 | /* (non-Java doc) | |
109 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#transl ateRouterR esult(java .lang.Obje ct) | |
110 | * / | |
111 | @O verride | |
112 | pr otected QA ReviewRepo rtResultsT ype transl ateRouterR esult( | |
113 | List<Q AReviewRep ortResult> routerRes ult) | |
114 | th rows Trans lationExce ption, Met hodExcepti on | |
115 | { | |
116 | retu rn ViewerI magingRest Translator .translate QAReviewRe portResult s(routerRe sult); | |
117 | } | |
118 | ||
119 | @O verride | |
120 | pr otected Cl ass<QARevi ewReportRe sultsType> getResult Class() { | |
121 | retu rn QARevie wReportRes ultsType.c lass; | |
122 | } | |
123 | ||
124 | } | |
125 | ||
126 | ||
127 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.