Produced by Araxis Merge on 4/2/2019 1:06:54 PM 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\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller | RfaiSearchSubmissionController.java | Wed Mar 27 19:21:11 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller | RfaiSearchSubmissionController.java | Thu Mar 28 17:50:40 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 114 |
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.a rs.control ler; | |
5 | ||
6 | import jav ax.validat ion.Valid; | |
7 | ||
8 | import org .apache.lo gging.log4 j.LogManag er; | |
9 | import org .apache.lo gging.log4 j.Logger; | |
10 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
11 | import org .springfra mework.htt p.HttpStat us; | |
12 | import org .springfra mework.htt p.Response Entity; | |
13 | import org .springfra mework.web .bind.anno tation.Pos tMapping; | |
14 | import org .springfra mework.web .bind.anno tation.Req uestBody; | |
15 | import org .springfra mework.web .bind.anno tation.Req uestMappin g; | |
16 | import org .springfra mework.web .bind.anno tation.Req uestParam; | |
17 | import org .springfra mework.web .bind.anno tation.Res tControlle r; | |
18 | ||
19 | import gov .va.med.ar s.exceptio ns.Generic Exception; | |
20 | import gov .va.med.ar s.model.re quest.Rfai LookupRequ est; | |
21 | import gov .va.med.ar s.model.re sponse.Gen ericRespon se; | |
22 | import gov .va.med.ar s.service. IRfaiSearc hSubmissio nService; | |
23 | ||
24 | /** | |
25 | * @author
|
|
26 | * | |
27 | */ | |
28 | @RestContr oller | |
29 | @RequestMa pping("api /v1/search Rfai") | |
30 | public cla ss RfaiSea rchSubmiss ionControl ler { | |
31 | ||
32 | pr ivate stat ic final L ogger logg er = LogMa nager.getL ogger(Rfai SearchSubm issionCont roller.cla ss); | |
33 | ||
34 | @A utowired | |
35 | IR faiSearchS ubmissionS ervice loo kupService ; | |
36 | /* * | |
37 | * @throws G enericExce ption | |
38 | * | |
39 | * / | |
40 | @P ostMapping (value = " /search") | |
41 | pu blic Respo nseEntity< ?> getRfai LookupCont roller(@Va lid @Reque stBody Rfa iLookupReq uest rfaiL ookupReque st, @Reque stParam(va lue = "adv Search", r equired = false) boo lean advSe arch) thro ws Generic Exception { | |
42 | //lo okupServic e.getRfaiS earchResul ts(rfaiLoo kupRequest ); | |
43 | try { | |
44 | if(!ad vSearch) { | |
45 | GenericR esponse se archRespon se = looku pService.g etRfaiSimp leSearchRe sults(rfai LookupRequ est); | |
46 | return n ew Respons eEntity<>( searchResp onse, Http Status.OK) ; | |
47 | } else { | |
48 | GenericR esponse se archRespon se = looku pService.g etRfaiAdvR esults(rfa iLookupReq uest); | |
49 | return n ew Respons eEntity<>( searchResp onse, Http Status.OK) ; | |
50 | } | |
51 | } ca tch (Excep tion e) { | |
52 | logger .error( | |
53 | "RfaiLooku pControlle r:getRfaiL ookupContr oller() ex ception oc cured " + e.getMessa ge()); | |
54 | throw e; | |
55 | } | |
56 | } | |
57 | ||
58 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.