Produced by Araxis Merge on 4/27/2018 2:59:09 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 | v2.0_Sprint_15_Build_5.zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller | RfaiLookupController.java | Tue Apr 24 14:49:54 2018 UTC |
| 2 | v2.0_Sprint_15_Build_5..zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller | RfaiLookupController.java | Thu Apr 26 15:04:34 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 110 |
| 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 org .apache.lo gging.log4 j.LogManag er; | |
| 7 | import org .apache.lo gging.log4 j.Logger; | |
| 8 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
| 9 | import org .springfra mework.htt p.HttpStat us; | |
| 10 | import org .springfra mework.htt p.Response Entity; | |
| 11 | import org .springfra mework.web .bind.anno tation.Pos tMapping; | |
| 12 | import org .springfra mework.web .bind.anno tation.Req uestBody; | |
| 13 | import org .springfra mework.web .bind.anno tation.Req uestMappin g; | |
| 14 | import org .springfra mework.web .bind.anno tation.Req uestParam; | |
| 15 | import org .springfra mework.web .bind.anno tation.Res tControlle r; | |
| 16 | ||
| 17 | import gov .va.med.ar s.exceptio ns.Generic Exception; | |
| 18 | import gov .va.med.ar s.model.re quest.Rfai LookupRequ est; | |
| 19 | import gov .va.med.ar s.model.re sponse.Gen ericRespon se; | |
| 20 | import gov .va.med.ar s.service. IRfaiLooku pService; | |
| 21 | ||
| 22 | /** | |
| 23 | * @author PI I
|
|
| 24 | * | |
| 25 | */ | |
| 26 | @RestContr oller | |
| 27 | @RequestMa pping("api /v1/search Rfai") | |
| 28 | public cla ss RfaiLoo kupControl ler { | |
| 29 | ||
| 30 | pr ivate stat ic final L ogger logg er = LogMa nager.getL ogger(Rfai LookupCont roller.cla ss); | |
| 31 | ||
| 32 | @A utowired | |
| 33 | IR faiLookupS ervice loo kupService ; | |
| 34 | /* * | |
| 35 | * @throws G enericExce ption | |
| 36 | * | |
| 37 | * / | |
| 38 | @P ostMapping (value = " /search") | |
| 39 | pu blic Respo nseEntity< ?> getRfai LookupCont roller(@Re questBody RfaiLookup Request rf aiLookupRe quest, @Re questParam (value = " advSearch" , required = false) boolean ad vSearch) t hrows Gene ricExcepti on { | |
| 40 | //lo okupServic e.getRfaiS earchResul ts(rfaiLoo kupRequest ); | |
| 41 | try { | |
| 42 | if(!ad vSearch) { | |
| 43 | GenericR esponse se archRespon se = looku pService.g etRfaiSimp leSearchRe sults(rfai LookupRequ est); | |
| 44 | return n ew Respons eEntity<>( searchResp onse, Http Status.OK) ; | |
| 45 | } else { | |
| 46 | GenericR esponse se archRespon se = looku pService.g etRfaiAdvR esults(rfa iLookupReq uest); | |
| 47 | return n ew Respons eEntity<>( searchResp onse, Http Status.OK) ; | |
| 48 | } | |
| 49 | } ca tch (Excep tion e) { | |
| 50 | logger .error( | |
| 51 | "RfaiLooku pControlle r:getRfaiL ookupContr oller() ex ception oc cured " + e.getMessa ge()); | |
| 52 | throw e; | |
| 53 | } | |
| 54 | } | |
| 55 | ||
| 56 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.