155. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:12 AM 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.

155.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\mail ConfigurableMailService.java Wed May 29 15:26:02 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\mail ConfigurableMailService.java Mon Jun 10 19:27:47 2019 UTC

155.2 Comparison summary

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

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

155.4 Active regular expressions

No regular expressions were active.

155.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2004 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4   // Package
  5   package go v.va.med.f w.mail;
  6  
  7   // Java cl asses
  8   import jav a.io.Input Stream;
  9  
  10   import jav ax.mail.in ternet.Mim eMessage;
  11  
  12   import org .apache.co mmons.lang .Validate;
  13   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  14   import org .springfra mework.bea ns.factory .annotatio n.Qualifie r;
  15   import org .springfra mework.cor e.io.Resou rce;
  16   import org .springfra mework.mai l.MailExce ption;
  17   import org .springfra mework.mai l.SimpleMa ilMessage;
  18   import org .springfra mework.mai l.javamail .MimeMessa gePreparat or;
  19   import org .springfra mework.ste reotype.Re pository;
  20   import org .springfra mework.ste reotype.Se rvice;
  21  
  22   import gov .va.med.fw .service.A bstractCom ponent;
  23  
  24   /**
  25    * Allow f or injecti on of spec ific concr ete mail s ervice eit her synchr onous or
  26    * asynchr onous serv ice. This  service is  recommend ed to be u sed as a p ublic
  27    * interfa ce to appl ication se rvices. </ br>
  28    * 
  29    * Project : Framewor k</br> Cre ated on: 1 0:55:55 AM  </br>
  30    * 
  31    * @author   DN S
  32    */
  33   @Service
  34   public cla ss Configu rableMailS ervice ext ends Abstr actCompone nt impleme nts MailSe rvice {
  35  
  36           /* *
  37            *  An instan ce of seri alVersionU ID
  38            * /
  39           pr ivate stat ic final l ong serial VersionUID  = 8735063 9722574219 90L;
  40  
  41           /* *
  42            *  An instan ce of mail Service
  43            * /
  44           @A utowired
  45           @Q ualifier(" synchronou sMailServi ce")
  46           pr ivate Mail Service ma ilService  = null;
  47  
  48           /* *
  49            *  A default  construct or
  50            * /
  51           pu blic Confi gurableMai lService()  {
  52                    supe r();
  53           }
  54  
  55           /* *
  56            *  @param ma ilService
  57            *              The mail Service to  set.
  58            * /
  59           pu blic void  setMailSer vice(MailS ervice mai lService)  {
  60                    this .mailServi ce = mailS ervice;
  61           }
  62  
  63           /* *
  64            *  @see gov. va.med.fw. service.Ab stractComp onent#afte rPropertie sSet()
  65            * /
  66           pu blic void  afterPrope rtiesSet()  throws Ex ception {
  67                    supe r.afterPro pertiesSet ();
  68                    Vali date.notNu ll(this.ma ilService,  "A mail s ervice mus t be confi gured");
  69           }
  70  
  71           /* *
  72            *  @see org. springfram ework.mail .javamail. JavaMailSe nder#creat eMimeMessa ge()
  73            * /
  74           pu blic MimeM essage cre ateMimeMes sage() {
  75                    retu rn mailSer vice.creat eMimeMessa ge();
  76           }
  77  
  78           /* *
  79            *  @see org. springfram ework.mail .javamail. JavaMailSe nder#creat eMimeMessa ge(java.io .InputStre am)
  80            * /
  81           pu blic MimeM essage cre ateMimeMes sage(Input Stream arg 0) throws  MailExcept ion {
  82                    retu rn mailSer vice.creat eMimeMessa ge(arg0);
  83           }
  84  
  85           /* *
  86            *  @see org. springfram ework.mail .javamail. JavaMailSe nder#send( javax.mail .internet. MimeMessag e)
  87            * /
  88           pu blic void  send(MimeM essage arg 0) throws  MailExcept ion {
  89                    mail Service.se nd(arg0);
  90           }
  91  
  92           /* *
  93            *  @see org. springfram ework.mail .javamail. JavaMailSe nder#send( javax.mail .internet. MimeMessag e[])
  94            * /
  95           pu blic void  send(MimeM essage[] a rg0) throw s MailExce ption {
  96                    mail Service.se nd(arg0);
  97           }
  98  
  99           /* *
  100            *  @see org. springfram ework.mail .javamail. JavaMailSe nder#send( org.spring framework. mail.javam ail.MimeMe ssagePrepa rator)
  101            * /
  102           pu blic void  send(MimeM essagePrep arator arg 0) throws  MailExcept ion {
  103                    mail Service.se nd(arg0);
  104           }
  105  
  106           /* *
  107            *  @see org. springfram ework.mail .javamail. JavaMailSe nder#send( org.spring framework. mail.javam ail.MimeMe ssagePrepa rator[])
  108            * /
  109           pu blic void  send(MimeM essagePrep arator[] a rg0) throw s MailExce ption {
  110                    mail Service.se nd(arg0);
  111           }
  112  
  113           /* *
  114            *  @see org. springfram ework.mail .MailSende r#send(org .springfra mework.mai l.SimpleMa ilMessage)
  115            * /
  116           pu blic void  send(Simpl eMailMessa ge arg0) t hrows Mail Exception  {
  117                    mail Service.se nd(arg0);
  118           }
  119  
  120           /* *
  121            *  @see org. springfram ework.mail .MailSende r#send(org .springfra mework.mai l.SimpleMa ilMessage[ ])
  122            * /
  123           pu blic void  send(Simpl eMailMessa ge[] arg0)  throws Ma ilExceptio n {
  124                    mail Service.se nd(arg0);
  125           }
  126  
  127           /* *
  128            *  @see gov. va.med.fw. mail.MailS ervice#sen d(java.lan g.String,
  129            *       org. springfram ework.core .io.Resour ce,
  130            *       org. springfram ework.mail .SimpleMai lMessage)
  131            * /
  132           pu blic void  send(Strin g text, Re source res ource, Sim pleMailMes sage templ ate)
  133                             throws  MailExcep tion {
  134                    mail Service.se nd(text, r esource, t emplate);
  135           }
  136  
  137           /* *
  138            *  @see gov. va.med.fw. mail.MailS ervice#sen d(java.lan g.String,
  139            *       org. springfram ework.mail .SimpleMai lMessage)
  140            * /
  141           pu blic void  send(Strin g text, Si mpleMailMe ssage temp late) thro ws MailExc eption {
  142                    mail Service.se nd(text, t emplate);
  143           }
  144  
  145           /* *
  146            *  @see gov. va.med.fw. mail.MailS ervice#sen d(java.lan g.String,
  147            *       java .lang.Stri ng, org.sp ringframew ork.mail.S impleMailM essage)
  148            * /
  149           pu blic void  send(Strin g text, St ring attac hment, Sim pleMailMes sage templ ate)
  150                             throws  MailExcep tion {
  151                    mail Service.se nd(text, a ttachment,  template) ;
  152           }
  153  
  154           /* *
  155            *  @see gov. va.med.fw. mail.MailS ervice#sen d(java.lan g.String,
  156            *       org. springfram ework.core .io.Resour ce,
  157            *       org. springfram ework.mail .SimpleMai lMessage,  java.lang. String)
  158            * /
  159           pu blic void  send(Strin g text, Re source res ource, Sim pleMailMes sage templ ate, Strin g contentT ype)
  160                             throws  MailExcep tion {
  161                    mail Service.se nd(text, r esource, t emplate, c ontentType );
  162           }
  163   }