Produced by Araxis Merge on 3/8/2018 10:14:54 AM Eastern 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 | PRE_PPS-N_v3.0.1.zip\PS_PPS_srv\src\main\java\gov\va\med\pharmacy\peps\service\common\scheduler\tasks | RxNormUpdateTaskImpl.java | Fri Jan 12 15:44:24 2018 UTC |
2 | PRE_PPS-N_v3.0.1.zip\PS_PPS_srv\src\main\java\gov\va\med\pharmacy\peps\service\common\scheduler\tasks | RxNormUpdateTaskImpl.java | Wed Mar 7 18:52:21 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 188 |
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 | package go v.va.med.p harmacy.pe ps.service .common.sc heduler.ta sks; | |
2 | ||
3 | import gov .va.med.ph armacy.pep s.common.v o.Role; | |
4 | import gov .va.med.ph armacy.pep s.common.v o.UserVo; | |
5 | import gov .va.med.ph armacy.pep s.domain.c ommon.util ity.client .rxnorm.Rx NormClient ; | |
6 | import gov .va.med.ph armacy.pep s.service. common.cap ability.Fd bScheduler ProcessCap ability; | |
7 | import gov .va.med.ph armacy.pep s.service. common.cap ability.Rx NormUpdate Capability ; | |
8 | ||
9 | import org .apache.lo gging.log4 j.Logger; | |
10 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
11 | ||
12 | ||
13 | /** | |
14 | * Class d efining th e method b ehavior fo r managing the RxNor m Update j ob process | |
15 | * | |
16 | * @author DNS DN S
|
|
17 | * | |
18 | */ | |
19 | public cla ss RxNormU pdateTaskI mpl implem ents RxNor mUpdateTas k { | |
20 | ||
21 | privat e static f inal Logge r LOG = or g.apache.l ogging.log 4j.LogMana ger.getLog ger(RxNorm UpdateTask Impl.class ); | |
22 | privat e static f inal Long USER_ID = 42L; | |
23 | privat e static f inal Strin g STATION = "999"; | |
24 | ||
25 | @Autow ired | |
26 | privat e RxNormUp dateCapabi lity rxNor mUpdateCap ability; | |
27 | ||
28 | @Autow ired | |
29 | privat e FdbSched ulerProces sCapabilit y fdbSched ulerProces sCapabilit y; | |
30 | ||
31 | ||
32 | /* (no n-Javadoc) | |
33 | * @se e gov.va.m ed.pharmac y.peps.ser vice.commo n.schedule r.tasks.Rx NormUpdate Task#runRx NormUpdate Process() | |
34 | */ | |
35 | @Overr ide | |
36 | public void runR xNormUpdat eProcess() { | |
37 | LO G.debug(". .......... .......... synchroniz e RXNORM U PDATE proc ess....... ......... ~"); | |
38 | rx NormUpdate Capability .process(g etUser()); | |
39 | } | |
40 | ||
41 | /** | |
42 | * get User | |
43 | * @re turn UserV o | |
44 | */ | |
45 | privat e UserVo g etUser() { | |
46 | ||
47 | Us erVo user = new User Vo(); | |
48 | us er.setFirs tName("RXN ORMUpdate" ); | |
49 | us er.setLast Name("Upda teFileProc ess"); | |
50 | us er.setStat ionNumber( STATION); | |
51 | us er.setUser name("RxNo rmUpdatePr ocess"); | |
52 | us er.setLoca tion("Nati onalSite") ; | |
53 | us er.setId(U SER_ID); | |
54 | us er.addRole (Role.PSS_ PPSN_MANAG ER ); | |
55 | ||
56 | re turn user; | |
57 | ||
58 | } | |
59 | ||
60 | ||
61 | /** | |
62 | * Get s the rxNo rmUpdateCa pability. | |
63 | * @re turn the r xNormUpdat eCapabilit y | |
64 | */ | |
65 | public RxNormUpd ateCapabil ity getRxN ormUpdateC apability( ) { | |
66 | re turn rxNor mUpdateCap ability; | |
67 | } | |
68 | ||
69 | /** | |
70 | * Set s the rxNo rmUpdateCa pability. | |
71 | * @pa ram rxNorm UpdateCapa bility the rxNormUpd ateCapabil ity | |
72 | */ | |
73 | public void setR xNormUpdat eCapabilit y(RxNormUp dateCapabi lity rxNor mUpdateCap ability) { | |
74 | th is.rxNormU pdateCapab ility = rx NormUpdate Capability ; | |
75 | } | |
76 | ||
77 | /** | |
78 | * get FdbSchedu lerProcess Capability | |
79 | * @re turn the f dbSchedule rProcessCa pability | |
80 | */ | |
81 | public FdbSchedu lerProcess Capability getFdbSch edulerProc essCapabil ity() { | |
82 | re turn fdbSc hedulerPro cessCapabi lity; | |
83 | } | |
84 | ||
85 | /** | |
86 | * set FdbSchedul erProcessC apability | |
87 | * @pa ram fdbSch edulerProc essCapabil ity the fd bScheduler ProcessCap ability to set | |
88 | */ | |
89 | public void setF dbSchedule rProcessCa pability( | |
90 | FdbSched ulerProces sCapabilit y fdbSched ulerProces sCapabilit y) { | |
91 | th is.fdbSche dulerProce ssCapabili ty = fdbSc hedulerPro cessCapabi lity; | |
92 | } | |
93 | ||
94 | ||
95 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.