Produced by Araxis Merge on 6/9/2017 3:51:27 PM Eastern 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 | Fri Jun 9 19:51:27 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\java\gov\va\nvap\web\report | FacilitiesDialog.java | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 60 |
| 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.nvap. web.report ; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.vali dation.Nul lChecker; | |||||
| 4 | import gov .va.nvap.w eb.dao.Fac ilityDAO; | |||||
| 5 | import gov .va.nvap.w eb.dao.Vis nDAO; | |||||
| 6 | import gov .va.nvap.w eb.facilit y.Facility ; | |||||
| 7 | import gov .va.nvap.w eb.visn.Vi sn; | |||||
| 8 | import jav a.io.IOExc eption; | |||||
| 9 | import jav a.text.Par seExceptio n; | |||||
| 10 | import jav a.util.Arr ayList; | |||||
| 11 | import jav a.util.Lis t; | |||||
| 12 | import jav ax.servlet .ServletEx ception; | |||||
| 13 | import jav ax.servlet .http.Http ServletReq uest; | |||||
| 14 | import jav ax.servlet .http.Http ServletRes ponse; | |||||
| 15 | import jav ax.servlet .http.Http Session; | |||||
| 16 | ||||||
| 17 | /** | |||||
| 18 | * | |||||
| 19 | * @author Irakli Ka kushadze | |||||
| 20 | * @since 05/16/2016 | |||||
| 21 | */ | |||||
| 22 | public cla ss Facilit iesDialog extends go v.va.nvap. web.app.Re sponseDisp atcherHttp Servlet { | |||||
| 23 | ||||||
| 24 | @Overr ide | |||||
| 25 | protec ted void u nspecified (HttpServl etRequest request, H ttpServlet Response r esponse) t hrows Serv letExcepti on, IOExce ption { | |||||
| 26 | th row new Un supportedO perationEx ception("N ot support ed yet."); | |||||
| 27 | } | |||||
| 28 | ||||||
| 29 | public void getF acilitiesD ialog(Http ServletReq uest reque st, HttpSe rvletRespo nse respon se) | |||||
| 30 | th rows Servl etExceptio n, IOExcep tion, Pars eException { | |||||
| 31 | fi nal HttpSe ssion sess ion = requ est.getSes sion(false ); | |||||
| 32 | Li st<Facilit y> facilit yEntities = getFacil ityDAO().f indAllSort ByVisn(); | |||||
| 33 | Li st<Facilit y> facilit ies = new ArrayList< Facility>( ); | |||||
| 34 | Li st<Facilit y> station s = new Ar rayList<Fa cility>(); | |||||
| 35 | Li st<Visn> v isns = get VisnDAO(). findAll(); | |||||
| 36 | ||||||
| 37 | fo r (Facilit y facility : facilit yEntities) { | |||||
| 38 | if (!Nul lChecker.i sNullOrEmp ty(facilit y.getFacil ityStation ()) && fac ility.getF acilitySta tion().tri m().length () == 3) { | |||||
| 39 | faci lities.add (facility) ; | |||||
| 40 | } else { | |||||
| 41 | stat ions.add(f acility); | |||||
| 42 | } | |||||
| 43 | } | |||||
| 44 | ||||||
| 45 | se ssion.setA ttribute(" visns", vi sns); | |||||
| 46 | se ssion.setA ttribute(" facilities ", facilit ies); | |||||
| 47 | se ssion.setA ttribute(" stations", stations) ; | |||||
| 48 | ||||||
| 49 | th is.forward (request, response, "getFacili tiesDialog Ajax"); | |||||
| 50 | } | |||||
| 51 | ||||||
| 52 | privat e Facility DAO getFac ilityDAO() { | |||||
| 53 | re turn this. getBean("F acilityDAO ", Facilit yDAO.class ); | |||||
| 54 | } | |||||
| 55 | ||||||
| 56 | privat e VisnDAO getVisnDAO () { | |||||
| 57 | re turn this. getBean("V isnDAO", V isnDAO.cla ss); | |||||
| 58 | } | |||||
| 59 | ||||||
| 60 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.