Produced by Araxis Merge on 6/9/2017 3:49:48 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:49:48 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-client\src\main\java\gov\va\nvap\service\audit\data | UserAccessAudit.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 129 |
| 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 | package go v.va.nvap. service.au dit.data; | |||||
| 2 | ||||||
| 3 | import jav a.io.Seria lizable; | |||||
| 4 | import jav a.util.Dat e; | |||||
| 5 | ||||||
| 6 | import jav ax.persist ence.Basic ; | |||||
| 7 | import jav ax.persist ence.Colum n; | |||||
| 8 | import jav ax.persist ence.Entit y; | |||||
| 9 | import jav ax.persist ence.Gener atedValue; | |||||
| 10 | import jav ax.persist ence.Gener ationType; | |||||
| 11 | import jav ax.persist ence.Id; | |||||
| 12 | import jav ax.persist ence.Named Queries; | |||||
| 13 | import jav ax.persist ence.Named Query; | |||||
| 14 | import jav ax.persist ence.Table ; | |||||
| 15 | import jav ax.persist ence.Tempo ral; | |||||
| 16 | import jav ax.persist ence.Tempo ralType; | |||||
| 17 | ||||||
| 18 | @Entity | |||||
| 19 | @Table(nam e = "USER_ ACCESS_AUD IT") | |||||
| 20 | @NamedQuer ies({ | |||||
| 21 | @Named Query(name = "UserAc cessAudit. hourCount" , query = "SELECT CO UNT(u) FRO M UserAcce ssAudit u WHERE u.ti meOfEvent BETWEEN :s tartDate A ND :endDat e")}) | |||||
| 22 | public cla ss UserAcc essAudit i mplements Serializab le { | |||||
| 23 | /* * | |||||
| 24 | * | |||||
| 25 | * / | |||||
| 26 | pr ivate stat ic final l ong serial VersionUID = -121521 9925182629 651L; | |||||
| 27 | ||||||
| 28 | @C olumn(name = "CREATE D_DATE") | |||||
| 29 | @T emporal(Te mporalType .TIMESTAMP ) | |||||
| 30 | pr ivate Date createdDa te; | |||||
| 31 | @C olumn(name = "TIME_O F_EVENT") | |||||
| 32 | @T emporal(Te mporalType .TIMESTAMP ) | |||||
| 33 | pr ivate Date timeOfEve nt; | |||||
| 34 | @I d | |||||
| 35 | @G eneratedVa lue(strate gy = Gener ationType. AUTO) | |||||
| 36 | @B asic(optio nal = fals e) | |||||
| 37 | @C olumn(name = "USER_A CCESS_AUDI T_ID") | |||||
| 38 | pr ivate Long userAcces sAuditId; | |||||
| 39 | @C olumn(name = "USER_F ACILITY") | |||||
| 40 | pr ivate Stri ng userFac ility; | |||||
| 41 | @C olumn(name = "USER_I D") | |||||
| 42 | pr ivate Stri ng userId; | |||||
| 43 | ||||||
| 44 | pu blic UserA ccessAudit () { | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | pu blic UserA ccessAudit (final Str ing userId , final St ring userF acility, | |||||
| 48 | final Date timeO fEvent, fi nal Date c reatedDate ) { | |||||
| 49 | this .userFacil ity = user Facility; | |||||
| 50 | this .userId = userId; | |||||
| 51 | this .timeOfEve nt = timeO fEvent; | |||||
| 52 | this .createdDa te = creat edDate; | |||||
| 53 | } | |||||
| 54 | ||||||
| 55 | /* * | |||||
| 56 | * @return t he created Date | |||||
| 57 | * / | |||||
| 58 | pu blic Date getCreated Date() { | |||||
| 59 | retu rn this.cr eatedDate; | |||||
| 60 | } | |||||
| 61 | ||||||
| 62 | /* * | |||||
| 63 | * @return t he timeOfE vent | |||||
| 64 | * / | |||||
| 65 | pu blic Date getTimeOfE vent() { | |||||
| 66 | retu rn this.ti meOfEvent; | |||||
| 67 | } | |||||
| 68 | ||||||
| 69 | /* * | |||||
| 70 | * @return t he userAcc essAuditId | |||||
| 71 | * / | |||||
| 72 | pu blic Long getUserAcc essAuditId () { | |||||
| 73 | retu rn this.us erAccessAu ditId; | |||||
| 74 | } | |||||
| 75 | ||||||
| 76 | /* * | |||||
| 77 | * @return t he userFac ility | |||||
| 78 | * / | |||||
| 79 | pu blic Strin g getUserF acility() { | |||||
| 80 | retu rn this.us erFacility ; | |||||
| 81 | } | |||||
| 82 | ||||||
| 83 | pu blic Strin g getUserI d() { | |||||
| 84 | retu rn this.us erId; | |||||
| 85 | } | |||||
| 86 | ||||||
| 87 | /* * | |||||
| 88 | * @param cr eatedDate | |||||
| 89 | * the crea tedDate to set | |||||
| 90 | * / | |||||
| 91 | pu blic void setCreated Date(final Date crea tedDate) { | |||||
| 92 | this .createdDa te = creat edDate; | |||||
| 93 | } | |||||
| 94 | ||||||
| 95 | /* * | |||||
| 96 | * @param ti meOfEvent | |||||
| 97 | * the time OfEvent to set | |||||
| 98 | * / | |||||
| 99 | pu blic void setTimeOfE vent(final Date time OfEvent) { | |||||
| 100 | this .timeOfEve nt = timeO fEvent; | |||||
| 101 | } | |||||
| 102 | ||||||
| 103 | /* * | |||||
| 104 | * @param us erAccessAu ditId | |||||
| 105 | * the user AccessAudi tId to set | |||||
| 106 | * / | |||||
| 107 | pu blic void setUserAcc essAuditId (final Lon g userAcce ssAuditId) { | |||||
| 108 | this .userAcces sAuditId = userAcces sAuditId; | |||||
| 109 | } | |||||
| 110 | ||||||
| 111 | /* * | |||||
| 112 | * @param us erFacility | |||||
| 113 | * the user Facility t o set | |||||
| 114 | * / | |||||
| 115 | pu blic void setUserFac ility(fina l String u serFacilit y) { | |||||
| 116 | this .userFacil ity = user Facility; | |||||
| 117 | } | |||||
| 118 | ||||||
| 119 | pu blic void setUserId( final Stri ng userId) { | |||||
| 120 | this .userId = userId; | |||||
| 121 | } | |||||
| 122 | ||||||
| 123 | @O verride | |||||
| 124 | pu blic Strin g toString () { | |||||
| 125 | retu rn (new St ringBuilde r()) | |||||
| 126 | .append( "gov.va.nv ap.service .audit.dat a.UserAcce ssAudit[us erAccessAu ditId=") | |||||
| 127 | .append( this.userA ccessAudit Id).append ("]").toSt ring(); | |||||
| 128 | } | |||||
| 129 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.