Produced by Araxis Merge on 6/9/2017 3:51:26 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:26 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\patient | ExpiringConsentNotification.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 | 67 |
| 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.patien t; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.w eb.helper. privacy.Co nsentManag ementHelpe r; | |||||
| 4 | ||||||
| 5 | import jav a.io.IOExc eption; | |||||
| 6 | import jav a.util.Map ; | |||||
| 7 | ||||||
| 8 | import jav ax.servlet .ServletEx ception; | |||||
| 9 | import jav ax.servlet .http.Http ServletReq uest; | |||||
| 10 | import jav ax.servlet .http.Http ServletRes ponse; | |||||
| 11 | import jav ax.servlet .http.Http Session; | |||||
| 12 | ||||||
| 13 | /** | |||||
| 14 | * @author Nusrath M ohammed | |||||
| 15 | */ | |||||
| 16 | public cla ss Expirin gConsentNo tification extends g ov.va.nvap .web.app.R esponseDis patcherHtt pServlet { | |||||
| 17 | ||||||
| 18 | /* * | |||||
| 19 | * Serial UI D. | |||||
| 20 | * / | |||||
| 21 | pr ivate stat ic final l ong serial VersionUID = -235278 4389624881 604L; | |||||
| 22 | ||||||
| 23 | pu blic Conse ntManageme ntHelper g etCmsHelpe r() { | |||||
| 24 | fina l ConsentM anagementH elper cmsH elper = th is.getBean ("cmsHelpe r", | |||||
| 25 | ConsentM anagementH elper.clas s); | |||||
| 26 | retu rn cmsHelp er; | |||||
| 27 | } | |||||
| 28 | ||||||
| 29 | public Map<Strin g, String> getPreLoa dValues() { | |||||
| 30 | fi nal Map<St ring, Stri ng> values = this.ge tCmsHelper ().getExpi ringConsen tConfigura tion(); | |||||
| 31 | St ring conve rtedEmails = values. get("email Addresses" ); | |||||
| 32 | // Convert ' ;' to line breaks fo r display purposes | |||||
| 33 | if (converte dEmails != null && ! convertedE mails.isEm pty()) { | |||||
| 34 | converte dEmails = convertedE mails.repl aceAll(";" , "\n"); | |||||
| 35 | } | |||||
| 36 | va lues.put(" emailAddre sses", con vertedEmai ls); | |||||
| 37 | re turn value s; | |||||
| 38 | } | |||||
| 39 | ||||||
| 40 | pu blic void save(final HttpServl etRequest request, | |||||
| 41 | final HttpServle tResponse response) throws Ser vletExcept ion, | |||||
| 42 | IOExce ption { | |||||
| 43 | ||||||
| 44 | fina l String d istributio nList = | |||||
| 45 | requ est.getPar ameter("di stribution List").rep laceAll("\ \s+", ";") ; | |||||
| 46 | fina l String m axDaysToEx piration = request.g etParamete r("maxDays ToExpirati on"); | |||||
| 47 | fina l String f requency = request.g etParamete r("frequen cy"); | |||||
| 48 | ||||||
| 49 | this .getCmsHel per().upda teExpiring ConsentCon figuration | |||||
| 50 | (fre quency, Lo ng.valueOf (maxDaysTo Expiration ), distrib utionList) ; | |||||
| 51 | ||||||
| 52 | this .forward(r equest, re sponse, "s uccess"); | |||||
| 53 | ||||||
| 54 | } | |||||
| 55 | ||||||
| 56 | @O verride | |||||
| 57 | pr otected vo id unspeci fied(final HttpServl etRequest request, | |||||
| 58 | final HttpServle tResponse response) throws Ser vletExcept ion, | |||||
| 59 | IOExce ption { | |||||
| 60 | fina l HttpSess ion sessio n = reques t.getSessi on(false); | |||||
| 61 | ||||||
| 62 | sess ion.setAtt ribute("co nfiguratio nValues", this.getPr eLoadValue s()); | |||||
| 63 | ||||||
| 64 | this .forward(r equest, re sponse, "s how"); | |||||
| 65 | } | |||||
| 66 | ||||||
| 67 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.