Produced by Araxis Merge on 3/1/2018 12:13:18 PM Central Standard 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 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\proxy\provider\subscription | InMemorySubscriptionProvider.java | Thu Feb 22 14:27:20 2018 UTC |
| 2 | ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\proxy\provider\subscription | InMemorySubscriptionProvider.java | Tue Feb 27 14:30:13 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 112 |
| 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 | * To chan ge this li cense head er, choose License H eaders in Project Pr operties. | |
| 3 | * To chan ge this te mplate fil e, choose Tools | Te mplates | |
| 4 | * and ope n the temp late in th e editor. | |
| 5 | */ | |
| 6 | package go v.va.med.n hin.adapte r.subscrip tion.web.p roxy.provi der.subscr iption; | |
| 7 | ||
| 8 | import gov .va.med.nh in.adapter .subscript ion.web.da o.InMemory DAO; | |
| 9 | import gov .va.med.nh in.adapter .subscript ion.web.re source.EHX Subscripti on; | |
| 10 | import jav ax.enterpr ise.contex t.Applicat ionScoped; | |
| 11 | import jav ax.enterpr ise.inject .Alternati ve; | |
| 12 | import jav ax.inject. Named; | |
| 13 | import org .hl7.fhir. dstu3.mode l.IdType; | |
| 14 | ||
| 15 | /** | |
| 16 | * | |
| 17 | * @author DN S VAZQUD | |
| 18 | */ | |
| 19 | @Named("In MemmorySub scriptionP rovider") | |
| 20 | @Applicati onScoped() | |
| 21 | @Alternati ve() | |
| 22 | public cla ss InMemor ySubscript ionProvide r implemen ts Subscri ptionProvi der | |
| 23 | { | |
| 24 | privat e InMemory DAO<EHXSub scription> inMemoryD AO = new I nMemoryDAO <>(); | |
| 25 | ||
| 26 | @Overr ide | |
| 27 | public Long crea te(EHXSubs cription r esource) | |
| 28 | { | |
| 29 | Su bscription Provider.s uper.creat e(resource ); | |
| 30 | re turn inMem oryDAO.sto re(resourc e); | |
| 31 | } | |
| 32 | ||
| 33 | @Overr ide | |
| 34 | public EHXSubscr iption rea d(Long id) | |
| 35 | { | |
| 36 | re turn inMem oryDAO.fin dByID(id); | |
| 37 | } | |
| 38 | ||
| 39 | @Overr ide | |
| 40 | public EHXSubscr iption rea d(IdType i d) | |
| 41 | { | |
| 42 | re turn inMem oryDAO.fin dByResourc eID(id.get IdPart()); | |
| 43 | } | |
| 44 | ||
| 45 | @Overr ide | |
| 46 | public void upda te(Long id , EHXSubsc ription re source) | |
| 47 | { | |
| 48 | Su bscription Provider.s uper.updat e(id, reso urce); | |
| 49 | in MemoryDAO. update(id, resource) ; | |
| 50 | } | |
| 51 | ||
| 52 | @Overr ide | |
| 53 | public EHXSubscr iption del ete(Long i d) | |
| 54 | { | |
| 55 | re turn inMem oryDAO.del ete(id); | |
| 56 | } | |
| 57 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.