Produced by Araxis Merge on 3/25/2019 8:58:02 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\FederationWebApp\main\src\java\gov\va\med\imaging\federation\commands\externalpackage | FederationExternalPackageGetWorkListCommand.java | Mon Mar 18 20:39:15 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\FederationWebApp\main\src\java\gov\va\med\imaging\federation\commands\externalpackage | FederationExternalPackageGetWorkListCommand.java | Tue Mar 19 12:03:38 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 286 |
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 | */ | |
4 | package go v.va.med.i maging.fed eration.co mmands.ext ernalpacka ge; | |
5 | ||
6 | import gov .va.med.Ro utingToken ; | |
7 | import gov .va.med.ex ceptions.R outingToke nFormatExc eption; | |
8 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
9 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
10 | import gov .va.med.im aging.exch ange.busin ess.WorkIt em; | |
11 | import gov .va.med.im aging.exch ange.trans lation.exc eptions.Tr anslationE xception; | |
12 | import gov .va.med.im aging.fede ration.Fed erationRou ter; | |
13 | import gov .va.med.im aging.fede ration.com mands.Abst ractFedera tionComman d; | |
14 | import gov .va.med.im aging.fede ration.res t.translat or.Federat ionRestTra nslator; | |
15 | import gov .va.med.im aging.fede ration.res t.types.Fe derationWo rkItemType ; | |
16 | import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField; | |
17 | ||
18 | import jav a.util.Has hMap; | |
19 | import jav a.util.Lis t; | |
20 | import jav a.util.Map ; | |
21 | ||
22 | /** | |
23 | * @author DNS tjahjb | |
24 | * | |
25 | */ | |
26 | public cla ss Federat ionExterna lPackageGe tWorkListC ommand | |
27 | extends Ab stractFede rationComm and<List<W orkItem>, Federation WorkItemTy pe[]> | |
28 | { | |
29 | pr ivate fina l String r outingToke nString; | |
30 | pr ivate fina l String i dType; | |
31 | pr ivate fina l String p atientId; | |
32 | pr ivate fina l String c ptCode; | |
33 | pr ivate fina l String i nterfaceVe rsion; | |
34 | ||
35 | pu blic Feder ationExter nalPackage GetWorkLis tCommand( | |
36 | String routingTo kenString, | |
37 | String idType, | |
38 | String patientId , | |
39 | String cptCode, | |
40 | String interface Version) | |
41 | { | |
42 | supe r("getWork List"); | |
43 | this .routingTo kenString = routingT okenString ; | |
44 | this .cptCode = cptCode; | |
45 | this .idType = idType; | |
46 | this .patientId = patient Id; | |
47 | this .interface Version = interfaceV ersion; | |
48 | } | |
49 | ||
50 | @O verride | |
51 | pr otected Li st<WorkIte m> execute RouterComm and() | |
52 | th rows Metho dException , Connecti onExceptio n | |
53 | { | |
54 | logg er.debug(" executing Federation WorkListGe tWorkListC ommand."); | |
55 | Fede rationRout er router = getRoute r(); | |
56 | List <WorkItem> workList = null; | |
57 | try | |
58 | { | |
59 | Routin gToken rou tingToken = Federati onRestTran slator.tra nslateRout ingToken(g etRoutingT okenString ()); | |
60 | workLi st = route r.getRemot eWorkItemL ist( | |
61 | routingTok en, | |
62 | getIdType( ), | |
63 | getPatient Id(), | |
64 | getCptCode ()); | |
65 | getLog ger().info (getMethod Name() + " , transact ion(" + ge tTransacti onId() + " ) got " + (workList == null ? "null" : w orkList.si ze()) + " Workitem b usiness ob jects from router.") ; | |
66 | getLog ger().debu g("Number of workite ms: " + wo rkList.siz e()); | |
67 | getLog ger().debu g(workList .toString( )); | |
68 | } ca tch (Routi ngTokenFor matExcepti on e) { | |
69 | throw new Method Exception( e); | |
70 | } | |
71 | ||
72 | retu rn workLis t; | |
73 | } | |
74 | ||
75 | pr ivate Stri ng getPati entId() | |
76 | { | |
77 | retu rn patient Id; | |
78 | } | |
79 | ||
80 | pr ivate Stri ng getIdTy pe() | |
81 | { | |
82 | retu rn idType; | |
83 | } | |
84 | ||
85 | @O verride | |
86 | pu blic Strin g getInter faceVersio n() | |
87 | { | |
88 | retu rn this.in terfaceVer sion; | |
89 | } | |
90 | ||
91 | @O verride | |
92 | pu blic Integ er getEntr iesReturne d(Federati onWorkItem Type[] tra nslatedRes ult) | |
93 | { | |
94 | retu rn transla tedResult == null ? 0 : transl atedResult .length; | |
95 | } | |
96 | ||
97 | @O verride | |
98 | pr otected St ring getMe thodParame terValuesS tring() | |
99 | { | |
100 | retu rn "for pa tient [" + getIdType () + "," + getPatien tId() + "] , cpt code [" + getC ptCode() | |
101 | + "] a t site [" + getRouti ngTokenStr ing() + "] "; | |
102 | } | |
103 | ||
104 | @O verride | |
105 | pr otected Cl ass<Federa tionWorkIt emType[]> getResultC lass() | |
106 | { | |
107 | retu rn Federat ionWorkIte mType[].cl ass; | |
108 | } | |
109 | ||
110 | @O verride | |
111 | pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField, String> g etTransact ionContext Fields() | |
112 | { | |
113 | Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = | |
114 | new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>(); | |
115 | ||
116 | tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.patient Id, getPat ientId()); | |
117 | ||
118 | retu rn transac tionContex tFields; | |
119 | } | |
120 | ||
121 | @O verride | |
122 | pu blic void setAdditio nalTransac tionContex tFields() | |
123 | { | |
124 | ||
125 | } | |
126 | ||
127 | @O verride | |
128 | pr otected Fe derationWo rkItemType [] transla teRouterRe sult(List< WorkItem> routerResu lt) | |
129 | th rows Trans lationExce ption | |
130 | { | |
131 | retu rn Federat ionRestTra nslator.tr anslateWor kItems(rou terResult) ; | |
132 | } | |
133 | ||
134 | pu blic Strin g getRouti ngTokenStr ing() | |
135 | { | |
136 | retu rn routing TokenStrin g; | |
137 | } | |
138 | ||
139 | pu blic Strin g getCptCo de() | |
140 | { | |
141 | retu rn cptCode ; | |
142 | } | |
143 | ||
144 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.