35. EPMO Open Source Coordination Office Redaction File Detail Report

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

35.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\welcomemessage WelcomeMessageTag.java Mon Dec 4 21:35:32 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\welcomemessage WelcomeMessageTag.java Mon Dec 4 21:57:18 2017 UTC

35.2 Comparison summary

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

35.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

35.4 Active regular expressions

No regular expressions were active.

35.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: Jan  31, 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.exc hange.busi ness.tagli b.welcomem essage;
  27  
  28   import jav a.util.UUI D;
  29  
  30   import gov .va.med.Ro utingToken ;
  31   import gov .va.med.ex ceptions.R outingToke nFormatExc eption;
  32   import gov .va.med.im aging.Base WebFacadeR outer;
  33   import gov .va.med.im aging.core .FacadeRou terUtility ;
  34   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  35   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  36   import gov .va.med.im aging.exch ange.Routi ngTokenHel per;
  37   import gov .va.med.im aging.exch ange.busin ess.Welcom eMessage;
  38   import gov .va.med.im aging.tran sactioncon text.Trans actionCont ext;
  39   import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ;
  40  
  41   import jav ax.servlet .ServletRe quest;
  42   import jav ax.servlet .jsp.JspEx ception;
  43   import jav ax.servlet .jsp.tagex t.BodyTag;
  44   import jav ax.servlet .jsp.tagex t.BodyTagS upport;
  45  
  46   import org .apache.lo gging.log4 j.LogManag er;
  47   import org .apache.lo gging.log4 j.Logger;;
  48  
  49   /**
  50    * @author         
WERFEJ
  51    *
  52    */
  53   public cla ss Welcome MessageTag
  54   extends Bo dyTagSuppo rt
  55   {
  56           pr ivate stat ic final l ong serial VersionUID  = 8678407 2695154222 54L;
  57           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Welc omeMessage Tag.class) ;
  58           
  59           pr ivate Stri ng siteNum ber = null ;
  60           pr ivate Welc omeMessage  welcomeMe ssage = nu ll;
  61           pr ivate Stri ng errorMe ssage = nu ll;
  62           
  63           /* *
  64            *  @return t he siteNum ber
  65            * /
  66           pu blic Strin g getSiteN umber()
  67           {
  68                    retu rn siteNum ber;
  69           }
  70  
  71           /* *
  72            *  @param si teNumber t he siteNum ber to set
  73            * /
  74           pu blic void  setSiteNum ber(String  siteNumbe r)
  75           {
  76                    this .siteNumbe r = siteNu mber;
  77           }
  78  
  79           /* *
  80            *  @return t he errorMe ssage
  81            * /
  82           pu blic Strin g getError Message()
  83           {
  84                    retu rn errorMe ssage;
  85           }
  86  
  87           /* *
  88            *  @return t he welcome Message
  89            * /
  90           pu blic Welco meMessage  getWelcome Message()
  91           {
  92                    retu rn welcome Message;
  93           }
  94  
  95           /*  (non-Java doc)
  96            *  @see java x.servlet. jsp.tagext .BodyTagSu pport#doAf terBody()
  97            * /
  98           @O verride
  99           pu blic int d oAfterBody () 
  100           th rows JspEx ception
  101           {
  102                    retu rn BodyTag .SKIP_BODY ;
  103           }
  104  
  105           /*  (non-Java doc)
  106            *  @see java x.servlet. jsp.tagext .BodyTagSu pport#doEn dTag()
  107            * /
  108           @O verride
  109           pu blic int d oEndTag() 
  110           th rows JspEx ception
  111           {
  112                    retu rn BodyTag .EVAL_PAGE ;
  113           }
  114  
  115           /*  (non-Java doc)
  116            *  @see java x.servlet. jsp.tagext .BodyTagSu pport#doSt artTag()
  117            * /
  118           @O verride
  119           pu blic int d oStartTag(
  120           th rows JspEx ception
  121           {
  122                    this .errorMess age = null ;
  123                    this .welcomeMe ssage = nu ll;
  124                    Tran sactionCon text trans actionCont ext = Tran sactionCon textFactor y.get();
  125                    tran sactionCon text.setRe questType( "getWelcom eMessage") ;
  126                    tran sactionCon text.setTr ansactionI d(UUID.ran domUUID(). toString() );
  127                    
  128                    Serv letRequest  servletRe quest = th is.pageCon text.getRe quest();
  129                    tran sactionCon text.setOr iginatingA ddress(ser vletReques t.getRemot eAddr() +  ":" + serv letRequest .getRemote Port());
  130                    try
  131                    {
  132                             Routin gToken rou tingToken  = RoutingT okenHelper .createSit eAppropria teRoutingT oken(getSi teNumber() ); 
  133                             BaseWe bFacadeRou ter router  = FacadeR outerUtili ty.getFaca deRouter ( BaseWebFac adeRouter. class);
  134                             this.w elcomeMess age = rout er.getCach edWelcomeM essage(rou tingToken) ;                               
  135                    } 
  136                    catc h (MethodE xception m X)
  137                    {
  138                             errorM essage = " MethodExce ption retr ieving wel come messa ge, " + mX .getMessag e();
  139                             logger .error (er rorMessage , mX);
  140                    //th row new Js pException (errorMess age);                   
  141                    } 
  142                    catc h (Connect ionExcepti on cX)
  143                    {
  144                             errorM essage = " Connection Exception  retrieving  welcome m essage, "  + cX.getMe ssage();
  145                             logger .error (er rorMessage , cX);
  146                    //th row new Js pException (errorMess age);
  147                    } 
  148                    catc h (Routing TokenForma tException  rtfX)
  149                    {
  150                             errorM essage = " RoutingTok enFormatEx ception re trieving w elcome mes sage, " +  rtfX.getMe ssage();
  151                             logger .error (er rorMessage , rtfX);
  152                    //th row new Js pException (errorMess age);
  153                    }
  154                    catc h(Exceptio n ex)
  155                    {
  156                             errorM essage = " Exception  retrieving  welcome m essage, "  + ex.getMe ssage();
  157                             logger .error (er rorMessage , ex);
  158                    //th row new Js pException (errorMess age);
  159                    }
  160                    
  161                    retu rn (this.w elcomeMess age == nul l && this. errorMessa ge == null ) ? BodyTa g.SKIP_BOD Y : BodyTa g.EVAL_BOD Y_INCLUDE;  
  162           }
  163  
  164   }