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 | FederationExternalPackageDeleteWorkItemCommand.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 | FederationExternalPackageDeleteWorkItemCommand.java | Tue Mar 19 12:03:38 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 234 |
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.trans lation.exc eptions.Tr anslationE xception; | |
11 | import gov .va.med.im aging.fede ration.Fed erationRou ter; | |
12 | import gov .va.med.im aging.fede ration.com mands.Abst ractFedera tionComman d; | |
13 | import gov .va.med.im aging.fede ration.res t.translat or.Federat ionRestTra nslator; | |
14 | import gov .va.med.im aging.rest .types.Res tBooleanRe turnType; | |
15 | import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField; | |
16 | ||
17 | import jav a.util.Map ; | |
18 | ||
19 | /** | |
20 | * @author DNS tjahjb | |
21 | * | |
22 | */ | |
23 | public cla ss Federat ionExterna lPackageDe leteWorkIt emCommand | |
24 | extends Ab stractFede rationComm and<Boolea n, RestBoo leanReturn Type> | |
25 | { | |
26 | pr ivate fina l String r outingToke nString; | |
27 | pr ivate fina l String i d; | |
28 | pr ivate fina l String i nterfaceVe rsion; | |
29 | ||
30 | pu blic Feder ationExter nalPackage DeleteWork ItemComman d( | |
31 | String routingTo kenString, | |
32 | String id, | |
33 | String interface Version) | |
34 | { | |
35 | supe r("deleteW orkItem"); | |
36 | this .routingTo kenString = routingT okenString ; | |
37 | this .id = id; | |
38 | this .interface Version = interfaceV ersion; | |
39 | } | |
40 | ||
41 | @O verride | |
42 | pr otected Bo olean exec uteRouterC ommand() | |
43 | th rows Metho dException , Connecti onExceptio n | |
44 | { | |
45 | try | |
46 | { | |
47 | Federa tionRouter router = getRouter( ); | |
48 | Routin gToken rou tingToken = Federati onRestTran slator.tra nslateRout ingToken(g etRoutingT okenString ()); | |
49 | Boolea n ok = rou ter.delete RemoteWork Item( | |
50 | routingTok en, | |
51 | getId()); | |
52 | ||
53 | // getLog ger().info (getMethod Name() + " , transact ion(" + ge tTransacti onId() + " ), deleteW orkItem = " | |
54 | // + ok); | |
55 | ||
56 | return ok; | |
57 | } | |
58 | catc h(RoutingT okenFormat Exception rtfX) | |
59 | { | |
60 | // mus t throw ne w instance of except ion or els e Jersey t ranslates it to a 50 0 error | |
61 | throw new Connec tionExcept ion(rtfX); | |
62 | } | |
63 | } | |
64 | ||
65 | @O verride | |
66 | pu blic Strin g getInter faceVersio n() | |
67 | { | |
68 | retu rn this.in terfaceVer sion; | |
69 | } | |
70 | ||
71 | ||
72 | @O verride | |
73 | pr otected St ring getMe thodParame terValuesS tring() | |
74 | { | |
75 | retu rn "for wo rk item id [" + getI d() | |
76 | + "] a t site [" + getRouti ngTokenStr ing() + "] "; | |
77 | } | |
78 | ||
79 | @O verride | |
80 | pr otected Cl ass<RestBo oleanRetur nType> get ResultClas s() | |
81 | { | |
82 | retu rn RestBoo leanReturn Type.class ; | |
83 | } | |
84 | ||
85 | @O verride | |
86 | pu blic void setAdditio nalTransac tionContex tFields() | |
87 | { | |
88 | ||
89 | } | |
90 | ||
91 | pu blic Strin g getRouti ngTokenStr ing() | |
92 | { | |
93 | retu rn routing TokenStrin g; | |
94 | } | |
95 | ||
96 | ||
97 | pu blic Strin g getId() | |
98 | { | |
99 | retu rn id; | |
100 | } | |
101 | ||
102 | @O verride | |
103 | pr otected Re stBooleanR eturnType translateR outerResul t(Boolean routerResu lt) | |
104 | throws Translati onExceptio n, MethodE xception { | |
105 | retu rn new Res tBooleanRe turnType(r outerResul t); | |
106 | } | |
107 | ||
108 | @O verride | |
109 | pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField, String> g etTransact ionContext Fields() { | |
110 | retu rn null; | |
111 | } | |
112 | ||
113 | @O verride | |
114 | pu blic Integ er getEntr iesReturne d(RestBool eanReturnT ype transl atedResult ) { | |
115 | retu rn 1; | |
116 | } | |
117 | ||
118 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.