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

4271.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 AllowedRoleDAO.java Fri Apr 21 20:15:58 2017 UTC

4271.2 Comparison summary

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

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

4271.4 Active regular expressions

No regular expressions were active.

4271.5 Comparison detail

        1   package go v.va.nvap. web.dao;
        2  
        3   import gov .va.nvap.w eb.user.ro le.Allowed Role;
        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 Allowed RoleDAO {
        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<Allo wedRole> f indAll() {
        25           tr y {
        26                final Qu ery q = th is.em.crea teNamedQue ry("Allowe dRole.find All");
        27                return ( List<Allow edRole>) q .getResult List();
        28           }  catch (fin al NoResul tException  nre) {
        29                return n ew ArrayLi st<>();
        30           }
        31       }
        32  
        33       public  AllowedRo le findByR oleId(Stri ng roleId)  {
        34           tr y {
        35                final Qu ery q = th is.em.crea teNamedQue ry("Allowe dRole.find ByRoleId") ;
        36                q.setPar ameter("ro leId", rol eId);
        37                return ( AllowedRol e) q.getSi ngleResult ();
        38           }  catch (fin al NoResul tException  nre) {
        39                return n ull;
        40           }
        41       }
        42  
        43       public  AllowedRo le findByR oleName(St ring roleN ame) {
        44           tr y {
        45                final Qu ery q = th is.em.crea teNamedQue ry("Allowe dRole.find ByRoleName ");
        46                q.setPar ameter("ro leName", r oleName);
        47                return ( AllowedRol e) q.getSi ngleResult ();
        48           }  catch (fin al NoResul tException  nre) {
        49                return n ull;
        50           }
        51       }
        52  
        53       public  boolean c ontainsAll owedRole(L ist<String > roleName s) {
        54           tr y {
        55                final Qu ery q = th is.em.crea teNamedQue ry("Allowe dRole.find RoleInColl ection");
        56                q.setPar ameter("ro leNames",  roleNames) ;
        57                if (!q.g etResultLi st().isEmp ty()) retu rn true;
        58           }  catch (fin al Excepti on e) {
        59                return f alse;
        60           }
        61           re turn false ;
        62       }
        63   }