201. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:41 PM Central Standard 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.

201.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\HDIGManagementWebApp\main\src\java\gov\va\med\imaging\hdigmanagement\web UpdateAdminEmailServlet.java Mon Dec 4 21:35:02 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\HDIGManagementWebApp\main\src\java\gov\va\med\imaging\hdigmanagement\web UpdateAdminEmailServlet.java Mon Dec 4 22:00:48 2017 UTC

201.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 168
Changed 2 4
Inserted 0 0
Removed 0 0

201.3 Comparison options

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

201.4 Active regular expressions

No regular expressions were active.

201.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Apr  25, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
WERFEJ
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24  
  25    */
  26   package go v.va.med.i maging.hdi gmanagemen t.web;
  27  
  28   import gov .va.med.im aging.exch ange.busin ess.dicom. DicomServe rConfigura tion;
  29   import gov .va.med.im aging.faca de.configu ration.Fac adeConfigu rationFact ory;
  30   import gov .va.med.im aging.noti fications. Notificati onTypes;
  31   import gov .va.med.im aging.noti fications. email.Noti ficationEm ailConfigu ration;
  32  
  33   import jav a.io.IOExc eption;
  34  
  35   import jav ax.servlet .ServletEx ception;
  36   import jav ax.servlet .http.Http Servlet;
  37   import jav ax.servlet .http.Http ServletReq uest;
  38   import jav ax.servlet .http.Http ServletRes ponse;
  39  
  40   import org .apache.lo gging.log4 j.LogManag er;
  41   import org .apache.lo gging.log4 j.Logger;
  42  
  43   /**
  44    * @author         
WERFEJ
  45    *
  46    */
  47   public cla ss UpdateA dminEmailS ervlet
  48   extends Ht tpServlet
  49   {
  50           pr ivate stat ic final l ong serial VersionUID  = -185097 6585167762 873L;
  51           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Upda teAdminEma ilServlet. class);
  52  
  53           @O verride
  54           pr otected vo id doPost( HttpServle tRequest r equest, Ht tpServletR esponse re sponse)
  55           th rows Servl etExceptio n, IOExcep tion
  56           {
  57                    Stri ng action  = request. getParamet er("action ");
  58                    if ( action.equ als("Cance l"))
  59                    {
  60                             respon se.sendRed irect("../ ViewHDIGSt ats.jsp");
  61                    }
  62                    else
  63                    {
  64                             try
  65                             {
  66                                      String e mail = req uest.getPa rameter("e mail");
  67           
  68                                      // Updat e the emai l address  for the In validServi ceAccountC redentials  notificat ion
  69                                      // and s ave the co nfig file
  70                                      Notifica tionEmailC onfigurati on notific ationEmail Configurat ion = Noti ficationEm ailConfigu ration.get Configurat ion();
  71                                      notifica tionEmailC onfigurati on.setReci pientsForN otificatio nType(Noti ficationTy pes.Invali dServiceAc countCrede ntials, em ail);
  72                                      logger.i nfo("Updat ing DICOMS erverConfi guration w ith new ac cess and v erify code s");
  73                                      notifica tionEmailC onfigurati on.storeCo nfiguratio n();
  74                                      FacadeCo nfiguratio nFactory.g etConfigur ationFacto ry().clear Configurat ion(Notifi cationEmai lConfigura tion.class );
  75           
  76                                      response .sendRedir ect("../Vi ewHDIGStat s.jsp");
  77                             }
  78                             catch( Exception  ex)
  79                             {
  80                                      logger.e rror("Erro r updating  DICOM Ser ver Config uration, "  + ex.getM essage(),  ex);
  81                                      response .sendRedir ect("updat eAdminEmai l.jsp?erro r=Error up dating Adm inistrator  email add ress(es)." );
  82                             }
  83                    }
  84           }
  85  
  86   }