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\auth | ServicePermission.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 | 86 |
| 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 | * To chan ge this te mplate, ch oose Tools | Templat es | |||||
| 3 | * and ope n the temp late in th e editor. | |||||
| 4 | */ | |||||
| 5 | package go v.va.nvap. service.au th; | |||||
| 6 | ||||||
| 7 | import jav a.io.Seria lizable; | |||||
| 8 | ||||||
| 9 | import jav ax.persist ence.Basic ; | |||||
| 10 | import jav ax.persist ence.Colum n; | |||||
| 11 | import jav ax.persist ence.Entit y; | |||||
| 12 | import jav ax.persist ence.Gener atedValue; | |||||
| 13 | import jav ax.persist ence.Gener ationType; | |||||
| 14 | import jav ax.persist ence.Id; | |||||
| 15 | import jav ax.persist ence.Named Queries; | |||||
| 16 | import jav ax.persist ence.Named Query; | |||||
| 17 | import jav ax.persist ence.Seque nceGenerat or; | |||||
| 18 | import jav ax.persist ence.Table ; | |||||
| 19 | /** | |||||
| 20 | * | |||||
| 21 | * @author Elan | |||||
| 22 | */ | |||||
| 23 | @Entity | |||||
| 24 | @Table(nam e = "SERVI CE_PERMISS ION") | |||||
| 25 | @NamedQuer ies({ | |||||
| 26 | ||||||
| 27 | @Nam edQuery(na me = "Serv icePermiss ion.checkA uthorizati on", query = "SELECT c FROM Se rvicePermi ssion c WH ERE c.cn = :cn"), | |||||
| 28 | @Nam edQuery(na me = "Serv icePermiss ion.getSer vicePermis sions", qu ery = "SEL ECT c FROM ServicePe rmission c "), | |||||
| 29 | @Nam edQuery(na me = "Serv icePermiss ion.setSta tus", quer y = "UPDAT E ServiceP ermission c SET c.en abled=:ena bled WHERE c.cn= :cn ") | |||||
| 30 | }) | |||||
| 31 | ||||||
| 32 | public cla ss Service Permission implemen ts Seriali zable { | |||||
| 33 | @Id | |||||
| 34 | @Seque nceGenerat or(name = "servicePe rmissionSe quence", s equenceNam e = "SERVI CE_PERMISS ION_SEQ", allocation Size = 1) | |||||
| 35 | @Gener atedValue( strategy = Generatio nType.SEQU ENCE, gene rator = "s ervicePerm issionSequ ence") | |||||
| 36 | @Basic (optional = false) | |||||
| 37 | @Colum n(name = " SERVICE_ID ") | |||||
| 38 | privat e long ser viceID; | |||||
| 39 | @Basic (optional = false) | |||||
| 40 | @Colum n(name = " CN") | |||||
| 41 | privat e String c n; | |||||
| 42 | @Basic (optional = false) | |||||
| 43 | @Colum n(name = " NAME") | |||||
| 44 | privat e String n ame; | |||||
| 45 | @Basic (optional = false) | |||||
| 46 | @Colum n(name = " ENABLED") | |||||
| 47 | privat e int enab led; | |||||
| 48 | ||||||
| 49 | public long getI d() { | |||||
| 50 | re turn servi ceID; | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | public void setI d(Long id) { | |||||
| 54 | th is.service ID = id; | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | public String ge tCn() { | |||||
| 58 | re turn cn; | |||||
| 59 | } | |||||
| 60 | ||||||
| 61 | public void setC n(String c n) { | |||||
| 62 | th is.cn = cn ; | |||||
| 63 | } | |||||
| 64 | ||||||
| 65 | public String ge tName() { | |||||
| 66 | re turn name; | |||||
| 67 | } | |||||
| 68 | ||||||
| 69 | public void setN ame(String name) { | |||||
| 70 | th is.name = name; | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | public Boolean g etEnabled( ) { | |||||
| 74 | re turn enabl ed == 1; | |||||
| 75 | } | |||||
| 76 | ||||||
| 77 | public void setE nabled(Boo lean enabl ed) { | |||||
| 78 | if (enabled) | |||||
| 79 | this.ena bled = 1; | |||||
| 80 | el se | |||||
| 81 | this.ena bled = 0; | |||||
| 82 | } | |||||
| 83 | ||||||
| 84 | ||||||
| 85 | ||||||
| 86 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.