Produced by Araxis Merge on 4/27/2018 2:59:09 PM Central 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | v2.0_Sprint_15_Build_5.zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\dao\ars | IArsUserRepository.java | Tue Apr 24 14:50:42 2018 UTC |
| 2 | v2.0_Sprint_15_Build_5..zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\dao\ars | IArsUserRepository.java | Thu Apr 26 15:05:42 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 114 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | ||
| 2 | package go v.va.med.a rs.dao.ars ; | |
| 3 | ||
| 4 | import jav a.util.Lis t; | |
| 5 | ||
| 6 | ||
| 7 | ||
| 8 | import org .springfra mework.dat a.jpa.repo sitory.Jpa Repository ; | |
| 9 | import org .springfra mework.dat a.jpa.repo sitory.Jpa Specificat ionExecuto r; | |
| 10 | import org .springfra mework.dat a.jpa.repo sitory.Mod ifying; | |
| 11 | import org .springfra mework.dat a.jpa.repo sitory.Que ry; | |
| 12 | import org .springfra mework.dat a.reposito ry.CrudRep ository; | |
| 13 | import org .springfra mework.dat a.reposito ry.query.P aram; | |
| 14 | import org .springfra mework.ste reotype.Re pository; | |
| 15 | import org .springfra mework.tra nsaction.a nnotation. Transactio nal; | |
| 16 | ||
| 17 | import gov .va.med.do main.ars.A rsUser; | |
| 18 | import gov .va.med.do main.ars.C laimattach mentsView; | |
| 19 | ||
| 20 | @Transacti onal | |
| 21 | @Repositor y | |
| 22 | public int erface IAr sUserRepos itory exte nds CrudRe pository<A rsUser, Lo ng>, JpaSp ecificatio nExecutor< ArsUser> { | |
| 23 | ||
| 24 | /* * | |
| 25 | * Get ArsUs er by User Name | |
| 26 | * | |
| 27 | * @param us erName | |
| 28 | * @return | |
| 29 | * / | |
| 30 | ||
| 31 | /* | |
| 32 | * SQL versi on select * from ars _user a le ft join ar s_user_rol e_usages b on | |
| 33 | * a.ars_use r_id=b.ars _user_id J OIN ars_Ro le c on b. ARS_ROLE_I D= | |
| 34 | * c.ARS_RO LE_ID wher e a.user_N ame = ' P I
|
|
| 35 | * 'Y'; | |
| 36 | * / | |
| 37 | @Q uery("SELE CT u FROM aarsUser u JOIN FETC H u.arsUse rRoleUsage ses r JOIN FETCH r.a rsRole a W HERE UPPER (u.userNam e) = UPPER (:username ) and uppe r(u.enable d) = 'Y'") | |
| 38 | Li st<ArsUser > findByAr sUserName( @Param("us ername") S tring user Name); | |
| 39 | ||
| 40 | @Q uery(value = "SELECT UPPER(a.u ser_name), UPPER(a.l ast_name), UPPER(a.f irst_name) , UPPER(a. middle_nam e), UPPER( a.enabled) , a.last_l ogin_date, UPPER(a.p hone_numbe r), UPPER( a.email_ad dress), UP PER(a.deac tivation_c omments) " | |
| 41 | + "FRO M aarsUser a WHERE a .app_user_ id=:userid ", nativeQ uery = tru e) | |
| 42 | Ar sUser find ByAppUserI d(@Param(" userid") l ong userid ); | |
| 43 | ||
| 44 | Ar sUser save (ArsUser p ersisted); | |
| 45 | ||
| 46 | @Q uery("sele ct userNam e from aar sUser") | |
| 47 | Li st<String> getAllUse rs(); | |
| 48 | ||
| 49 | Ar sUser find ByUserName IgnoreCase (String us erName); | |
| 50 | ||
| 51 | Ar sUser find ByArsUserI d(Long use dId); | |
| 52 | ||
| 53 | @M odifying | |
| 54 | @Q uery("upda te aarsUse r u set u. domain = ? 2, u.enabl eExport = ?3 , u.ena bleEdit = ?4, u.enab leAdmin = ?5 where U PPER(u.use rName) = ? 1") | |
| 55 | vo id updateU serByUserN ame(String userName, String dom ain,boolea n enableEx port,boole an enableE dit,boolea n enableAd min); | |
| 56 | ||
| 57 | vo id delete( ArsUser en tity); | |
| 58 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.