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 | GetStatusReasonsCommand.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 | GetStatusReasonsCommand.java | Tue Mar 19 12:04:12 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 258 |
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.core .interface s.exceptio ns.Connect ionExcepti on; | |
6 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
7 | import gov .va.med.im aging.exch ange.Routi ngTokenHel per; | |
8 | import gov .va.med.im aging.exch ange.busin ess.ImageA ccessReaso n; | |
9 | import gov .va.med.im aging.exch ange.enums .ImageAcce ssReasonTy pe; | |
10 | import gov .va.med.im aging.exch ange.trans lation.exc eptions.Tr anslationE xception; | |
11 | import gov .va.med.im aging.view er.busines s.PrintRea sonsType; | |
12 | import gov .va.med.im aging.view er.busines s.StatusRe asonsType; | |
13 | import gov .va.med.im aging.view er.rest.tr anslator.V iewerImagi ngRestTran slator; | |
14 | import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField; | |
15 | ||
16 | import jav a.util.Arr ayList; | |
17 | import jav a.util.Has hMap; | |
18 | import jav a.util.Lis t; | |
19 | import jav a.util.Map ; | |
20 | ||
21 | /** | |
22 | * @author DNS tjahjb | |
23 | * | |
24 | */ | |
25 | public cla ss GetStat usReasonsC ommand | |
26 | extends Ab stractView erImagingC ommands<Li st<ImageAc cessReason >, StatusR easonsType > | |
27 | { | |
28 | pr ivate Stri ng siteNum ber; | |
29 | pr ivate Stri ng interfa ceVersion; | |
30 | ||
31 | pu blic GetSt atusReason sCommand( | |
32 | String siteNumbe r, | |
33 | String interface Version) | |
34 | { | |
35 | supe r("getStat usReasonsC ommand"); | |
36 | this .siteNumbe r = siteNu mber; | |
37 | this .interface Version = interfaceV ersion; | |
38 | } | |
39 | ||
40 | @O verride | |
41 | pr otected Li st<ImageAc cessReason > executeR outerComma nd() | |
42 | th rows Metho dException , Connecti onExceptio n | |
43 | { | |
44 | try | |
45 | { | |
46 | Routin gToken rou tingToken = | |
47 | RoutingTok enHelper.c reateSiteA ppropriate RoutingTok en(getSite Number()); | |
48 | List<I mageAccess ReasonType > reasonTy pes = new ArrayList< ImageAcces sReasonTyp e>(); | |
49 | reason Types.add( ImageAcces sReasonTyp e.changing ImageStatu s); | |
50 | return getRouter ().getImag eAccessRea sonList(ro utingToken , reasonTy pes); | |
51 | } | |
52 | catc h(Exceptio n e) | |
53 | { | |
54 | // log ging and t ransaction context s etting han dled by ca lling meth od | |
55 | throw new Method Exception( e); | |
56 | } | |
57 | } | |
58 | ||
59 | /* * | |
60 | * @return t he siteNum ber | |
61 | * / | |
62 | pu blic Strin g getSiteN umber() | |
63 | { | |
64 | retu rn this.si teNumber; | |
65 | } | |
66 | ||
67 | ||
68 | @O verride | |
69 | pu blic Strin g getInter faceVersio n() | |
70 | { | |
71 | retu rn this.in terfaceVer sion; | |
72 | } | |
73 | ||
74 | /* (non-Java doc) | |
75 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getEnt riesReturn ed(java.la ng.Object) | |
76 | * / | |
77 | @O verride | |
78 | pu blic Integ er getEntr iesReturne d(StatusRe asonsType translated Result) | |
79 | { | |
80 | retu rn transla tedResult. getPrintRe asons().le ngth; | |
81 | } | |
82 | ||
83 | ||
84 | /* (non-Java doc) | |
85 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getMet hodParamet erValuesSt ring() | |
86 | * / | |
87 | @O verride | |
88 | pr otected St ring getMe thodParame terValuesS tring() | |
89 | { | |
90 | retu rn "from s ite [" + g etSiteNumb er() + "]" ; | |
91 | } | |
92 | ||
93 | ||
94 | /* (non-Java doc) | |
95 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getRes ultClass() | |
96 | * / | |
97 | @O verride | |
98 | pr otected Cl ass<Status ReasonsTyp e> getResu ltClass() | |
99 | { | |
100 | retu rn StatusR easonsType .class; | |
101 | } | |
102 | ||
103 | ||
104 | @O verride | |
105 | pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField, String> g etTransact ionContext Fields() | |
106 | { | |
107 | Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = | |
108 | new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>(); | |
109 | ||
110 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.quality , transact ionContext NaValue); | |
111 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.queryFi lter, tran sactionCon textNaValu e); | |
112 | ||
113 | retu rn transac tionContex tFields; | |
114 | } | |
115 | ||
116 | /* (non-Java doc) | |
117 | * @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#transl ateRouterR esult(java .lang.Obje ct) | |
118 | * / | |
119 | @O verride | |
120 | pr otected St atusReason sType tran slateRoute rResult(Li st<ImageAc cessReason > routerRe sult) | |
121 | th rows Trans lationExce ption, Met hodExcepti on | |
122 | { | |
123 | retu rn ViewerI magingRest Translator .translate StatusReas ons(router Result); | |
124 | } | |
125 | ||
126 | ||
127 | ||
128 | } | |
129 | ||
130 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.