2. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/8/2018 10:11:21 AM Eastern 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.

2.1 Files compared

# Location File Last Modified
1 PRE_PPS-N_v3.0.1.zip\PS_PPS_common\src\main\java\gov\va\med\pharmacy\peps\common\email Email.java Fri Jan 12 15:43:14 2018 UTC
2 PRE_PPS-N_v3.0.1.zip\PS_PPS_common\src\main\java\gov\va\med\pharmacy\peps\common\email Email.java Tue Mar 6 18:34:00 2018 UTC

2.2 Comparison summary

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

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

2.4 Active regular expressions

No regular expressions were active.

2.5 Comparison detail

  1   package go v.va.med.p harmacy.pe ps.common. email;
  2  
  3   import jav a.util.Arr ays;
  4  
  5   import org .apache.co mmons.lang 3.StringUt ils;
  6  
  7  
  8  
  9   /**
  10    * @author         DNS
  11    * @versio n 1.0
  12    * 
  13    * Base cl ass for em ail object .
  14    * The pur pose of th is class i s have a b arebone em ail object  for sendi ng emails  without at tachments.
  15    *
  16    */
  17   public cla ss Email 
  18   {
  19           pr otected St ring[] to;
  20           pr otected St ring[] cc;
  21           pr otected St ring from;
  22           pr otected St ring subje ct; // sub ject of em ail.
  23           pr otected St ring email Message; / / body of  the email  message.
  24  
  25           pu blic Email () {
  26                    // i ntentional ly blank
  27           }
  28           
  29           pu blic Strin g[] getTo( ) {
  30                    retu rn to;
  31           }
  32           pu blic void  setTo(Stri ng[] to) {
  33                    this .to = to;
  34           }
  35           
  36           pu blic Strin g[] getCc( ) {
  37                    retu rn cc;
  38           }
  39  
  40           pu blic void  setCc(Stri ng[] cc) {
  41                    this .cc = cc;
  42           }
  43           
  44           pu blic boole an hasCc() {
  45                boolean  hasCcField  = false;
  46                //iterat e on each  Cc to see  if there i s an email  address i n Cc.
  47                if( getC c() != nul l && getCc ().length  > 0) {
  48                for (Str ing aCc :  getCc()) {
  49                    if ( !StringUti ls.isBlank (aCc)) {
  50                         hasCcField  = true;
  51                         break;
  52                    }
  53                }
  54                }
  55                return h asCcField;  
  56           }
  57           
  58           pu blic Strin g getFrom( ) {
  59                    retu rn from;
  60           }
  61           pu blic void  setFrom(St ring from)  {
  62                    this .from = fr om;
  63           }
  64           pu blic Strin g getSubje ct() {
  65                    retu rn subject ;
  66           }
  67           pu blic void  setSubject (String su bject) {
  68                    this .subject =  subject;
  69           }
  70           pu blic Strin g getEmail Message()  {
  71                    retu rn emailMe ssage;
  72           }
  73           pu blic void  setEmailMe ssage(Stri ng emailMe ssage) {
  74                    this .emailMess age = emai lMessage;
  75           }
  76           
  77           
  78  
  79           //  for loggi ng purpose s. usage e mailObj.to String() a fter popul ating the  object.
  80           @O verride
  81           pu blic Strin g toString () {
  82                    retu rn "Email  [to=" + Ar rays.toStr ing(to) +" , cc=" + A rrays.toSt ring(cc) +
  83                            ", from =" + from  +
  84                            ", subj ect=" + su bject +
  85                            ", emai lMessage="  + emailMe ssage + "] ";
  86           }
  87  
  88   }