3889. EPMO Open Source Coordination Office Redaction File Detail Report

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

3889.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:50:57 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-server\src\main\java\gov\va\nvap\server\service\audit AuditServiceImpl.java Fri Apr 21 20:03:28 2017 UTC

3889.2 Comparison summary

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

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

3889.4 Active regular expressions

No regular expressions were active.

3889.5 Comparison detail

        1   package go v.va.nvap. server.ser vice.audit ;
        2  
        3   import gov .va.nvap.p rivacy.Con sentType;
        4   import gov .va.nvap.s ervice.aud it.AuditEx ception;
        5   import gov .va.nvap.s ervice.aud it.AuditSe rvice;
        6   import gov .va.nvap.s ervice.aud it.data.Co nsentAudit ;
        7   import gov .va.nvap.s ervice.aud it.data.Us erAccessAu dit;
        8   import gov .va.nvap.s vc.consent mgmt.stub. data.Autho rity;
        9  
        10   import jav ax.persist ence.Entit yManager;
        11   import jav ax.persist ence.NoRes ultExcepti on;
        12   import jav ax.persist ence.Persi stenceCont ext;
        13   import jav ax.persist ence.Query ;
        14  
        15   public cla ss AuditSe rviceImpl  implements  AuditServ ice {
        16  
        17           @P ersistence Context()
        18           pr ivate Enti tyManager  entityMana ger;
        19  
        20           pu blic Audit ServiceImp l() {
        21           }
        22  
        23           @O verride
        24           pu blic void  auditConse nt(final C onsentAudi t consentA udit)
        25                             throws  AuditExce ption {
        26                    this .entityMan ager.persi st(consent Audit);
        27  
        28           }
        29  
        30           @O verride
        31           pu blic void  auditUserA ccess(fina l UserAcce ssAudit us erAccessAu dit)
        32                             throws  AuditExce ption {
        33                    this .entityMan ager.persi st(userAcc essAudit);
        34           }
        35  
        36           pu blic void  setEntityM anager(fin al EntityM anager ent ityManager ) {
        37                    this .entityMan ager = ent ityManager ;
        38           }
        39  
        40       @Overr ide
        41       public  ConsentAu dit getLat estAudit(S tring pati entID, Str ing consen tType) {
        42           tr y {
        43                             final  Query q =  this.entit yManager.c reateNamed Query("Con sentAudit. getLatestA udit");
        44                             q.setP arameter(" patientId" , patientI D);
        45                             q.setP arameter(" consentTyp e", consen tType);
        46                             q.setM axResults( 1);
        47                             return  (ConsentA udit) q.ge tSingleRes ult();
        48                    } ca tch (final  NoResultE xception n re) {
        49                             // exp ected
        50                             return  null;
        51                    }
        52       }
        53  
        54   }