4136. EPMO Open Source Coordination Office Redaction File Detail Report

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

4136.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:17 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 DelayedConsentDAO.java Fri Apr 21 20:03:30 2017 UTC

4136.2 Comparison summary

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

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

4136.4 Active regular expressions

No regular expressions were active.

4136.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.Delay edConsent;
        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    * @since  04/05/2016
        15    * @author  Johann So nnenberg
        16    */
        17   public cla ss Delayed ConsentDAO  {
        18  
        19       @Persi stenceCont ext
        20       privat e EntityMa nager em;
        21  
        22       public  void setE ntityManag er(EntityM anager ent ityManager ) {
        23           th is.em = en tityManage r;
        24       }
        25  
        26       @Trans actional
        27       public  Long crea te(Delayed Consent da ) throws E xception {
        28           tr y {
        29                da.setSt atus("PEND ING");
        30                this.em. persist(da );
        31           }  catch (fin al Excepti on ex) {
        32                throw ex ;
        33           }
        34  
        35           re turn da.ge tDelayedCo nsentId();
        36       }
        37  
        38       @Trans actional
        39       public  DelayedCo nsent upda te(Delayed Consent da ) throws E xception {
        40           tr y {
        41                this.em. merge(da);
        42           }  catch (fin al Excepti on ex) {
        43                throw ex ;
        44           }
        45  
        46           re turn da;
        47       }
        48       
        49       public  SearchAll Response f ind(final  SearchAllR equest sea rchRequest ) {
        50           Se archAllRes ponse sear chResponse  = new Sea rchAllResp onse();
        51  
        52           fi nal Query  q = this.e m.createNa medQuery(" DelayedCon sent.findA ll");
        53           se archRespon se.delayed Consents =  (List<Del ayedConsen t>) q.getR esultList( );
        54           se archRespon se.count =  searchRes ponse.dela yedConsent s.size();
        55                
        56           re turn searc hResponse;
        57       }
        58       
        59       public  DelayedCo nsent find ByDelayedC onsentId(L ong delaye dConsentId ) {
        60           tr y {
        61                final Qu ery q = th is.em.crea teNamedQue ry("Delaye dConsent.f indByDelay edConsentI d");
        62                q.setPar ameter("de layedConse ntId", del ayedConsen tId);
        63                
        64                return ( DelayedCon sent)q.get SingleResu lt();
        65           }  catch (fin al NoResul tException  nre) {
        66                return n ew Delayed Consent();
        67           }
        68       }
        69  
        70       public  List<Dela yedConsent > findByPa tientIen(S tring pati entIen) {
        71           tr y {
        72                final Qu ery q = th is.em.crea teNamedQue ry("Delaye dConsent.f indByPatie ntIen");
        73                q.setPar ameter("pa tientIen",  patientIe n);
        74  
        75                return ( List<Delay edConsent> ) q.getRes ultList();
        76           }  catch (fin al NoResul tException  nre) {
        77                return n ew ArrayLi st<Delayed Consent>() ;
        78           }
        79       }
        80  
        81       public  DelayedCo nsent find ByTypeAndS tatus(Stri ng consent Type, Stri ng status,  String pa tientIen)  {
        82           tr y {
        83                final Qu ery q = th is.em.crea teNamedQue ry("Delaye dConsent.f indByConse ntTypeAndS tatus");
        84                q.setPar ameter("st atus", sta tus);
        85                q.setPar ameter("co nsentType" , consentT ype);
        86                q.setPar ameter("pa tientIen",  patientIe n);
        87                
        88                return ( DelayedCon sent)q.get SingleResu lt();
        89           }  catch (fin al NoResul tException  nre) {
        90                return n ull;
        91           }
        92       }
        93       
        94       public  class Sea rchAllRequ est {
        95  
        96           pu blic Strin g patientS sn;
        97           pu blic Strin g patientL astName;
        98           pu blic Strin g patientF irstName;
        99           pu blic Strin g reasonsF orDelay;
        100           pu blic Strin g daysSinc eDelayed;
        101           pu blic Strin g daysSinc eLastNotif ication;
        102           pu blic Strin g consentT ype;
        103           pu blic Strin g authenti catingFaci lity;
        104           pu blic Strin g enteredB y;
        105           pu blic Strin g patientT ypes;
        106           pu blic Strin g length;
        107           pu blic Strin g start;
        108           pu blic Strin g sortBy;
        109           pu blic Strin g sortOrde r;
        110       }
        111  
        112       public  class Sea rchAllResp onse {
        113  
        114           pu blic List< DelayedCon sent> dela yedConsent s = null;
        115           pu blic long  count = 0;
        116       }
        117   }