4141. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:18 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.

4141.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:18 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-svc-consent-mgmt\src\main\java\gov\va\nvap\svc\consentmgmt\stub\dao MailLogDAO.java Fri Apr 21 20:03:30 2017 UTC

4141.2 Comparison summary

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

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

4141.4 Active regular expressions

No regular expressions were active.

4141.5 Comparison detail

        1   package go v.va.nvap. svc.consen tmgmt.stub .dao;
        2  
        3   import gov .va.nvap.s vc.consent mgmt.stub. data.MailL og;
        4   import jav a.util.Arr ayList;
        5   import jav a.util.Lis t;
        6   import jav ax.persist ence.Entit yManager;
        7   import jav ax.persist ence.NoRes ultExcepti on;
        8   import jav ax.persist ence.Persi stenceCont ext;
        9   import jav ax.persist ence.Query ;
        10   import org .springfra mework.tra nsaction.a nnotation. Transactio nal;
        11  
        12   /**
        13    *
        14    * @author  Johann So nnenberg
        15    */
        16   public cla ss MailLog DAO {
        17       @Persi stenceCont ext
        18       privat e EntityMa nager em;
        19  
        20       public  void setE ntityManag er(EntityM anager ent ityManager ) {
        21           th is.em = en tityManage r;
        22       }
        23       
        24       @Trans actional
        25       public  Long crea te(MailLog  m) throws  Exception  {
        26           tr y {
        27                this.em. persist(m) ;
        28           }  catch (fin al Excepti on ex) {
        29                throw ex ;
        30           }
        31           
        32           re turn m.get MailLogId( );
        33       }
        34       
        35       @Trans actional
        36       public  List<Mail Log> findB yConsentDi rId(String  consentDi rId) {
        37           tr y {
        38                final Qu ery q = th is.em.crea teQuery("S ELECT m FR OM MailLog  m WHERE m .consentDi rId = :con sentDirId  ORDER BY m .mailLogId  DESC");
        39                q.setPar ameter("co nsentDirId ", Long.pa rseLong(co nsentDirId ));
        40                
        41                return ( List<MailL og>) q.get ResultList ();
        42           }  catch (fin al NoResul tException  nre) {
        43                return n ew ArrayLi st<MailLog >();
        44           }
        45       }
        46       
        47       @Trans actional
        48       public  List<Mail Log> findB yDelayedCo nsentId(St ring delay edConsentI d) {
        49           tr y {
        50                final Qu ery q = th is.em.crea teQuery("S ELECT m FR OM MailLog  m WHERE m .delayedCo nsentId =  :delayedCo nsentId OR DER BY m.m ailLogId D ESC");
        51                q.setPar ameter("de layedConse ntId", Lon g.parseLon g(delayedC onsentId)) ;
        52                
        53                return ( List<MailL og>) q.get ResultList ();
        54           }  catch (fin al NoResul tException  nre) {
        55                return n ew ArrayLi st<MailLog >();
        56           }
        57       }
        58   }