Produced by Araxis Merge on 5/28/2019 3:28:33 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 | CV_src.zip\CVjMeadows-CCP\src\gov\va\med\jmeadows\common | AppConfig.java | Tue Apr 30 19:08:03 2019 UTC |
2 | CV_src.zip\CVjMeadows-CCP\src\gov\va\med\jmeadows\common | AppConfig.java | Tue May 28 17:38:29 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 1956 |
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 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Hon orable Sen ator Danie l K. Inouy e | |
7 | * VA Pacific Is lands Heal th Care Sy stem | |
8 | * Tri pler Army Medical Ce nter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.j meadows.co mmon; | |
13 | ||
14 | import gov .va.med.fo undations. utilities. EncryptUti l; | |
15 | import org .slf4j.Log ger; | |
16 | import org .slf4j.Log gerFactory ; | |
17 | ||
18 | import jav a.io.IOExc eption; | |
19 | import jav a.io.Input Stream; | |
20 | import jav a.util.Pro perties; | |
21 | ||
22 | /** | |
23 | * Applica tion confi guration. | |
24 | * | |
25 | * User: D N S | |
26 | * Date: 8 /1/11 | |
27 | * Time: 1 0:24 AM | |
28 | */ | |
29 | public cla ss AppConf ig { | |
30 | ||
31 | /** | |
32 | * Log ger. | |
33 | */ | |
34 | privat e static f inal Logge r LOGGER = LoggerFac tory.getLo gger(AppCo nfig.class ); | |
35 | ||
36 | /** | |
37 | * CHC S site cod e. | |
38 | */ | |
39 | privat e static f inal Strin g LOCAL_CH CS_SITECOD E = "LOCAL _CHCS_SITE CODE"; | |
40 | ||
41 | /** | |
42 | * Vis tA site co de. | |
43 | */ | |
44 | privat e static f inal Strin g LOCAL_VI STA_SITECO DE = "LOCA L_VISTA_SI TECODE"; | |
45 | ||
46 | /** | |
47 | * jMe adows vers ion number . | |
48 | */ | |
49 | privat e static f inal Strin g APP_VERS ION = "app .version"; | |
50 | ||
51 | /** | |
52 | * jMe adows app environmen t. | |
53 | */ | |
54 | privat e static f inal Strin g APP_ENVI RONMENT = "app.envir onment"; | |
55 | ||
56 | /** | |
57 | * Dat asource. | |
58 | */ | |
59 | privat e static f inal Strin g APP_DATA SOURCE = " app.dataso urce"; | |
60 | ||
61 | /** | |
62 | * log 4j propert ies file p ath. | |
63 | */ | |
64 | privat e static f inal Strin g LOG4J_PR OPERTIES = "LOG4J_PR OPERTIES"; | |
65 | ||
66 | /** | |
67 | * CHC SWS endpoi nt. | |
68 | */ | |
69 | privat e static f inal Strin g CHCS_URL = "CHCS_U RL"; | |
70 | ||
71 | /** | |
72 | * Vis taDataServ ice endpoi nt. | |
73 | */ | |
74 | privat e static f inal Strin g VISTA_UR L = "VISTA _URL"; | |
75 | ||
76 | /** | |
77 | * MVI endpoint. | |
78 | */ | |
79 | privat e static f inal Strin g MVI_URL = "MVI_URL "; | |
80 | ||
81 | /** | |
82 | * MVI HL7 Messa ge Sender Device ID. | |
83 | */ | |
84 | privat e static f inal Strin g MVI_SND_ DEV_ID = " MVI_SND_DE V_ID"; | |
85 | ||
86 | /** | |
87 | * Res trict VA u ser access to DoD-on ly patient informati on. | |
88 | */ | |
89 | privat e static f inal Strin g VA_USER_ RESTRICT = "VA_USER_ RESTRICT"; | |
90 | ||
91 | /** | |
92 | * All ow VA user access to DoD-only patient in formation (Audited a nd prompte d). | |
93 | */ | |
94 | privat e static f inal Strin g VA_USER_ ALLOW_REST RICT_ACCES S = "VA_US ER_ALLOW_R ESTRICT_AC CESS"; | |
95 | ||
96 | /** | |
97 | * PIX service e ndpoint. | |
98 | */ | |
99 | privat e static f inal Strin g PIX_URL = "PIX_URL "; | |
100 | ||
101 | /** | |
102 | * BHI ERelayServ ice endpoi nt. | |
103 | */ | |
104 | privat e static f inal Strin g BHIE_REL AY_SERVICE _URL = "BH IE_RELAY_S ERVICE_URL "; | |
105 | ||
106 | /** | |
107 | * ESS ENTRIS cus todian OID . | |
108 | */ | |
109 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _ESS = "BH IE_CUSTODI AN_OID_ESS "; | |
110 | ||
111 | /** | |
112 | * TMD S custodia n OID. | |
113 | */ | |
114 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _CHCS = "B HIE_CUSTOD IAN_OID_CH CS"; | |
115 | /** | |
116 | * SHA RE custodi an OID. | |
117 | */ | |
118 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _SHARE = " BHIE_CUSTO DIAN_OID_S HARE"; | |
119 | /** | |
120 | * PDW SService e ndpoint * | |
121 | */ | |
122 | privat e static f inal Strin g PDWS_PS_ URL = "PDW S_PS_URL"; | |
123 | privat e static f inal Strin g PDWS_PR_ URL = "PDW S_PR_URL"; | |
124 | privat e static f inal Strin g PDWS_FS_ URL = "PDW S_FS_URL"; | |
125 | privat e static f inal Strin g PDWS_FR_ URL = "PDW S_FR_URL"; | |
126 | /** | |
127 | * PDW SService H L7 Message Header Pr ocessing C ode. | |
128 | */ | |
129 | privat e static f inal Strin g PDWS_PRO C_CODE = " PDWS_PROC_ CODE"; | |
130 | /** | |
131 | * PDW SService H L7 Message //Sender/ Device/id. | |
132 | */ | |
133 | privat e static f inal Strin g PDWS_SND _DEV_ID = "PDWS_SND_ DEV_ID"; | |
134 | ||
135 | /** | |
136 | * PDW SService S OAP DEBUG FLAG. | |
137 | */ | |
138 | privat e static f inal Strin g DEBUG_SO AP_OUTPUT = "DEBUG_S OAP_OUTPUT "; | |
139 | ||
140 | /** | |
141 | * CHC SWS encryp ted userna me. | |
142 | */ | |
143 | privat e static f inal Strin g CHCSWS_U SERNAME = "CHCSWS_US ERNAME"; | |
144 | /** | |
145 | * CHC SWS encryp ted pw. | |
146 | */ | |
147 | privat e static f inal Strin g CHCSWS_P W = "CHCSW S_PW"; | |
148 | /** | |
149 | * BHI ERelayServ ice encryp ted userna me. | |
150 | */ | |
151 | privat e static f inal Strin g BHIE_REL AY_SERVICE _USERNAME = "BHIE_RE LAY_SERVIC E_USERNAME "; | |
152 | /** | |
153 | * BHI ERelayServ ice encryp ted pw. | |
154 | */ | |
155 | privat e static f inal Strin g BHIE_REL AY_SERVICE _PW = "BHI E_RELAY_SE RVICE_PW"; | |
156 | ||
157 | /** | |
158 | * tru e to relax SSL v3 se curity req uirements. (Use this for debug ging purpo ses only!) . | |
159 | */ | |
160 | privat e static f inal Strin g IS_TRUST _ALL_SSL_H OSTNAMES_A ND_CERTS = "IS_TRUST _ALL_SSL_H OSTNAMES_A ND_CERTS"; | |
161 | /** | |
162 | * tru e to utili ze C3PO fo r as the s ql connect ion poolin g api. | |
163 | * If false, def aults to u tilizing J NDI lookup for conne ction pool . | |
164 | */ | |
165 | privat e static f inal Strin g USE_C3PO = "USE_C3 PO"; | |
166 | /** | |
167 | * SQL server JD BC connect ion string (for use with C3PO) . | |
168 | */ | |
169 | privat e static f inal Strin g SQL_URL = "SQL_URL "; | |
170 | /** | |
171 | * SQL server JD BC connect ion string (for use with C3PO) . | |
172 | */ | |
173 | privat e static f inal Strin g SQL_URL_ ENCRYPTED = "SQL_URL _ENCRYPTED "; | |
174 | /** | |
175 | * SQL server dr iver (for use with C 3PO). | |
176 | */ | |
177 | privat e static f inal Strin g SQL_DRIV ER = "SQL_ DRIVER"; | |
178 | /** | |
179 | * JDN I connecti on pooling lookup na me. | |
180 | */ | |
181 | privat e static f inal Strin g JNDI_JDB C = "JNDI_ JDBC"; | |
182 | /** | |
183 | * JDN I connecti on pooling lookup na me. | |
184 | */ | |
185 | privat e static f inal Strin g JNDI_JDB C_ENCRYPTE D = "JNDI_ JDBC_ENCRY PTED"; | |
186 | ||
187 | /** | |
188 | * Gen eral servi ce request timeout s etting in millisecon ds. | |
189 | */ | |
190 | privat e static f inal Strin g REQUEST_ TIMEOUT_MS = "REQUES T_TIMEOUT_ MS"; | |
191 | /** | |
192 | * Gen eral servi ce connect ion timeou t setting in millise conds. | |
193 | */ | |
194 | privat e static f inal Strin g CONNECTI ON_TIMEOUT _MS = "CON NECTION_TI MEOUT_MS"; | |
195 | /** | |
196 | * Gen eral threa d timeout in millise conds. | |
197 | */ | |
198 | privat e static f inal Strin g THREAD_T IMEOUT_MS = "THREAD_ TIMEOUT_MS "; | |
199 | ||
200 | /** | |
201 | * VLE R service request ti meout sett ing in mil liseconds. | |
202 | */ | |
203 | privat e static f inal Strin g VLER_REQ UEST_TIMEO UT_MS = "V LER_REQUES T_TIMEOUT_ MS"; | |
204 | /** | |
205 | * VLE R service connection timeout s etting in millisecon ds. | |
206 | */ | |
207 | privat e static f inal Strin g VLER_CON NECTION_TI MEOUT_MS = "VLER_CON NECTION_TI MEOUT_MS"; | |
208 | ||
209 | /** | |
210 | * Def ault error message s tring. | |
211 | */ | |
212 | privat e static f inal Strin g ERROR_MS G_CONNECTI ON_UNAVAIL ABLE = "ER ROR_MSG_CO NNECTION_U NAVAILABLE "; | |
213 | /** | |
214 | * Def ault edr s ervice rel ated error message s tring. | |
215 | */ | |
216 | privat e static f inal Strin g ERROR_MS G_EDR_DOCS = "ERROR_ MSG_EDR_DO CS"; | |
217 | ||
218 | /** | |
219 | * AHL TA custodi an OID. | |
220 | */ | |
221 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _AHLTA = " BHIE_CUSTO DIAN_OID_A HLTA"; | |
222 | /** | |
223 | * VA custodian OID. | |
224 | */ | |
225 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _VA = "BHI E_CUSTODIA N_OID_VA"; | |
226 | /** | |
227 | * TMD S custodia n OID. | |
228 | */ | |
229 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _TMDS = "B HIE_CUSTOD IAN_OID_TM DS"; | |
230 | ||
231 | /** | |
232 | * FHI E custodia n OID. | |
233 | */ | |
234 | privat e static f inal Strin g BHIE_CUS TODIAN_OID _FHIE = "B HIE_CUSTOD IAN_OID_FH IE"; | |
235 | /** | |
236 | * Sit e code to return wit h BHIE err or beans ( utilized w hen BHIE c onnection is unavail able). | |
237 | */ | |
238 | privat e static f inal Strin g BHIE_ERR OR_SITE_CO DE = "BHIE _ERROR_SIT E_CODE"; | |
239 | /** | |
240 | * Sit e name to return wit h BHIE err or bean (u tilized wh en BHIE co nnection i s unavaila ble). | |
241 | */ | |
242 | privat e static f inal Strin g BHIE_ERR OR_SITE_NA ME = "BHIE _ERROR_SIT E_NAME"; | |
243 | /** | |
244 | * Sit e moniker to return with BHIE error bean (utilized when BHIE connectio n is unava ilable). | |
245 | */ | |
246 | privat e static f inal Strin g BHIE_ERR OR_SITE_MO NIKER = "B HIE_ERROR_ SITE_MONIK ER"; | |
247 | ||
248 | /** | |
249 | * The local VA facility's patient I EN OID - f or use wit h the PIX Service pa tient iden tifier map . | |
250 | * (2. 16.840.1.1 13883.3.42 .10006.100 005.8 for North Chic ago VA) | |
251 | */ | |
252 | privat e static f inal Strin g LOCAL_VA _IEN_OID = "LOCAL_VA _IEN_OID"; | |
253 | /** | |
254 | * Vis ta enterpr ise ICN OI D - for us e with the PIX Servi ce patient identifie r map. | |
255 | */ | |
256 | privat e static f inal Strin g VISTA_IC N_OID = "V ISTA_ICN_O ID"; | |
257 | /** | |
258 | * The DoD enter prise EDIP N (EDIPI) OID - for use with t he Pix Ser vice ident ifier map. | |
259 | */ | |
260 | privat e static f inal Strin g DOD_EDIP N_OID = "D OD_EDIPN_O ID"; | |
261 | ||
262 | /** | |
263 | * VA agency nam e string S hould be c onfigured as VA, | |
264 | */ | |
265 | privat e static f inal Strin g AGENCY_V A = "AGENC Y_VA"; | |
266 | /** | |
267 | * DOD agency na me string. Should be configure d as DOD, | |
268 | */ | |
269 | privat e static f inal Strin g AGENCY_D OD = "AGEN CY_DOD"; | |
270 | ||
271 | /** | |
272 | * Sit eMap's EHC ache name, | |
273 | */ | |
274 | privat e static f inal Strin g EHCACHE_ NAME_SITEM AP = "EHCA CHE_NAME_S ITEMAP"; | |
275 | ||
276 | /** | |
277 | * CNe tworkMap's EHCache n ame, | |
278 | */ | |
279 | privat e static f inal Strin g EHCACHE_ NAME_CNETW ORKMAP = " EHCACHE_NA ME_CNETWOR KMAP"; | |
280 | ||
281 | /** | |
282 | * CPa inMedVuidM ap's EHCac he name, | |
283 | */ | |
284 | privat e static f inal Strin g EHCACHE_ KEY_CPAINM EDVUID_MAP = "EHCACH E_KEY_CPAI NMEDVUID_M AP"; | |
285 | ||
286 | /** | |
287 | * RPC endpoint environmen t (enterpr ise, hrg, etc.), | |
288 | */ | |
289 | privat e static f inal Strin g RPC_ENDP OINT_ENVIR ONMENT = " RPC_ENDPOI NT_ENVIRON MENT"; | |
290 | ||
291 | /** | |
292 | * CAC HE endpoin t environm ent (enter prise, hrg , etc.), | |
293 | */ | |
294 | privat e static f inal Strin g CACHE_EN DPOINT_ENV IRONMENT = "CACHE_EN DPOINT_ENV IRONMENT"; | |
295 | ||
296 | /** | |
297 | * Sha re endpoin t environm ent, | |
298 | */ | |
299 | privat e static f inal Strin g SHARE_EN DPOINT_ENV IRONMENT = "SHARE_EN DPOINT_ENV IRONMENT"; | |
300 | ||
301 | /** | |
302 | * Med web endpoi nt environ ment, | |
303 | */ | |
304 | privat e static f inal Strin g MEDWEB_E NDPOINT_EN VIRONMENT = "MEDWEB_ ENDPOINT_E NVIRONMENT "; | |
305 | privat e static f inal Strin g AHLTA_EN DPOINT_ENV IRONMENT = "AHLTA_EN DPOINT_ENV IRONMENT"; | |
306 | /** st atic const ants **/ | |
307 | privat e static f inal Strin g CONST_DO DADAPTER_S OURCE_STAT US_REPORT_ FLAG = "DO DADAPTER_S OURCE_STAT US_REPORT" ; | |
308 | privat e final st atic Strin g CONST_SY STEM_TYPE_ CHCS = "CH CS"; | |
309 | privat e final st atic Strin g CONST_SY STEM_TYPE_ VISTA = "V ISTA"; | |
310 | privat e final st atic Strin g CONST_SY STEM_TYPE_ SHARE = "S HARE"; | |
311 | privat e final st atic Strin g CONST_SY STEM_TYPE_ DOD_ADAPTE R = "DODAD APTER"; | |
312 | privat e final st atic Strin g IDENTIFI ER_UNAVAIL ABLE_FLAG = "IDENTIF IER_UNAVAI LABLE"; | |
313 | ||
314 | privat e final st atic Strin g CONST_SO URCE_PROTO COL_CACHE = "CACHE"; | |
315 | privat e final st atic Strin g CONST_SO URCE_PROTO COL_RPC = "RPC"; | |
316 | privat e final st atic Strin g CONST_SO URCE_PROTO COL_SHARE = "SHARE"; | |
317 | privat e final st atic Strin g CONST_SO URCE_PROTO COL_MEDWEB = "MEDWEB "; | |
318 | privat e final st atic Strin g CONST_SO URCE_PROTO COL_DOD_AD APTER = "D ODADAPTER" ; | |
319 | ||
320 | privat e final st atic Strin g USE_TERM _MAPPING_C ACHE = "US E_TERM_MAP PING_CACHE "; | |
321 | ||
322 | privat e final st atic Strin g LOAD_VLE R_SITE_CAC HE = "LOAD _VLER_SITE _CACHE"; | |
323 | ||
324 | privat e final st atic Strin g USE_SNAR EWORKS = " USE_SNAREW ORKS"; | |
325 | ||
326 | /** | |
327 | * DMI S IDs and facilities used for mapping DM IS IDs to clinic nam es for pat ient demog raphic's P CM clinic. | |
328 | */ | |
329 | privat e final st atic Strin g DMIS_FIL E_NAME = " DMIS_FILE_ NAME"; | |
330 | privat e final st atic Strin g DMIS_TOK EN_DELIM = "DMIS_TOK EN_DELIM"; | |
331 | privat e final st atic Strin g DMIS_ID_ TOKEN_POS = "DMIS_ID _TOKEN_POS "; | |
332 | privat e final st atic Strin g DMIS_NAM E_TOKEN_PO S = "DMIS_ NAME_TOKEN _POS"; | |
333 | ||
334 | /** | |
335 | * Res et Passwor d Properti es | |
336 | */ | |
337 | privat e final st atic Strin g RESET_PW _URL_BASE = "RESET_P W_URL_BASE "; | |
338 | privat e final st atic Strin g RESET_PW _TIMEOUT_H RS = "RESE T_PW_TIMEO UT_HRS"; | |
339 | privat e final st atic Strin g RESET_PW _TIMEOUT_M IN = "RESE T_PW_TIMEO UT_MIN"; | |
340 | privat e final st atic Strin g RESET_PW _EMAIL_HOS T = "RESET _PW_EMAIL_ HOST"; | |
341 | privat e final st atic Strin g RESET_PW _EMAIL_POR T = "RESET _PW_EMAIL_ PORT"; | |
342 | privat e final st atic Strin g RESET_PW _EMAIL_AUT H_ENCRYPT_ UN = "RESE T_PW_EMAIL _AUTH_ENCR YPT_UN"; | |
343 | privat e final st atic Strin g RESET_PW _EMAIL_AUT H_ENCRYPT_ PW = "RESE T_PW_EMAIL _AUTH_ENCR YPT_PW"; | |
344 | privat e final st atic Strin g RESET_PW _EMAIL_FRO M = "RESET _PW_EMAIL_ FROM"; | |
345 | privat e final st atic Strin g RESET_PW _EMAIL_SUB JECT = "RE SET_PW_EMA IL_SUBJECT "; | |
346 | privat e final st atic Strin g RESET_PW _EMAIL_BOD Y = "RESET _PW_EMAIL_ BODY"; | |
347 | ||
348 | privat e final st atic Strin g ENABLE_V IX_DOD_RAD IOLOGY_RET RIEVE = "E NABLE_VIX_ DOD_RADIOL OGY_RETRIE VE"; | |
349 | privat e final st atic Strin g VIX_DOD_ RAD_EXAM_I D_DELIM = "VIX_DOD_R AD_EXAM_ID _DELIM"; | |
350 | ||
351 | privat e final st atic Strin g USE_ENHA NCED_DEBUG = "USE_EN HANCED_DEB UG"; | |
352 | ||
353 | /* | |
354 | * Pai n Manageme nt | |
355 | */ | |
356 | privat e final st atic Strin g PAIN_MGM T_NOTES_KE YWORDS = " PAIN_MGMT_ NOTES_KEYW ORDS"; | |
357 | ||
358 | privat e static f inal AppCo nfig INSTA NCE = new AppConfig( ); | |
359 | ||
360 | privat e Properti es appConf igProp; | |
361 | ||
362 | privat e AppConfi g() { | |
363 | ap pConfigPro p = new Pr operties() ; | |
364 | ||
365 | Cl assLoader classLoade r = AppCon fig.class. getClassLo ader(); | |
366 | ||
367 | if (classLoa der == nul l) { | |
368 | throw ne w NullPoin terExcepti on("ClassL oader is n ull!"); | |
369 | } | |
370 | ||
371 | In putStream inputStrea m = null; | |
372 | ||
373 | tr y { | |
374 | inputStr eam = clas sLoader.ge tResourceA sStream("a pplication .propertie s"); | |
375 | appConfi gProp.load (inputStre am); | |
376 | } catch (IOE xception e ) { | |
377 | throw ne w RuntimeE xception(e ); | |
378 | } finally { | |
379 | ||
380 | try { | |
381 | if ( inputStrea m != null) { | |
382 | inputStrea m.close(); | |
383 | } | |
384 | } catch (IOExcepti on e) { | |
385 | LOGG ER.error(e .getMessag e()); | |
386 | } | |
387 | } | |
388 | ||
389 | tr y { | |
390 | inputStr eam = clas sLoader.ge tResourceA sStream(St ring.forma t("appconf ig-%s.prop erties", a ppConfigPr op.get(APP _ENVIRONME NT))); | |
391 | appConfi gProp.load (inputStre am); | |
392 | } catch (IOE xception e ) { | |
393 | throw ne w RuntimeE xception(e ); | |
394 | } finally { | |
395 | ||
396 | try { | |
397 | if ( inputStrea m != null) { | |
398 | inputStrea m.close(); | |
399 | } | |
400 | } catch (IOExcepti on e) { | |
401 | LOGG ER.error(e .getMessag e()); | |
402 | } | |
403 | } | |
404 | } | |
405 | ||
406 | // priv ate void l ogConfigs( ) | |
407 | // { | |
408 | // //log some jMeadows configurat ion values | |
409 | // logger.inf o("Local V A site cod e: {}", ge tLocalVASi teCode()); | |
410 | // logger.inf o("Local V A site nam e: {}", ge tLocalVASi teName()); | |
411 | // logger.inf o("Local V A site mon iker: {}", getLocalV ASiteMonik er()); | |
412 | // | |
413 | // logger.inf o("Local D oD site co de: {}", g etLocalDOD SiteCode() ); | |
414 | // logger.inf o("Local D oD site na me: {}", g etLocalDOD SiteName() ); | |
415 | // logger.inf o("Local D oD site mo niker {}", getLocalD ODSiteName ()); | |
416 | // | |
417 | // logger.inf o("MPI ena bled: {}", isMPIEnab led()); | |
418 | // logger.inf o("Pix ser vice enabl ed: {}", i sPIXServic eEnabled() ); | |
419 | ||
420 | // logger.inf o("Utilize MSI locat ion's url as webserv ice endpoi nt value: {}", useMS IEndpoint( )); | |
421 | // logger.inf o("Query u ser locati on using N PI enabled : {}", isP roviderNPI LocationQu eryEnabled ()); | |
422 | // | |
423 | // logger.inf o("CHCSWS endpoint: {}", getCH CSWSURL()) ; | |
424 | // logger.inf o("VistaDa taService endpoint: {}", getVi staWsURL() ); | |
425 | // logger.inf o("PIX ser vice endpo int: {}", getPIXURL( )); | |
426 | // logger.inf o("BHIERel ayService endpoint: {}", getBH IERelaySer viceURL()) ; | |
427 | // logger.inf o("JALFHCC alert ser vice endpo int: {}", getAlertSe rviceURL() ); | |
428 | // logger.inf o("DREnj e nabled: {} ", isDREnj ServiceEna bled()); | |
429 | // logger.inf o("DREnj U RL: {}", g etDREnjURL ()); | |
430 | // logger.inf o("SHARE e nabled: {} ", isShare ServiceEna bled()); | |
431 | // logger.inf o("SHARE U RL: {}", g etShareURL ()); | |
432 | // logger.inf o("PDWS UR L: {}", ge tPDWSURL() ); | |
433 | // | |
434 | // logger.inf o("BHIE al lergies en abled: {}" , isBHIEAl lergiesEna bled()); | |
435 | // logger.inf o("BHIE pr oblems lis t enabled: {}", isBH IEProblems Enabled()) ; | |
436 | // logger.inf o("BHIE pr ogress not es enabled : {}", isB HIEProgres sNotesEnab led()); | |
437 | // logger.inf o("BHIE di scharge su mmaries en abled: {}" + isBHIED ischargeSu mmariesEna bled()); | |
438 | // logger.inf o("BHIE vi tals enabl ed: {}", i sBHIEVital sEnabled() ); | |
439 | // logger.inf o("BHIE ap pointments enabled: {}", isBHI EAppointme ntsEnabled ()); | |
440 | // logger.inf o("BHIE co nsults ena bled: {}", isBHIECon sultsEnabl ed()); | |
441 | // logger.inf o("BHIE de mographics enabled: {}", isBHI EDemograph icDetailsE nabled()); | |
442 | // logger.inf o("BHIE de mographic details en abled: {}" , isBHIEDe mographicD etailsEnab led()); | |
443 | // logger.inf o("BHIE ou tpatient m edications enabled: {}", isBHI EOutpatien tMedicatio nsEnabled( )); | |
444 | // logger.inf o("BHIE in patient me dications enabled: { }" + isBHI EInpatient Medication sEnabled() ); | |
445 | // logger.inf o("BHIE ra diology re sults enab led: {}" + isBHIERad iologyEnab led()); | |
446 | // | |
447 | // logger.inf o("BHIE ut ilize pati ent EDIPN (EDIPI): { }", isBHIE UtilizePat ientEDIPN( )); | |
448 | // logger.inf o("BHIE CH CS namespa ce: {}", g etBHIECHCS Namespace( )); | |
449 | // } | |
450 | ||
451 | public static fi nal AppCon fig getIns tance() { | |
452 | re turn INSTA NCE; | |
453 | } | |
454 | ||
455 | /** | |
456 | * Sit e moniker to return with BHIE error bean (utilized when BHIE connectio n is unava ilable). | |
457 | */ | |
458 | public final Str ing getBHI EErrorSite Moniker() { | |
459 | re turn appCo nfigProp.g etProperty (BHIE_ERRO R_SITE_MON IKER); | |
460 | } | |
461 | ||
462 | /** | |
463 | * jMe adows vers ion number . | |
464 | */ | |
465 | public final Str ing getApp Version() { | |
466 | re turn appCo nfigProp.g etProperty (APP_VERSI ON); | |
467 | } | |
468 | ||
469 | public final Str ing getDat aSource() { | |
470 | re turn appCo nfigProp.g etProperty (APP_DATAS OURCE); | |
471 | } | |
472 | ||
473 | /** | |
474 | * jMe adows app environmen t. | |
475 | */ | |
476 | public final Str ing getApp Environmen t() { | |
477 | re turn appCo nfigProp.g etProperty (APP_ENVIR ONMENT); | |
478 | } | |
479 | ||
480 | /** | |
481 | * log 4j propert ies file p ath. | |
482 | */ | |
483 | public final Str ing getLog 4jProperti es() { | |
484 | re turn appCo nfigProp.g etProperty (LOG4J_PRO PERTIES); | |
485 | } | |
486 | ||
487 | /** | |
488 | * CHC SWS endpoi nt. | |
489 | */ | |
490 | public final Str ing getCHC SWSURL() { | |
491 | re turn appCo nfigProp.g etProperty (CHCS_URL) ; | |
492 | } | |
493 | ||
494 | /** BH IE/DoD ada pter clini cal domain enablemen t configur ations. BH IE use is for DoD da ta only, n ot VA. | |
495 | * Pl ease note that if BH IE IS enab led for a given doma in CHCS wi ll NOT be queried. | |
496 | * Li kewise, if BHIE is N OT enabled , CHCS is queried by default. | |
497 | **/ | |
498 | ||
499 | /** | |
500 | * Vis taDataServ ice endpoi nt. | |
501 | */ | |
502 | public final Str ing getVis taWsURL() { | |
503 | re turn appCo nfigProp.g etProperty (VISTA_URL ); | |
504 | } | |
505 | ||
506 | /** | |
507 | * MVI endpoint. | |
508 | */ | |
509 | public final Str ing getMVI URL() { | |
510 | re turn appCo nfigProp.g etProperty (MVI_URL); | |
511 | } | |
512 | ||
513 | /** | |
514 | * MVI HL7 Messa ge Sender Device ID. | |
515 | */ | |
516 | public final Str ing getMVI SndDevId() { return appConfigP rop.getPro perty(MVI_ SND_DEV_ID ); } | |
517 | ||
518 | /** | |
519 | * Res trict VA u ser access to DoD-on ly patient informati on. | |
520 | */ | |
521 | public final Str ing getVaU serRestric t() { | |
522 | re turn appCo nfigProp.g etProperty (VA_USER_R ESTRICT); | |
523 | } | |
524 | ||
525 | /** | |
526 | * All ow VA user access to DoD-only patient in formation (Audited a nd prompte d). | |
527 | */ | |
528 | public final Str ing getVaU serAllowRe strictAcce ss() { | |
529 | re turn appCo nfigProp.g etProperty (VA_USER_A LLOW_RESTR ICT_ACCESS ); | |
530 | } | |
531 | ||
532 | /** | |
533 | * PIX service e ndpoint. | |
534 | */ | |
535 | public final Str ing getPIX URL() { | |
536 | re turn appCo nfigProp.g etProperty (PIX_URL); | |
537 | } | |
538 | ||
539 | /** | |
540 | * BHI ERelayServ ice endpoi nt. | |
541 | */ | |
542 | public final Str ing getBHI ERelayServ iceURL() { | |
543 | re turn appCo nfigProp.g etProperty (BHIE_RELA Y_SERVICE_ URL); | |
544 | } | |
545 | ||
546 | /** | |
547 | * PDW SService e ndpoint. | |
548 | */ | |
549 | public final Str ing getPdw sPsUrl() { | |
550 | re turn appCo nfigProp.g etProperty (PDWS_PS_U RL); | |
551 | } | |
552 | public final Str ing getPdw sPrUrl() { return ap pConfigPro p.getPrope rty(PDWS_P R_URL); } | |
553 | public final Str ing getPdw sFsUrl() { | |
554 | re turn appCo nfigProp.g etProperty (PDWS_FS_U RL); | |
555 | } | |
556 | public final Str ing getPdw sFrUrl() { return ap pConfigPro p.getPrope rty(PDWS_F R_URL); } | |
557 | ||
558 | /** | |
559 | * PDW SService e ndpoint. | |
560 | */ | |
561 | public final Str ing getPDW SProcCode( ) { | |
562 | re turn appCo nfigProp.g etProperty (PDWS_PROC _CODE); | |
563 | } | |
564 | ||
565 | /** | |
566 | * PDW SService e ndpoint. | |
567 | */ | |
568 | public final Str ing getPDW SSndDevId( ) { | |
569 | re turn appCo nfigProp.g etProperty (PDWS_SND_ DEV_ID); | |
570 | } | |
571 | ||
572 | /** | |
573 | * PDW SService d ebug flag. | |
574 | */ | |
575 | public final Str ing getPDW SDebugFlag () { | |
576 | re turn appCo nfigProp.g etProperty (DEBUG_SOA P_OUTPUT); | |
577 | } | |
578 | ||
579 | ||
580 | /** | |
581 | * CHC SWS userna me. | |
582 | */ | |
583 | public final Str ing getCHC SWSUsernam e() { | |
584 | re turn Encry ptUtil.dec rypt(appCo nfigProp.g etProperty (CHCSWS_US ERNAME)); | |
585 | } | |
586 | ||
587 | /** | |
588 | * CHC SWS pw. | |
589 | */ | |
590 | public final Str ing getCHC SWSPasswor d() { | |
591 | re turn Encry ptUtil.dec rypt(appCo nfigProp.g etProperty (CHCSWS_PW )); | |
592 | } | |
593 | ||
594 | /** | |
595 | * BHI ERelayServ ice userna me. | |
596 | */ | |
597 | public final Str ing getBHI ERelayServ iceUsernam e() { | |
598 | re turn Encry ptUtil.dec rypt(appCo nfigProp.g etProperty (BHIE_RELA Y_SERVICE_ USERNAME)) ; | |
599 | } | |
600 | ||
601 | /** | |
602 | * BHI ERelayServ ice pw. | |
603 | */ | |
604 | public final Str ing getBHI ERelayServ icePasswor d() { | |
605 | re turn Encry ptUtil.dec rypt(appCo nfigProp.g etProperty (BHIE_RELA Y_SERVICE_ PW)); | |
606 | } | |
607 | ||
608 | /** | |
609 | * tru e to relax SSL v3 se curity req uirements. (Use this for debug ging purpo ses only!) . | |
610 | */ | |
611 | public final boo lean isTru stAllSSLHo stnameAndC erts() { | |
612 | re turn Boole an.valueOf (appConfig Prop.getPr operty(IS_ TRUST_ALL_ SSL_HOSTNA MES_AND_CE RTS)); | |
613 | } | |
614 | ||
615 | /** | |
616 | * tru e to utili ze C3PO fo r as the s ql connect ion poolin g api. | |
617 | * If false, def aults to u tilizing J NDI lookup for conne ction pool . | |
618 | */ | |
619 | public final boo lean useC3 PO() { | |
620 | re turn Boole an.valueOf (appConfig Prop.getPr operty(USE _C3PO)); | |
621 | } | |
622 | ||
623 | /** | |
624 | * SQL server JD BC connect ion string (for use with C3PO) . | |
625 | */ | |
626 | public final Str ing getSQL URL() { | |
627 | re turn appCo nfigProp.g etProperty (SQL_URL); | |
628 | } | |
629 | ||
630 | /** | |
631 | * SQL server JD BC connect ion string (for use with C3PO) . | |
632 | */ | |
633 | public final Str ing getSQL URLEncrypt ed() { | |
634 | re turn appCo nfigProp.g etProperty (SQL_URL_E NCRYPTED); | |
635 | } | |
636 | ||
637 | /** | |
638 | * SQL server dr iver (for use with C 3PO). | |
639 | */ | |
640 | public final Str ing getSQL Driver() { | |
641 | re turn appCo nfigProp.g etProperty (SQL_DRIVE R); | |
642 | } | |
643 | ||
644 | /** | |
645 | * JDN I connecti on pooling lookup na me. | |
646 | */ | |
647 | public final Str ing getJDB C_JNDILook up() { | |
648 | re turn appCo nfigProp.g etProperty (JNDI_JDBC ); | |
649 | } | |
650 | ||
651 | /** | |
652 | * JDN I connecti on pooling lookup na me. | |
653 | */ | |
654 | public final Str ing getJDB C_JNDILook upEncrypte d() { | |
655 | re turn appCo nfigProp.g etProperty (JNDI_JDBC _ENCRYPTED ); | |
656 | } | |
657 | ||
658 | /** | |
659 | * Gen eral servi ce request timeout s etting in millisecon ds. | |
660 | */ | |
661 | public final int getReques tTimeoutMS () { | |
662 | re turn Integ er.parseIn t(appConfi gProp.getP roperty(RE QUEST_TIME OUT_MS)); | |
663 | } | |
664 | ||
665 | /** | |
666 | * Gen eral servi ce connect ion timeou t setting in millise conds. | |
667 | */ | |
668 | public final int getConnec tionTimeou tMS() { | |
669 | re turn Integ er.parseIn t(appConfi gProp.getP roperty(CO NNECTION_T IMEOUT_MS) ); | |
670 | } | |
671 | ||
672 | /** | |
673 | * Gen eral threa d timeout in millise conds. | |
674 | */ | |
675 | public final lon g getThrea dTimeoutMS () { | |
676 | re turn Long. parseLong( appConfigP rop.getPro perty(THRE AD_TIMEOUT _MS)); | |
677 | } | |
678 | ||
679 | /** | |
680 | * VLE R service request ti meout sett ing in mil liseconds. | |
681 | */ | |
682 | public final int getVLERRe questTimeo utMS() { | |
683 | re turn Integ er.parseIn t(appConfi gProp.getP roperty(VL ER_REQUEST _TIMEOUT_M S)); | |
684 | } | |
685 | ||
686 | /** | |
687 | * VLE R service connection timeout s etting in millisecon ds. | |
688 | */ | |
689 | public final int getVLERCo nnectionTi meoutMS() { | |
690 | re turn Integ er.parseIn t(appConfi gProp.getP roperty(VL ER_CONNECT ION_TIMEOU T_MS)); | |
691 | } | |
692 | ||
693 | /** | |
694 | * BHI E custodia n OIDs. Ea ch OID rep resents a particular data site that BHIE aggregate s from. | |
695 | * The se custodi an OIDs ar e included as BHIE q uery inclu ded or exc luded site parameter s. | |
696 | */ | |
697 | ||
698 | /** | |
699 | * Def ault error message s tring. | |
700 | */ | |
701 | public final Str ing getErr orMsgConne ctionUnava ilable() { | |
702 | re turn appCo nfigProp.g etProperty (ERROR_MSG _CONNECTIO N_UNAVAILA BLE); | |
703 | } | |
704 | ||
705 | /** | |
706 | * Def ault edr s ervice rel ated error message s tring. | |
707 | */ | |
708 | public final Str ing getErr orMsgEDRDo cs() { | |
709 | re turn appCo nfigProp.g etProperty (ERROR_MSG _EDR_DOCS) ; | |
710 | } | |
711 | ||
712 | /** | |
713 | * AHL TA custodi an OID. | |
714 | */ | |
715 | public final Str ing getBHI ECustodian OidAHLTA() { | |
716 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ AHLTA); | |
717 | } | |
718 | ||
719 | /** | |
720 | * VA custodian OID. | |
721 | */ | |
722 | public final Str ing getBHI ECustodian OidVA() { | |
723 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ VA); | |
724 | } | |
725 | ||
726 | /** | |
727 | * TMD S custodia n OID. | |
728 | */ | |
729 | public final Str ing getBHI ECustodian OidTMDS() { | |
730 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ TMDS); | |
731 | } | |
732 | ||
733 | /** | |
734 | * FHI E custodia n OID. | |
735 | */ | |
736 | public final Str ing getBHI ECustodian OidFHIE() { | |
737 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ FHIE); | |
738 | } | |
739 | ||
740 | /** | |
741 | * ESS ENTRIS cus todian OID . | |
742 | */ | |
743 | public final Str ing getBHI ECustodian OidESS() { | |
744 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ ESS); | |
745 | } | |
746 | ||
747 | /** | |
748 | * CHC S custodia n OID. | |
749 | */ | |
750 | public final Str ing getBHI ECustodian OidCHCS() { | |
751 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ CHCS); | |
752 | } | |
753 | ||
754 | /** | |
755 | * SHA RE custodi an OID. | |
756 | */ | |
757 | public final Str ing getBHI ECustodian OidSHARE() { | |
758 | re turn appCo nfigProp.g etProperty (BHIE_CUST ODIAN_OID_ SHARE); | |
759 | } | |
760 | ||
761 | /** | |
762 | * Sit e code to return wit h BHIE err or beans ( utilized w hen BHIE c onnection is unavail able). | |
763 | */ | |
764 | public final Str ing getBHI EErrorSite Code() { | |
765 | re turn appCo nfigProp.g etProperty (BHIE_ERRO R_SITE_COD E); | |
766 | } | |
767 | ||
768 | /** | |
769 | * Sit e name to return wit h BHIE err or bean (u tilized wh en BHIE co nnection i s unavaila ble). | |
770 | */ | |
771 | public final Str ing getBHI EErrorSite Name() { | |
772 | re turn appCo nfigProp.g etProperty (BHIE_ERRO R_SITE_NAM E); | |
773 | } | |
774 | ||
775 | /** | |
776 | * The local VA facility's patient I EN OID - f or use wit h the PIX Service pa tient iden tifier map . | |
777 | * (2. 16.840.1.1 13883.3.42 .10006.100 005.8 for North Chic ago VA) | |
778 | */ | |
779 | public final Str ing getLoc alVAIenOid () { | |
780 | re turn appCo nfigProp.g etProperty (LOCAL_VA_ IEN_OID); | |
781 | } | |
782 | ||
783 | /** | |
784 | * Vis ta enterpr ise ICN OI D - for us e with the PIX Servi ce patient identifie r map. | |
785 | */ | |
786 | public final Str ing getVis taIcnOid() { | |
787 | re turn appCo nfigProp.g etProperty (VISTA_ICN _OID); | |
788 | } | |
789 | ||
790 | public final Str ing getDOD EdipnOid() { | |
791 | re turn appCo nfigProp.g etProperty (DOD_EDIPN _OID); | |
792 | } | |
793 | ||
794 | /** | |
795 | * VA agency nam e string S hould be c onfigured as VA | |
796 | */ | |
797 | public final Str ing getAge ncyVA() { | |
798 | re turn appCo nfigProp.g etProperty (AGENCY_VA ); | |
799 | } | |
800 | ||
801 | /** | |
802 | * DOD agency na me string. Should be configure d as DOD | |
803 | */ | |
804 | public final Str ing getAge ncyDOD() { | |
805 | re turn appCo nfigProp.g etProperty (AGENCY_DO D); | |
806 | } | |
807 | ||
808 | //meth ods that r eturn stat ic constan ts | |
809 | ||
810 | public final Str ing getDOD AdapterSou rceStatusR eportFlag( ) { | |
811 | re turn CONST _DODADAPTE R_SOURCE_S TATUS_REPO RT_FLAG; | |
812 | } | |
813 | ||
814 | public final Str ing getSys temTypeCHC S() { | |
815 | re turn CONST _SYSTEM_TY PE_CHCS; | |
816 | } | |
817 | ||
818 | public final Str ing getSys temTypeVIS TA() { | |
819 | re turn CONST _SYSTEM_TY PE_VISTA; | |
820 | } | |
821 | ||
822 | public final Str ing getCon stSystemTy peShare() { | |
823 | re turn CONST _SYSTEM_TY PE_SHARE; | |
824 | } | |
825 | ||
826 | public final Str ing getSys temTypeDOD Adapter() { | |
827 | re turn CONST _SYSTEM_TY PE_DOD_ADA PTER; | |
828 | } | |
829 | ||
830 | public final Str ing getSou rceProtoco lCache() { | |
831 | re turn CONST _SOURCE_PR OTOCOL_CAC HE; | |
832 | } | |
833 | ||
834 | public final Str ing getSou rceProtoco lRPC() { | |
835 | re turn CONST _SOURCE_PR OTOCOL_RPC ; | |
836 | } | |
837 | ||
838 | public final Str ing getSou rceProtoco lMedweb() { | |
839 | re turn CONST _SOURCE_PR OTOCOL_MED WEB; | |
840 | } | |
841 | ||
842 | public final Str ing getSou rceProtoco lDODAdapte r() { | |
843 | re turn CONST _SOURCE_PR OTOCOL_DOD _ADAPTER; | |
844 | } | |
845 | ||
846 | public final Str ing getSou rceProtoco lShare() { | |
847 | re turn CONST _SOURCE_PR OTOCOL_SHA RE; | |
848 | } | |
849 | ||
850 | public final Str ing getIde ntifierUna vailableFl ag() { | |
851 | re turn IDENT IFIER_UNAV AILABLE_FL AG; | |
852 | } | |
853 | ||
854 | public final Str ing getEHC acheNameSi teMap() { return app ConfigProp .getProper ty(EHCACHE _NAME_SITE MAP); } | |
855 | ||
856 | public final Str ing getEHC acheNameCN etworkMap( ) { return appConfig Prop.getPr operty(EHC ACHE_NAME_ CNETWORKMA P); } | |
857 | ||
858 | public final Str ing getEHC acheNameCP ainMedVuid Map() { re turn appCo nfigProp.g etProperty (EHCACHE_K EY_CPAINME DVUID_MAP) ; } | |
859 | ||
860 | public final Str ing getRPC EndpointEn vironment( ) { | |
861 | re turn appCo nfigProp.g etProperty (RPC_ENDPO INT_ENVIRO NMENT); | |
862 | } | |
863 | ||
864 | public final Str ing getCac heEndpoint Environmen t() { | |
865 | re turn appCo nfigProp.g etProperty (CACHE_END POINT_ENVI RONMENT); | |
866 | } | |
867 | ||
868 | public final Str ing getSha reEndpoint Environmen t() { | |
869 | re turn appCo nfigProp.g etProperty (SHARE_END POINT_ENVI RONMENT); | |
870 | } | |
871 | ||
872 | public final Str ing getMed webEndpoin tEnvironme nt() { | |
873 | re turn appCo nfigProp.g etProperty (MEDWEB_EN DPOINT_ENV IRONMENT); | |
874 | } | |
875 | ||
876 | public final Str ing getAhl taEndpoint Environmen t() { | |
877 | re turn appCo nfigProp.g etProperty (AHLTA_END POINT_ENVI RONMENT); | |
878 | } | |
879 | ||
880 | public final Str ing getLoc alCHCSSite Code() { | |
881 | re turn appCo nfigProp.g etProperty (LOCAL_CHC S_SITECODE ); | |
882 | } | |
883 | ||
884 | public final Str ing getLoc alVistaSit eCode() { | |
885 | re turn appCo nfigProp.g etProperty (LOCAL_VIS TA_SITECOD E); | |
886 | } | |
887 | ||
888 | /** | |
889 | * tru e to utili ze HashMap as cache for termin ology mapp ing. | |
890 | * If false, to utilize SQ L server f or mapping without h ashmap cac he. | |
891 | */ | |
892 | public final boo lean useTe rmMappingC ache() { | |
893 | re turn Boole an.valueOf (appConfig Prop.getPr operty(USE _TERM_MAPP ING_CACHE) ); | |
894 | } | |
895 | ||
896 | /** | |
897 | * Loa d mapping data from SQL Server on startu p. | |
898 | */ | |
899 | public final boo lean loadV LERSiteCac he() { | |
900 | re turn Boole an.valueOf (appConfig Prop.getPr operty(LOA D_VLER_SIT E_CACHE)); | |
901 | } | |
902 | ||
903 | /** | |
904 | * tru e to use s nareworks instead of database whitelist. | |
905 | */ | |
906 | public final boo lean useSn areworks() { | |
907 | re turn Boole an.valueOf (appConfig Prop.getPr operty(USE _SNAREWORK S)); | |
908 | } | |
909 | ||
910 | /** | |
911 | * DMI S IDs and facilities used for mapping DM IS IDs to clinic nam es for pat ient demog raphic's P CM clinic | |
912 | */ | |
913 | public final Str ing getDmi sFileName( ) { | |
914 | re turn appCo nfigProp.g etProperty (DMIS_FILE _NAME); | |
915 | } | |
916 | public final Str ing getDmi sTokenDeli m() { | |
917 | re turn appCo nfigProp.g etProperty (DMIS_TOKE N_DELIM); | |
918 | } | |
919 | public final int getDmisId TokenPos() { | |
920 | re turn Integ er.parseIn t(appConfi gProp.getP roperty(DM IS_ID_TOKE N_POS)); | |
921 | } | |
922 | public final int getDmisNa meTokenPos () { | |
923 | re turn Integ er.parseIn t(appConfi gProp.getP roperty(DM IS_NAME_TO KEN_POS)); | |
924 | } | |
925 | ||
926 | public final boo lean isVix DodRadiolo gyRetrieve Enabled() { | |
927 | re turn Boole an.valueOf (appConfig Prop.getPr operty(ENA BLE_VIX_DO D_RADIOLOG Y_RETRIEVE , "false") ); | |
928 | } | |
929 | ||
930 | public final Str ing getVix DodRadExam IdDelim() { | |
931 | re turn appCo nfigProp.g etProperty (VIX_DOD_R AD_EXAM_ID _DELIM, "# - "); | |
932 | } | |
933 | ||
934 | /**--- ---------- ---------- ---------- ---------- --- | |
935 | * Com munityView er EMAIL C onfigurati on Propert ies | |
936 | **--- ---------- ---------- ---------- ---------- ---*/ | |
937 | public final Str ing getEma ilAuthEncr yptUsernam e() {retur n appConfi gProp.getP roperty("E MAIL_AUTH_ ENCRYPT_UN ");} | |
938 | public final Str ing getEma ilAuthEncr yptPasswor d() { retu rn appConf igProp.get Property(" EMAIL_AUTH _ENCRYPT_P W"); } | |
939 | public final Str ing getEma ilHost() { return ap pConfigPro p.getPrope rty("EMAIL _HOST"); } | |
940 | public final Str ing getEma ilSSLPort( ) { return appConfig Prop.getPr operty("EM AIL_SSL_PO RT"); } | |
941 | public final Str ing getEma ilFrom() { return ap pConfigPro p.getPrope rty("EMAIL _FROM"); } | |
942 | public final Str ing getEma ilTo() { r eturn appC onfigProp. getPropert y("EMAIL_T O"); } | |
943 | public final Str ing getEma ilSubject( ) { return appConfig Prop.getPr operty("EM AIL_SUBJEC T"); } | |
944 | public final Str ing getEma ilSrcSys() { return appConfigP rop.getPro perty("EMA IL_SRC_SYS "); } | |
945 | ||
946 | /**--- ---------- ---------- -- | |
947 | * Res et Passwor d Properti es | |
948 | **--- ---------- ---------- --*/ | |
949 | public final Str ing getRes etPassword UrlBase() { return a ppConfigPr op.getProp erty("RESE T_PW_URL_B ASE"); } | |
950 | public final int getResetP asswordTim eoutHrs() { return I nteger.par seInt(appC onfigProp. getPropert y("RESET_P W_TIMEOUT_ HRS")); } | |
951 | public final int getResetP asswordTim eoutMin() { return I nteger.par seInt(appC onfigProp. getPropert y("RESET_P W_TIMEOUT_ MIN")); } | |
952 | public final Str ing getRes etPassword EmailHost( ) { return appConfig Prop.getPr operty("RE SET_PW_EMA IL_HOST"); } | |
953 | public final Str ing getRes etPassword EmailPort( ) { return appConfig Prop.getPr operty("RE SET_PW_EMA IL_PORT"); } | |
954 | public final Str ing getRes etPassowrd EmailAuthE ncryptUser name() { r eturn appC onfigProp. getPropert y("RESET_P W_EMAIL_AU TH_ENCRYPT _UN"); } | |
955 | public final Str ing getRes etPassword EmailAuthE ncryptPass word() { r eturn appC onfigProp. getPropert y("RESET_P W_EMAIL_AU TH_ENCRYPT _PW"); } | |
956 | public final Str ing getRes etPassword EmailFrom( ) { return appConfig Prop.getPr operty("RE SET_PW_EMA IL_FROM"); } | |
957 | public final Str ing getRes etPassword EmailSubje ct() { ret urn appCon figProp.ge tProperty( "RESET_PW_ EMAIL_SUBJ ECT"); } | |
958 | public final Str ing getRes etPassword EmailBody( ) { return appConfig Prop.getPr operty("RE SET_PW_EMA IL_BODY"); } | |
959 | ||
960 | ||
961 | /** | |
962 | * tru e to use a ny enhance d debuggin g code | |
963 | */ | |
964 | public final boo lean useEn hancedDebu g() { | |
965 | re turn Boole an.valueOf (appConfig Prop.getPr operty(USE _ENHANCED_ DEBUG)); | |
966 | } | |
967 | ||
968 | /** | |
969 | * Pai n Manageme nt | |
970 | */ | |
971 | public final Str ing getPai nMgmtNotes Keywords() { return appConfigP rop.getPro perty("PAI N_MGMT_NOT ES_KEYWORD S", "PAIN" ); } | |
972 | ||
973 | /** | |
974 | * @re turn the a ppConfigPr op | |
975 | */ | |
976 | public Propertie s getPrope rties() { | |
977 | re turn appCo nfigProp; | |
978 | } | |
979 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.