4277. EPMO Open Source Coordination Office Redaction File Detail Report

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

4277.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:25 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-web\src\main\java\gov\va\nvap\web\dao UserRoleDAO.java Fri Apr 21 20:15:58 2017 UTC

4277.2 Comparison summary

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

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

4277.4 Active regular expressions

No regular expressions were active.

4277.5 Comparison detail

        1   package go v.va.nvap. web.dao;
        2  
        3   import gov .va.nvap.w eb.user.ro le.UserRol e;
        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  
        11   /**
        12    *
        13    * @author  Zack Pete rson
        14    */
        15   public cla ss UserRol eDAO {
        16  
        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       public  List<User Role> find All() {
        25           tr y {
        26                final Qu ery q = th is.em.crea teNamedQue ry("UserRo le.findAll ");
        27                return ( List<UserR ole>) q.ge tResultLis t();
        28           }  catch (fin al NoResul tException  nre) {
        29                return n ew ArrayLi st<>();
        30           }
        31       }
        32  
        33       public  List<User Role> find ByUserName (String us erName) {
        34           tr y {
        35                final Qu ery q = th is.em.crea teNamedQue ry("UserRo le.findByU serName");
        36                q.setPar ameter("us erName", u serName);
        37                return ( List<UserR ole>) q.ge tResultLis t();
        38           }  catch (fin al NoResul tException  nre) {
        39                return n ew ArrayLi st<>();
        40           }
        41       }
        42  
        43       public  List<Stri ng> findUs erRoleName s(String u serName) {
        44           tr y {
        45                final Qu ery q = th is.em.crea teNamedQue ry("UserRo le.findUse rRoleNames ");
        46                q.setPar ameter("us erName", u serName);
        47                return ( List<Strin g>) q.getR esultList( );
        48           }  catch (fin al NoResul tException  nre) {
        49                return n ew ArrayLi st<>();
        50           }
        51       }
        52   }