Produced by Araxis Merge on 7/9/2017 11:01:19 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 | PPS_N_3.0_Iter2_Build_360.zip\Unredacted\PS_PPS_interface\src\main\java\gov\va\med\pharmacy\peps\external\common\sts\outbound\capability\impl | StsInterfaceCapabilityImpl.java | Fri Jun 30 19:13:12 2017 UTC |
2 | PPS_N_3.0_Iter2_Build_360.zip\Unredacted\PS_PPS_interface\src\main\java\gov\va\med\pharmacy\peps\external\common\sts\outbound\capability\impl | StsInterfaceCapabilityImpl.java | Fri Jul 7 20:39:42 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 166 |
Changed | 2 | 8 |
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 | * Source file creat ed in 2006 by Southw est Resear ch Institu te | |
3 | */ | |
4 | ||
5 | ||
6 | package go v.va.med.p harmacy.pe ps.externa l.common.s ts.outboun d.capabili ty.impl; | |
7 | ||
8 | ||
9 | import jav a.net.URL; | |
10 | import jav a.util.Arr ayList; | |
11 | import jav a.util.Lis t; | |
12 | ||
13 | import gov .va.med.ph armacy.pep s.common.u tility.Con figFileUti lity; | |
14 | import gov .va.med.ph armacy.pep s.common.v o.ItemStat us; | |
15 | import gov .va.med.ph armacy.pep s.common.v o.Standard MedRouteVo ; | |
16 | import gov .va.med.ph armacy.pep s.external .common.st s.outbound .capabilit y.StsInter faceCapabi lity; | |
17 | ||
18 | import ct. webservice . DNS . URL .CtService ; | |
19 | import ct. webservice . DNS . URL .ValueSetC ontentsLis tTransfer; | |
20 | import ct. webservice . DNS . URL .ValueSetC ontentsTra nsfer; | |
21 | ||
22 | /** | |
23 | * STS Web Service C apability to perform operation s on stand ard manage d domain i tems. | |
24 | */ | |
25 | public cla ss StsInte rfaceCapab ilityImpl implements StsInterf aceCapabil ity { | |
26 | privat e static f inal org.a pache.logg ing.log4j. Logger | |
27 | LOG = org.apac he.logging .log4j.Log Manager.ge tLogger(St sInterface Capability Impl.class ); | |
28 | ||
29 | privat e static f inal Long VUID_LIST_ NUM = 4708 487L; // t his is the VUID for the standa rd med rou te list | |
30 | privat e static f inal Strin g WSDL_MAR KER = "?ws dl"; | |
31 | ||
32 | /** | |
33 | * The default c onstructor loads the propertie s for the location o f the STS service an d instanti ates the s ts client. | |
34 | */ | |
35 | public StsInterf aceCapabil ityImpl() { | |
36 | LO G.debug("S tsInterfac eCapabilit yImpl cons tructor"); | |
37 | } | |
38 | ||
39 | /** | |
40 | * get StsData. | |
41 | * @re turn List <StandardM edicationR outeVo> da taList | |
42 | */ | |
43 | public List<Stan dardMedRou teVo> getS tsData() { | |
44 | ||
45 | Li st<Standar dMedRouteV o> dataLis t = new Ar rayList<St andardMedR outeVo>(); | |
46 | ||
47 | tr y { | |
48 | LOG.debu g("Before service in stantiatio n"); | |
49 | ||
50 | ConfigFi leUtility configFile = new Con figFileUti lity(); | |
51 | URL wsdl Url = new URL(String .valueOf(c onfigFile. getStsWebS erviceURL( ))+WSDL_MA RKER); | |
52 | ||
53 | CtServic e service = new CtSe rvice(wsdl Url); | |
54 | LOG.debu g("Retriev ing the po rt from th e followin g service: " + servi ce); | |
55 | ||
56 | ct.webserv ice.sts. URL .Sts sts = service.g etStsPort( ); | |
57 | Long l = new Long( VUID_LIST_ NUM); | |
58 | ||
59 | ValueSet ContentsLi stTransfer response = sts.list ValueSetCo ntents(l, "current", null, nul l, null, n ull); | |
60 | LOG.debu g("Total r ecords is " + respon se.getTota lNumberOfR ecords()); | |
61 | List<Val ueSetConte ntsTransfe r> content s = respon se.getValu eSetConten ts(); | |
62 | ||
63 | for (Val ueSetConte ntsTransfe r data : c ontents) { | |
64 | LOG. debug("Nam e is " + d ata.getNam e()); | |
65 | LOG. debug("VUI D is " + d ata.getVUI D()); | |
66 | LOG. debug("Sta tus is " + data.getS tatus()); | |
67 | Stan dardMedRou teVo vo = new Standa rdMedRoute Vo(); | |
68 | ||
69 | vo.s etVuid(Str ing.valueO f(data.get VUID())); | |
70 | vo.s etValue(da ta.getName ()); | |
71 | ||
72 | if ( data.getSt atus().equ als("activ e")) { | |
73 | vo.setItem Status(Ite mStatus.AC TIVE); | |
74 | } el se { | |
75 | vo.setItem Status(Ite mStatus.IN ACTIVE); | |
76 | } | |
77 | ||
78 | data List.add(v o); | |
79 | } | |
80 | ||
81 | } catch (Exc eption e) { | |
82 | LOG.erro r("STSInte rface Exce ption ", e ); | |
83 | } | |
84 | ||
85 | re turn dataL ist; | |
86 | } | |
87 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.