@hcl-software/dxclient 227.0.0 → 229.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +4 -0
  2. package/dist/configuration/config.json +1 -0
  3. package/dist/package.json +11 -11
  4. package/dist/packages/admintasks/package-lock.json +8622 -15410
  5. package/dist/packages/admintasks/package.json +10 -6
  6. package/dist/packages/admintasks/src/commands/createCredentialVault.d.ts +2 -2
  7. package/dist/packages/admintasks/src/commands/createCredentialVault.js +61 -74
  8. package/dist/packages/admintasks/src/commands/createCredentialVault.js.map +1 -1
  9. package/dist/packages/admintasks/src/commands/createSyndicationRelation.d.ts +1 -1
  10. package/dist/packages/admintasks/src/commands/createSyndicationRelation.js +38 -49
  11. package/dist/packages/admintasks/src/commands/createSyndicationRelation.js.map +1 -1
  12. package/dist/packages/admintasks/src/commands/createVirtualPortal.d.ts +1 -1
  13. package/dist/packages/admintasks/src/commands/createVirtualPortal.js +33 -44
  14. package/dist/packages/admintasks/src/commands/createVirtualPortal.js.map +1 -1
  15. package/dist/packages/admintasks/src/commands/differentialReport.d.ts +1 -1
  16. package/dist/packages/admintasks/src/commands/differentialReport.js +107 -106
  17. package/dist/packages/admintasks/src/commands/differentialReport.js.map +1 -1
  18. package/dist/packages/admintasks/src/commands/exportVirtualPortal.d.ts +1 -1
  19. package/dist/packages/admintasks/src/commands/exportVirtualPortal.js +35 -46
  20. package/dist/packages/admintasks/src/commands/exportVirtualPortal.js.map +1 -1
  21. package/dist/packages/admintasks/src/commands/exportWCMLibrary.d.ts +1 -1
  22. package/dist/packages/admintasks/src/commands/exportWCMLibrary.js +104 -101
  23. package/dist/packages/admintasks/src/commands/exportWCMLibrary.js.map +1 -1
  24. package/dist/packages/admintasks/src/commands/importVirtualPortal.d.ts +1 -1
  25. package/dist/packages/admintasks/src/commands/importVirtualPortal.js +36 -47
  26. package/dist/packages/admintasks/src/commands/importVirtualPortal.js.map +1 -1
  27. package/dist/packages/admintasks/src/commands/importWCMLibrary.d.ts +1 -1
  28. package/dist/packages/admintasks/src/commands/importWCMLibrary.js +85 -82
  29. package/dist/packages/admintasks/src/commands/importWCMLibrary.js.map +1 -1
  30. package/dist/packages/admintasks/src/commands/listVirtualPortals.d.ts +1 -1
  31. package/dist/packages/admintasks/src/commands/listVirtualPortals.js +26 -37
  32. package/dist/packages/admintasks/src/commands/listVirtualPortals.js.map +1 -1
  33. package/dist/packages/admintasks/src/commands/pznRulesExport.d.ts +1 -1
  34. package/dist/packages/admintasks/src/commands/pznRulesExport.js +52 -63
  35. package/dist/packages/admintasks/src/commands/pznRulesExport.js.map +1 -1
  36. package/dist/packages/admintasks/src/commands/pznRulesImport.d.ts +1 -1
  37. package/dist/packages/admintasks/src/commands/pznRulesImport.js +103 -100
  38. package/dist/packages/admintasks/src/commands/pznRulesImport.js.map +1 -1
  39. package/dist/packages/admintasks/src/commands/resEnvProviderActions.d.ts +1 -1
  40. package/dist/packages/admintasks/src/commands/resEnvProviderActions.js +133 -130
  41. package/dist/packages/admintasks/src/commands/resEnvProviderActions.js.map +1 -1
  42. package/dist/packages/admintasks/src/commands/restartCorePods.d.ts +1 -1
  43. package/dist/packages/admintasks/src/commands/restartCorePods.js +19 -30
  44. package/dist/packages/admintasks/src/commands/restartCorePods.js.map +1 -1
  45. package/dist/packages/admintasks/src/commands/restartDXCore.d.ts +1 -1
  46. package/dist/packages/admintasks/src/commands/restartDXCore.js +52 -50
  47. package/dist/packages/admintasks/src/commands/restartDXCore.js.map +1 -1
  48. package/dist/packages/admintasks/src/errors/CommandLineMessages_en.json +1 -1
  49. package/dist/packages/admintasks/src/services/createSyndicationRelationServices.js +6 -15
  50. package/dist/packages/admintasks/src/services/createSyndicationRelationServices.js.map +1 -1
  51. package/dist/packages/admintasks/src/services/differentialReportService.js +8 -17
  52. package/dist/packages/admintasks/src/services/differentialReportService.js.map +1 -1
  53. package/dist/packages/admintasks/src/services/resEnvProviderService.js +54 -64
  54. package/dist/packages/admintasks/src/services/resEnvProviderService.js.map +1 -1
  55. package/dist/packages/admintasks/src/services/restartCorePodsService.js +7 -16
  56. package/dist/packages/admintasks/src/services/restartCorePodsService.js.map +1 -1
  57. package/dist/packages/admintasks/src/services/restartDXCoreService.js +15 -24
  58. package/dist/packages/admintasks/src/services/restartDXCoreService.js.map +1 -1
  59. package/dist/packages/admintasks/src/services/virtualPortalServices.js +40 -49
  60. package/dist/packages/admintasks/src/services/virtualPortalServices.js.map +1 -1
  61. package/dist/packages/admintasks/src/utils/differential-report-utils.js +1042 -1055
  62. package/dist/packages/admintasks/src/utils/differential-report-utils.js.map +1 -1
  63. package/dist/packages/dam/package-lock.json +3013 -6449
  64. package/dist/packages/dam/package.json +11 -7
  65. package/dist/packages/dam/src/commands/createSecrets.d.ts +1 -1
  66. package/dist/packages/dam/src/commands/createSecrets.js +38 -45
  67. package/dist/packages/dam/src/commands/createSecrets.js.map +1 -1
  68. package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.d.ts +1 -1
  69. package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.js +22 -33
  70. package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.js.map +1 -1
  71. package/dist/packages/dam/src/commands/deleteSchema.d.ts +1 -1
  72. package/dist/packages/dam/src/commands/deleteSchema.js +48 -59
  73. package/dist/packages/dam/src/commands/deleteSchema.js.map +1 -1
  74. package/dist/packages/dam/src/commands/exportAssets.d.ts +1 -1
  75. package/dist/packages/dam/src/commands/exportAssets.js +58 -69
  76. package/dist/packages/dam/src/commands/exportAssets.js.map +1 -1
  77. package/dist/packages/dam/src/commands/findDAMStagingMismatch.d.ts +1 -1
  78. package/dist/packages/dam/src/commands/findDAMStagingMismatch.js +25 -36
  79. package/dist/packages/dam/src/commands/findDAMStagingMismatch.js.map +1 -1
  80. package/dist/packages/dam/src/commands/importAssets.d.ts +1 -1
  81. package/dist/packages/dam/src/commands/importAssets.js +38 -49
  82. package/dist/packages/dam/src/commands/importAssets.js.map +1 -1
  83. package/dist/packages/dam/src/commands/listSchema.d.ts +1 -1
  84. package/dist/packages/dam/src/commands/listSchema.js +19 -30
  85. package/dist/packages/dam/src/commands/listSchema.js.map +1 -1
  86. package/dist/packages/dam/src/commands/stagingMismatchReport.d.ts +1 -1
  87. package/dist/packages/dam/src/commands/stagingMismatchReport.js +79 -76
  88. package/dist/packages/dam/src/commands/stagingMismatchReport.js.map +1 -1
  89. package/dist/packages/dam/src/commands/stagingResync.d.ts +1 -1
  90. package/dist/packages/dam/src/commands/stagingResync.js +25 -36
  91. package/dist/packages/dam/src/commands/stagingResync.js.map +1 -1
  92. package/dist/packages/dam/src/commands/subscriberDeRegistration.d.ts +1 -1
  93. package/dist/packages/dam/src/commands/subscriberDeRegistration.js +19 -30
  94. package/dist/packages/dam/src/commands/subscriberDeRegistration.js.map +1 -1
  95. package/dist/packages/dam/src/commands/subscriberDetails.d.ts +1 -1
  96. package/dist/packages/dam/src/commands/subscriberDetails.js +24 -35
  97. package/dist/packages/dam/src/commands/subscriberDetails.js.map +1 -1
  98. package/dist/packages/dam/src/commands/subscriberRegistration.d.ts +1 -1
  99. package/dist/packages/dam/src/commands/subscriberRegistration.js +34 -45
  100. package/dist/packages/dam/src/commands/subscriberRegistration.js.map +1 -1
  101. package/dist/packages/dam/src/commands/triggerDAMStaging.d.ts +1 -1
  102. package/dist/packages/dam/src/commands/triggerDAMStaging.js +19 -30
  103. package/dist/packages/dam/src/commands/triggerDAMStaging.js.map +1 -1
  104. package/dist/packages/dam/src/commands/triggerDamReindexing.d.ts +1 -1
  105. package/dist/packages/dam/src/commands/triggerDamReindexing.js +26 -38
  106. package/dist/packages/dam/src/commands/triggerDamReindexing.js.map +1 -1
  107. package/dist/packages/dam/src/commands/updateSecrets.d.ts +1 -1
  108. package/dist/packages/dam/src/commands/updateSecrets.js +36 -47
  109. package/dist/packages/dam/src/commands/updateSecrets.js.map +1 -1
  110. package/dist/packages/dam/src/commands/validateAssets.d.ts +1 -1
  111. package/dist/packages/dam/src/commands/validateAssets.js +29 -40
  112. package/dist/packages/dam/src/commands/validateAssets.js.map +1 -1
  113. package/dist/packages/dam/src/export/collection.d.ts +8 -8
  114. package/dist/packages/dam/src/export/collection.js +71 -80
  115. package/dist/packages/dam/src/export/collection.js.map +1 -1
  116. package/dist/packages/dam/src/export/favorite.d.ts +1 -1
  117. package/dist/packages/dam/src/export/favorite.js +10 -19
  118. package/dist/packages/dam/src/export/favorite.js.map +1 -1
  119. package/dist/packages/dam/src/export/media-item.d.ts +4 -4
  120. package/dist/packages/dam/src/export/media-item.js +61 -56
  121. package/dist/packages/dam/src/export/media-item.js.map +1 -1
  122. package/dist/packages/dam/src/export/media-type-group.d.ts +1 -1
  123. package/dist/packages/dam/src/export/media-type-group.js +7 -16
  124. package/dist/packages/dam/src/export/media-type-group.js.map +1 -1
  125. package/dist/packages/dam/src/export/media-type.d.ts +1 -1
  126. package/dist/packages/dam/src/export/media-type.js +7 -16
  127. package/dist/packages/dam/src/export/media-type.js.map +1 -1
  128. package/dist/packages/dam/src/export/renditions.d.ts +6 -6
  129. package/dist/packages/dam/src/export/renditions.js +78 -73
  130. package/dist/packages/dam/src/export/renditions.js.map +1 -1
  131. package/dist/packages/dam/src/import/collection.d.ts +3 -3
  132. package/dist/packages/dam/src/import/collection.js +26 -35
  133. package/dist/packages/dam/src/import/collection.js.map +1 -1
  134. package/dist/packages/dam/src/import/favorite.d.ts +1 -1
  135. package/dist/packages/dam/src/import/favorite.js +8 -17
  136. package/dist/packages/dam/src/import/favorite.js.map +1 -1
  137. package/dist/packages/dam/src/import/media-items.d.ts +3 -3
  138. package/dist/packages/dam/src/import/media-items.js +46 -41
  139. package/dist/packages/dam/src/import/media-items.js.map +1 -1
  140. package/dist/packages/dam/src/import/media-type-group.d.ts +1 -1
  141. package/dist/packages/dam/src/import/media-type-group.js +13 -22
  142. package/dist/packages/dam/src/import/media-type-group.js.map +1 -1
  143. package/dist/packages/dam/src/import/media-type.d.ts +1 -1
  144. package/dist/packages/dam/src/import/media-type.js +12 -21
  145. package/dist/packages/dam/src/import/media-type.js.map +1 -1
  146. package/dist/packages/dam/src/import/permission.d.ts +3 -3
  147. package/dist/packages/dam/src/import/permission.js +21 -30
  148. package/dist/packages/dam/src/import/permission.js.map +1 -1
  149. package/dist/packages/dam/src/import/renditions.d.ts +6 -6
  150. package/dist/packages/dam/src/import/renditions.js +69 -64
  151. package/dist/packages/dam/src/import/renditions.js.map +1 -1
  152. package/dist/packages/dam/src/services/authService.d.ts +1 -1
  153. package/dist/packages/dam/src/services/authService.js +9 -18
  154. package/dist/packages/dam/src/services/authService.js.map +1 -1
  155. package/dist/packages/dam/src/services/stagingService.js +76 -85
  156. package/dist/packages/dam/src/services/stagingService.js.map +1 -1
  157. package/dist/packages/dam/src/services/tokenCache.d.ts +1 -1
  158. package/dist/packages/dam/src/services/tokenCache.js +30 -41
  159. package/dist/packages/dam/src/services/tokenCache.js.map +1 -1
  160. package/dist/packages/dam/src/utils/constants.js +3 -3
  161. package/dist/packages/dam/src/utils/constants.js.map +1 -1
  162. package/dist/packages/dam/src/utils/service.js +59 -70
  163. package/dist/packages/dam/src/utils/service.js.map +1 -1
  164. package/dist/packages/dam/src/validation/collection-list-validate.js +26 -35
  165. package/dist/packages/dam/src/validation/collection-list-validate.js.map +1 -1
  166. package/dist/packages/dam/src/validation/media-list-validate.js +44 -39
  167. package/dist/packages/dam/src/validation/media-list-validate.js.map +1 -1
  168. package/dist/packages/dam/src/validation/media-type-group-validate.js +5 -14
  169. package/dist/packages/dam/src/validation/media-type-group-validate.js.map +1 -1
  170. package/dist/packages/dam/src/validation/media-type-validate.js +5 -14
  171. package/dist/packages/dam/src/validation/media-type-validate.js.map +1 -1
  172. package/dist/packages/dam/src/validation/root-validate.js +10 -19
  173. package/dist/packages/dam/src/validation/root-validate.js.map +1 -1
  174. package/dist/packages/dam/src/validation/validate.rendition.js +17 -26
  175. package/dist/packages/dam/src/validation/validate.rendition.js.map +1 -1
  176. package/dist/packages/dam/src/validation/validate.versions.js +16 -25
  177. package/dist/packages/dam/src/validation/validate.versions.js.map +1 -1
  178. package/dist/packages/deployportlet/package-lock.json +9970 -12728
  179. package/dist/packages/deployportlet/package.json +20 -6
  180. package/dist/packages/deployportlet/src/commands/deployPortlet.d.ts +1 -1
  181. package/dist/packages/deployportlet/src/commands/deployPortlet.js +65 -62
  182. package/dist/packages/deployportlet/src/commands/deployPortlet.js.map +1 -1
  183. package/dist/packages/deployportlet/src/commands/undeployPortlet.d.ts +1 -1
  184. package/dist/packages/deployportlet/src/commands/undeployPortlet.js +80 -77
  185. package/dist/packages/deployportlet/src/commands/undeployPortlet.js.map +1 -1
  186. package/dist/packages/deployportlet/src/commands/xmlaccess.d.ts +1 -1
  187. package/dist/packages/deployportlet/src/commands/xmlaccess.js +14 -25
  188. package/dist/packages/deployportlet/src/commands/xmlaccess.js.map +1 -1
  189. package/dist/packages/deployportlet/src/services/undeployPortletServices.js +34 -43
  190. package/dist/packages/deployportlet/src/services/undeployPortletServices.js.map +1 -1
  191. package/dist/packages/deployscriptapplication/package-lock.json +6395 -12760
  192. package/dist/packages/deployscriptapplication/package.json +11 -4
  193. package/dist/packages/deployscriptapplication/src/commands/pull.d.ts +1 -2
  194. package/dist/packages/deployscriptapplication/src/commands/pull.js +146 -159
  195. package/dist/packages/deployscriptapplication/src/commands/pull.js.map +1 -1
  196. package/dist/packages/deployscriptapplication/src/commands/push.d.ts +3 -3
  197. package/dist/packages/deployscriptapplication/src/commands/push.js +149 -157
  198. package/dist/packages/deployscriptapplication/src/commands/push.js.map +1 -1
  199. package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.d.ts +2 -2
  200. package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.js +88 -101
  201. package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.js.map +1 -1
  202. package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.d.ts +2 -2
  203. package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.js +118 -131
  204. package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.js.map +1 -1
  205. package/dist/packages/deployscriptapplication/src/util/constants.js.map +1 -1
  206. package/dist/packages/deployscriptapplication/src/util/generic.js.map +1 -1
  207. package/dist/packages/deploytheme/package-lock.json +7190 -13434
  208. package/dist/packages/deploytheme/package.json +9 -6
  209. package/dist/packages/deploytheme/src/commands/deployApplication.d.ts +1 -1
  210. package/dist/packages/deploytheme/src/commands/deployApplication.js +87 -84
  211. package/dist/packages/deploytheme/src/commands/deployApplication.js.map +1 -1
  212. package/dist/packages/deploytheme/src/commands/deployTheme.d.ts +4 -4
  213. package/dist/packages/deploytheme/src/commands/deployTheme.js +223 -226
  214. package/dist/packages/deploytheme/src/commands/deployTheme.js.map +1 -1
  215. package/dist/packages/deploytheme/src/commands/undeployApplication.d.ts +1 -1
  216. package/dist/packages/deploytheme/src/commands/undeployApplication.js +21 -32
  217. package/dist/packages/deploytheme/src/commands/undeployApplication.js.map +1 -1
  218. package/dist/packages/deploytheme/src/commands/undeployTheme.d.ts +4 -4
  219. package/dist/packages/deploytheme/src/commands/undeployTheme.js +214 -223
  220. package/dist/packages/deploytheme/src/commands/undeployTheme.js.map +1 -1
  221. package/dist/packages/deploytheme/src/services/themeServices.js +84 -90
  222. package/dist/packages/deploytheme/src/services/themeServices.js.map +1 -1
  223. package/dist/packages/livesync/package-lock.json +2202 -3754
  224. package/dist/packages/livesync/package.json +9 -5
  225. package/dist/packages/livesync/src/commands/pullTheme.d.ts +2 -2
  226. package/dist/packages/livesync/src/commands/pullTheme.js +62 -75
  227. package/dist/packages/livesync/src/commands/pullTheme.js.map +1 -1
  228. package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.d.ts +2 -1
  229. package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.js +255 -288
  230. package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.js.map +1 -1
  231. package/dist/packages/livesync/src/commands/pushTheme.d.ts +4 -4
  232. package/dist/packages/livesync/src/commands/pushTheme.js +125 -140
  233. package/dist/packages/livesync/src/commands/pushTheme.js.map +1 -1
  234. package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.d.ts +2 -2
  235. package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.js +545 -548
  236. package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.js.map +1 -1
  237. package/dist/packages/livesync/src/errors/CommandLineMessages_en.json +15 -11
  238. package/dist/packages/livesync/src/messages/messages_en.json +1 -0
  239. package/dist/packages/livesync/src/services/EventsQueue.js +11 -24
  240. package/dist/packages/livesync/src/services/EventsQueue.js.map +1 -1
  241. package/dist/packages/livesync/src/services/foldersWcmServices.js +21 -30
  242. package/dist/packages/livesync/src/services/foldersWcmServices.js.map +1 -1
  243. package/dist/packages/livesync/src/services/htmlComponentWcmServices.js +19 -28
  244. package/dist/packages/livesync/src/services/htmlComponentWcmServices.js.map +1 -1
  245. package/dist/packages/livesync/src/services/initialSyncServices.js +65 -81
  246. package/dist/packages/livesync/src/services/initialSyncServices.js.map +1 -1
  247. package/dist/packages/livesync/src/services/livesyncUtils.js +54 -49
  248. package/dist/packages/livesync/src/services/livesyncUtils.js.map +1 -1
  249. package/dist/packages/livesync/src/services/metadataServices.js +113 -77
  250. package/dist/packages/livesync/src/services/metadataServices.js.map +1 -1
  251. package/dist/packages/livesync/src/services/ongoingSyncServices.js +192 -176
  252. package/dist/packages/livesync/src/services/ongoingSyncServices.js.map +1 -1
  253. package/dist/packages/livesync/src/services/presentationTemplateWcmServices.js +19 -28
  254. package/dist/packages/livesync/src/services/presentationTemplateWcmServices.js.map +1 -1
  255. package/dist/packages/livesync/src/services/styleSheetComponentWcmServices.js +18 -27
  256. package/dist/packages/livesync/src/services/styleSheetComponentWcmServices.js.map +1 -1
  257. package/dist/packages/livesync/src/services/wcmContext/initialSync.js +29 -23
  258. package/dist/packages/livesync/src/services/wcmContext/initialSync.js.map +1 -1
  259. package/dist/packages/livesync/src/services/wcmContext/stylesheetComponent.js +221 -206
  260. package/dist/packages/livesync/src/services/wcmContext/stylesheetComponent.js.map +1 -1
  261. package/dist/packages/livesync/src/services/wcmContext/wcmLibraryContext.js +4 -4
  262. package/dist/packages/livesync/src/services/wcmContext/wcmLibraryContext.js.map +1 -1
  263. package/dist/packages/livesync/src/services/wcmRestV2Services.js +20 -26
  264. package/dist/packages/livesync/src/services/wcmRestV2Services.js.map +1 -1
  265. package/dist/packages/livesync/src/types/EventHandler.type.d.ts +1 -1
  266. package/dist/packages/livesync/src/types/EventQueueItem.type.d.ts +2 -2
  267. package/dist/packages/livesync/src/types/OngoingSyncHooks.type.d.ts +1 -1
  268. package/dist/packages/livesync/src/types/WCMDesignLibraryCache.type.d.ts +1 -1
  269. package/dist/packages/livesync/src/types/WcmRestApiV2.type.d.ts +8 -8
  270. package/dist/packages/livesync/src/types/index.d.ts +6 -0
  271. package/dist/packages/livesync/src/types/index.js +5 -1
  272. package/dist/packages/livesync/src/types/index.js.map +1 -1
  273. package/dist/packages/mls_exim/package-lock.json +2908 -5990
  274. package/dist/packages/mls_exim/package.json +10 -6
  275. package/dist/packages/mls_exim/src/errors/CommandLineMessages_en.json +1 -0
  276. package/dist/packages/mls_exim/src/export/mlsExport.d.ts +2 -2
  277. package/dist/packages/mls_exim/src/export/mlsExport.js +81 -78
  278. package/dist/packages/mls_exim/src/export/mlsExport.js.map +1 -1
  279. package/dist/packages/mls_exim/src/export/mlsExport.ts +9 -9
  280. package/dist/packages/mls_exim/src/import/mlsImport.d.ts +1 -1
  281. package/dist/packages/mls_exim/src/import/mlsImport.js +38 -46
  282. package/dist/packages/mls_exim/src/import/mlsImport.js.map +1 -1
  283. package/dist/packages/mls_exim/src/import/mlsImport.ts +9 -4
  284. package/dist/packages/sharedlibrary/package-lock.json +6221 -12629
  285. package/dist/packages/sharedlibrary/package.json +9 -6
  286. package/dist/packages/sharedlibrary/src/commands/delete.d.ts +1 -1
  287. package/dist/packages/sharedlibrary/src/commands/delete.js +40 -37
  288. package/dist/packages/sharedlibrary/src/commands/delete.js.map +1 -1
  289. package/dist/packages/sharedlibrary/src/commands/upload.d.ts +1 -1
  290. package/dist/packages/sharedlibrary/src/commands/upload.js +73 -70
  291. package/dist/packages/sharedlibrary/src/commands/upload.js.map +1 -1
  292. package/dist/packages/sharedlibrary/src/errors/CommandLineMessages_en.json +1 -0
  293. package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.js +29 -30
  294. package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.js.map +1 -1
  295. package/dist/packages/syndication/package-lock.json +9970 -12728
  296. package/dist/packages/syndication/package.json +21 -7
  297. package/dist/packages/syndication/src/commands/subscriber.d.ts +1 -1
  298. package/dist/packages/syndication/src/commands/subscriber.js +33 -44
  299. package/dist/packages/syndication/src/commands/subscriber.js.map +1 -1
  300. package/dist/packages/syndication/src/commands/syndicator.d.ts +1 -1
  301. package/dist/packages/syndication/src/commands/syndicator.js +33 -44
  302. package/dist/packages/syndication/src/commands/syndicator.js.map +1 -1
  303. package/dist/packages/syndication/src/commands/syndicatorFailedItem.d.ts +1 -1
  304. package/dist/packages/syndication/src/commands/syndicatorFailedItem.js +67 -78
  305. package/dist/packages/syndication/src/commands/syndicatorFailedItem.js.map +1 -1
  306. package/dist/packages/syndication/src/services/syndicationService.d.ts +8 -8
  307. package/dist/packages/syndication/src/services/syndicationService.js +39 -48
  308. package/dist/packages/syndication/src/services/syndicationService.js.map +1 -1
  309. package/dist/src/errors/CommandLineMessages_en.json +3 -1
  310. package/dist/src/index.js +939 -959
  311. package/dist/src/index.js.map +1 -1
  312. package/dist/src/services/apiServices.js +187 -178
  313. package/dist/src/services/apiServices.js.map +1 -1
  314. package/dist/src/services/filesServices.d.ts +0 -1
  315. package/dist/src/services/filesServices.js +14 -23
  316. package/dist/src/services/filesServices.js.map +1 -1
  317. package/dist/src/services/requestService.js +16 -22
  318. package/dist/src/services/requestService.js.map +1 -1
  319. package/dist/src/utils/constants.d.ts +1 -1
  320. package/dist/src/utils/constants.js +59 -59
  321. package/dist/src/utils/constants.js.map +1 -1
  322. package/dist/src/utils/logger.d.ts +1 -0
  323. package/dist/src/utils/logger.js +58 -61
  324. package/dist/src/utils/logger.js.map +1 -1
  325. package/dist/src/utils/utils.d.ts +8 -6
  326. package/dist/src/utils/utils.js +139 -113
  327. package/dist/src/utils/utils.js.map +1 -1
  328. package/dist/src/utils/validateOptions.d.ts +3 -3
  329. package/dist/src/utils/validateOptions.js +354 -333
  330. package/dist/src/utils/validateOptions.js.map +1 -1
  331. package/package.json +11 -11
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
@@ -218,84 +209,83 @@ function getScope(configID) {
218
209
  });
219
210
  return rtnVal;
220
211
  }
221
- function generateSummaryReport(MasterDict) {
222
- return __awaiter(this, void 0, void 0, function* () {
223
- logger_1.logger.debug('Entering to the generateSummaryReport function');
224
- try {
225
- const reports = [['Application Servers', '/.*#Server_.*', 'name', 'True', ['serverType', 'APPLICATION_SERVER']],
226
- ['Web Servers', '/.*#Server_.*', 'name', 'True', ['serverType', 'WEB_SERVER']],
227
- ['Clusters', '/.*#ServerCluster_.*', 'name', 'False'],
228
- ['Virtual Hosts', '.*VirtualHost_.*', 'name', 'False'],
229
- ['Core Groups', '.*CoreGroup_.*', 'name', 'False'],
230
- ['Data Sources', '.*DataSource_.*', 'name', 'True'],
231
- ['JMS Providers', '.*JMSProvider_.*', 'name', 'True'],
232
- ['J2C Resource Adapters', '.*J2CResourceAdapter_.*', 'name', 'True'],
233
- ['SSL Configs', '.*SSLConfig_.*', 'alias', 'True'],
234
- ['Mail Providers', '.*MailProvider_.*', 'name', 'True'],
235
- ['URL Providers', '.*URLProvider_.*', 'name', 'True'],
236
- ['JDBC Providers', '.*JDBCProvider_.*', 'name', 'True'],
237
- ['Service Integration Buses', '.*SIBus_.*', 'name', 'False'],
238
- ['Application Deployments', '.*ApplicationDeployment_.*', 'binariesURL', 'False'],
239
- ['Servlet Cache Instances', '.*ServletCacheInstance_.*', 'name', 'True'],
240
- ['Object Cache Instances', '.*ObjectCacheInstance_.*', 'name', 'True'],
241
- ];
242
- const skipString = '/(\\bdockerCell-\\S+\\b)/ig';
243
- const reportRowHeaders = [];
244
- const columnHeaders = MasterDict.CellList;
245
- const reportTableData = [];
246
- reports.forEach((report) => {
247
- const list = [];
248
- reportRowHeaders.push(report[0].toString());
249
- columnHeaders.forEach((cell) => {
250
- const rElements = [];
251
- const keys = Object.keys(MasterDict);
252
- const configIDs = [];
253
- keys.forEach((key) => {
254
- if (new RegExp(`.*/${cell}${report[1]}`).test(key)) {
255
- configIDs.push(key);
256
- }
257
- });
258
- configIDs.forEach((configID) => {
259
- if (report.length === 5) {
260
- if (MasterDict[configID][report[4][0]] !== report[4][1]) {
261
- return;
262
- }
263
- }
264
- let value = MasterDict[configID][`${report[2]}`];
265
- const reportScope = report[3];
266
- if (reportScope === 'True') {
267
- const scope = getScope(configID);
268
- value = `<br>${value}<br>&nbsp;&nbsp;&nbsp;<font size="1">${scope}</font>`;
269
- }
270
- else {
271
- value = `<br>${value}`;
212
+ async function generateSummaryReport(MasterDict) {
213
+ logger_1.logger.debug('Entering to the generateSummaryReport function');
214
+ try {
215
+ const reports = [['Application Servers', '/.*#Server_.*', 'name', 'True', ['serverType', 'APPLICATION_SERVER']],
216
+ ['Web Servers', '/.*#Server_.*', 'name', 'True', ['serverType', 'WEB_SERVER']],
217
+ ['Clusters', '/.*#ServerCluster_.*', 'name', 'False'],
218
+ ['Virtual Hosts', '.*VirtualHost_.*', 'name', 'False'],
219
+ ['Core Groups', '.*CoreGroup_.*', 'name', 'False'],
220
+ ['Data Sources', '.*DataSource_.*', 'name', 'True'],
221
+ ['JMS Providers', '.*JMSProvider_.*', 'name', 'True'],
222
+ ['J2C Resource Adapters', '.*J2CResourceAdapter_.*', 'name', 'True'],
223
+ ['SSL Configs', '.*SSLConfig_.*', 'alias', 'True'],
224
+ ['Mail Providers', '.*MailProvider_.*', 'name', 'True'],
225
+ ['URL Providers', '.*URLProvider_.*', 'name', 'True'],
226
+ ['JDBC Providers', '.*JDBCProvider_.*', 'name', 'True'],
227
+ ['Service Integration Buses', '.*SIBus_.*', 'name', 'False'],
228
+ ['Application Deployments', '.*ApplicationDeployment_.*', 'binariesURL', 'False'],
229
+ ['Servlet Cache Instances', '.*ServletCacheInstance_.*', 'name', 'True'],
230
+ ['Object Cache Instances', '.*ObjectCacheInstance_.*', 'name', 'True'],
231
+ ];
232
+ const skipString = '/(\\bdockerCell-\\S+\\b)/ig';
233
+ const reportRowHeaders = [];
234
+ const columnHeaders = MasterDict.CellList;
235
+ const reportTableData = [];
236
+ reports.forEach((report) => {
237
+ const list = [];
238
+ reportRowHeaders.push(report[0].toString());
239
+ columnHeaders.forEach((cell) => {
240
+ const rElements = [];
241
+ const keys = Object.keys(MasterDict);
242
+ const configIDs = [];
243
+ keys.forEach((key) => {
244
+ if (new RegExp(`.*/${cell}${report[1]}`).test(key)) {
245
+ configIDs.push(key);
246
+ }
247
+ });
248
+ configIDs.forEach((configID) => {
249
+ if (report.length === 5) {
250
+ if (MasterDict[configID][report[4][0]] !== report[4][1]) {
251
+ return;
272
252
  }
273
- rElements.push(value);
274
- });
275
- rElements.sort();
276
- list.push(rElements.toString());
253
+ }
254
+ let value = MasterDict[configID][`${report[2]}`];
255
+ const reportScope = report[3];
256
+ if (reportScope === 'True') {
257
+ const scope = getScope(configID);
258
+ value = `<br>${value}<br>&nbsp;&nbsp;&nbsp;<font size="1">${scope}</font>`;
259
+ }
260
+ else {
261
+ value = `<br>${value}`;
262
+ }
263
+ rElements.push(value);
277
264
  });
278
- reportTableData.push(list);
265
+ rElements.sort();
266
+ list.push(rElements.toString());
279
267
  });
280
- const reportingTableTitle = 'Cell Summary';
281
- let reportingTable = '<table style="table-layout:fixed" id="differential-report" border="2" cellpadding="2" cellspacing="0" width="50px">\n';
282
- let tbody = `<tbody><tr align="left">\n<td colspan="3" rowspan="1" bgcolor="#999999" valign="top"><big><big><b>${reportingTableTitle}</b></big></big><br></td></tr>\n<tr>`;
283
- tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b></b><b><br></b> </td>\n`;
284
- columnHeaders.forEach((header) => {
285
- tbody = `${tbody}<td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>\n`;
286
- });
287
- tbody = `${tbody}<tr>`;
288
- let idx = 0;
289
- reportRowHeaders.forEach((header) => {
290
- tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>\n`;
291
- reportTableData[idx].forEach((value) => {
292
- tbody = `${tbody}<td class="wrapped" valign="top">${value}<br></td>\n`;
293
- });
294
- tbody = `${tbody}</tr>\n`;
295
- idx += 1;
268
+ reportTableData.push(list);
269
+ });
270
+ const reportingTableTitle = 'Cell Summary';
271
+ let reportingTable = '<table style="table-layout:fixed" id="differential-report" border="2" cellpadding="2" cellspacing="0" width="50px">\n';
272
+ let tbody = `<tbody><tr align="left">\n<td colspan="3" rowspan="1" bgcolor="#999999" valign="top"><big><big><b>${reportingTableTitle}</b></big></big><br></td></tr>\n<tr>`;
273
+ tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b></b><b><br></b> </td>\n`;
274
+ columnHeaders.forEach((header) => {
275
+ tbody = `${tbody}<td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>\n`;
276
+ });
277
+ tbody = `${tbody}<tr>`;
278
+ let idx = 0;
279
+ reportRowHeaders.forEach((header) => {
280
+ tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>\n`;
281
+ reportTableData[idx].forEach((value) => {
282
+ tbody = `${tbody}<td class="wrapped" valign="top">${value}<br></td>\n`;
296
283
  });
297
- reportingTable = `${reportingTable}${tbody}</tbody></table><br>\n`;
298
- const summaryReport = `
284
+ tbody = `${tbody}</tr>\n`;
285
+ idx += 1;
286
+ });
287
+ reportingTable = `${reportingTable}${tbody}</tbody></table><br>\n`;
288
+ const summaryReport = `
299
289
  <!DOCTYPE html>
300
290
  <html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n<title>Cell Summary Report</title>\n</head>\n<body>
301
291
  <head><style type="text/css">
@@ -348,7 +338,7 @@ function generateSummaryReport(MasterDict) {
348
338
  </style>
349
339
  </head>
350
340
  <body>
351
- <div><h1>Cell Summary Report ${moment_1.default().format('MM/DD/YY h:mm:ss')}</h1>
341
+ <div><h1>Cell Summary Report ${(0, moment_1.default)().format('MM/DD/YY h:mm:ss')}</h1>
352
342
  <div class="Div1">
353
343
  <svg width="20" height="20">
354
344
  <rect width="20" height="20" style="fill:#87CEEB;stroke-width:3;stroke:rgb(0,0,0)" />
@@ -408,23 +398,22 @@ function generateSummaryReport(MasterDict) {
408
398
  </script>
409
399
  </body>
410
400
  </html>`;
411
- try {
412
- const outputFileName = utils_1.getFileNameWithTimeStamp(constants_1.CONSTANT_VALUES.summaryReport);
413
- const outputFileLocation = `${path_1.default.resolve(utils_1.getStoreDir(), constants_1.CONSTANT_VALUES.outputFileLocation)}/${constants_1.CONSTANT_VALUES.reportCFG}`;
414
- const writeFileResponse = yield filesServices_1.fileServices.writeFile(summaryReport, outputFileLocation, `${outputFileName}.${constants_1.FileType.HTML}`);
415
- logger_1.logger.info(utils_1.message('EXPORT_SUMMARY_REPORT_SUCCESS', { 0: writeFileResponse }));
416
- }
417
- catch (error) {
418
- logger_1.logger.debug('Error in writing file %o', error);
419
- return false;
420
- }
401
+ try {
402
+ const outputFileName = (0, utils_1.getFileNameWithTimeStamp)(constants_1.CONSTANT_VALUES.summaryReport);
403
+ const outputFileLocation = `${path_1.default.resolve((0, utils_1.getStoreDir)(), constants_1.CONSTANT_VALUES.outputFileLocation)}/${constants_1.CONSTANT_VALUES.reportCFG}`;
404
+ const writeFileResponse = await filesServices_1.fileServices.writeFile(summaryReport, outputFileLocation, `${outputFileName}.${constants_1.FileType.HTML}`);
405
+ logger_1.logger.info((0, utils_1.message)('EXPORT_SUMMARY_REPORT_SUCCESS', { 0: writeFileResponse }));
421
406
  }
422
407
  catch (error) {
423
- logger_1.logger.debug('Error in generating summary report %s', error.message);
408
+ logger_1.logger.debug('Error in writing file %o', error);
424
409
  return false;
425
410
  }
426
- return true;
427
- });
411
+ }
412
+ catch (error) {
413
+ logger_1.logger.debug('Error in generating summary report %s', error.message);
414
+ return false;
415
+ }
416
+ return true;
428
417
  }
429
418
  function getConfigIDNode(configID) {
430
419
  let rtnVal = 'UnKnown';
@@ -458,978 +447,977 @@ function getNameAttribute(resourceType) {
458
447
  rtnVal = 'alias';
459
448
  return rtnVal;
460
449
  }
461
- function generateResourceReport(MasterDict) {
462
- return __awaiter(this, void 0, void 0, function* () {
463
- logger_1.logger.debug('Entering to the generateResourceReport function:');
464
- try {
465
- const PropertiesDict = readProperties();
466
- const resourceReportDefinitions = {
467
- DataSource: [
468
- {
469
- Title: 'Data Source',
470
- ReportName: 'dataSourceRsc',
471
- ConfigPath: [],
472
- },
473
- {
474
- Title: 'Data Source Connection Pool',
475
- ReportName: 'connectionPoolRsc',
476
- ConfigPath: [
477
- 'connectionPool',
478
- ],
479
- },
480
- {
481
- Title: 'Data Source Provider',
482
- ReportName: 'providerReportRsc',
483
- ConfigPath: [
484
- 'provider',
485
- ],
486
- },
487
- {
488
- Title: 'Data Source Relational Resource Adpter',
489
- ReportName: 'resourceAdapterRsc',
490
- ConfigPath: [
491
- 'relationalResourceAdapter',
492
- ],
493
- },
494
- {
495
- Title: 'Data Source Relational Resource Adpter Connector',
496
- ReportName: 'connectorRsc',
497
- ConfigPath: [
498
- 'relationalResourceAdapter',
499
- 'deploymentDescriptor',
500
- ],
501
- },
502
- ],
503
- J2CResourceAdapter: [
504
- {
505
- Title: 'J2C Resource Adapter',
506
- ReportName: 'resourceAdapterRsc',
507
- ConfigPath: [],
508
- },
509
- {
510
- Title: 'J2C Resource Adpter Connector',
511
- ReportName: 'connectorRsc',
512
- ConfigPath: [
513
- 'deploymentDescriptor',
514
- ],
515
- },
516
- ],
517
- JDBCProvider: [
518
- {
519
- Title: 'JDBC Provider',
520
- ReportName: 'jdbcProviderRsc',
521
- ConfigPath: [
522
- '',
523
- ],
524
- },
525
- ],
526
- SIBus: [
527
- {
528
- Title: 'Service Integration Bus',
529
- ReportName: 'sibRsc',
530
- ConfigPath: [
531
- '',
532
- ],
533
- },
534
- ],
535
- ObjectCacheInstance: [
536
- {
537
- Title: 'Object Cache',
538
- ReportName: 'objectCacheRsc',
539
- ConfigPath: [],
540
- },
541
- {
542
- Title: 'Cache Provider',
543
- ReportName: 'cacheProviderRsc',
544
- ConfigPath: [
545
- 'provider',
546
- ],
547
- },
548
- ],
549
- ServletCacheInstance: [
550
- {
551
- Title: 'Servlet Cache',
552
- ReportName: 'objectCacheRsc',
553
- ConfigPath: [],
554
- },
555
- {
556
- Title: 'Cache Provider',
557
- ReportName: 'cacheProviderRsc',
558
- ConfigPath: [
559
- 'provider',
560
- ],
561
- },
562
- {
563
- Title: 'Disk Cache custom Performance Settings',
564
- ReportName: 'diskCacheCustomPerformanceSettingsRsc',
565
- ConfigPath: [
566
- 'diskCacheCustomPerformanceSettings',
567
- ],
568
- },
569
- {
570
- Title: 'Disk Cache Eviction Policy',
571
- ReportName: 'diskCacheEvictionPolicyRsc',
572
- ConfigPath: [
573
- 'diskCacheEvictionPolicy',
574
- ],
575
- },
576
- ],
577
- Security: [
578
- {
579
- Title: 'Global Security',
580
- ReportName: 'securityRsc',
581
- ConfigPath: [],
582
- },
583
- {
584
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound',
585
- ReportName: 'csiv2Rsc',
586
- ConfigPath: [
587
- 'CSI',
588
- 'claims',
589
- ],
590
- },
591
- {
592
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound ID assertion',
593
- ReportName: 'csiv2idAssertRsc',
594
- ConfigPath: [
595
- 'CSI',
596
- 'claims',
597
- 'layers->IdentityAssertionLayer_',
598
- ],
599
- },
600
- {
601
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound ID assertion QOP',
602
- ReportName: 'csiv2idAssertQOPRsc',
603
- ConfigPath: [
604
- 'CSI',
605
- 'claims',
606
- 'layers->IdentityAssertionLayer_',
607
- 'supportedQOP',
608
- ],
609
- },
610
- {
611
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message',
612
- ReportName: 'csiv2MessageRsc',
613
- ConfigPath: [
614
- 'CSI',
615
- 'claims',
616
- 'layers->MessageLayer_',
617
- ],
618
- },
619
- {
620
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message supported QOP',
621
- ReportName: 'csiv2MessageQOPRsc',
622
- ConfigPath: [
623
- 'CSI',
624
- 'claims',
625
- 'layers->MessageLayer_',
626
- 'supportedQOP',
627
- ],
628
- },
629
- {
630
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message required QOP',
631
- ReportName: 'csiv2MessageQOPRsc',
632
- ConfigPath: [
633
- 'CSI',
634
- 'claims',
635
- 'layers->MessageLayer_',
636
- 'requiredQOP',
637
- ],
638
- },
639
- {
640
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport',
641
- ReportName: 'csiv2TransportRsc',
642
- ConfigPath: [
643
- 'CSI',
644
- 'claims',
645
- 'layers->TransportLayer_',
646
- ],
647
- },
648
- {
649
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport Server Authentication',
650
- ReportName: 'csiv2TransportSrvSAuthRsc',
651
- ConfigPath: [
652
- 'CSI',
653
- 'claims',
654
- 'layers->TransportLayer_',
655
- 'serverAuthentication',
656
- ],
657
- },
658
- {
659
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport supported QOP',
660
- ReportName: 'csiv2TransportQOPRsc',
661
- ConfigPath: [
662
- 'CSI',
663
- 'claims',
664
- 'layers->TransportLayer_',
665
- 'supportedQOP',
666
- ],
667
- },
668
- {
669
- Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport required QOP',
670
- ReportName: 'csiv2TransportQOPRsc',
671
- ConfigPath: [
672
- 'CSI',
673
- 'claims',
674
- 'layers->TransportLayer_',
675
- 'requiredQOP',
676
- ],
677
- },
678
- {
679
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound',
680
- ReportName: 'csiv2Rsc',
681
- ConfigPath: [
682
- 'CSI',
683
- 'performs',
684
- ],
685
- },
686
- {
687
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound ID assertion',
688
- ReportName: 'csiv2idAssertRsc',
689
- ConfigPath: [
690
- 'CSI',
691
- 'performs',
692
- 'layers->IdentityAssertionLayer_',
693
- ],
694
- },
695
- {
696
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound ID assertion QOP',
697
- ReportName: 'csiv2idAssertQOPRsc',
698
- ConfigPath: [
699
- 'CSI',
700
- 'performs',
701
- 'layers->IdentityAssertionLayer_',
702
- 'supportedQOP',
703
- ],
704
- },
705
- {
706
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message',
707
- ReportName: 'csiv2MessageRsc',
708
- ConfigPath: [
709
- 'CSI',
710
- 'performs',
711
- 'layers->MessageLayer_',
712
- ],
713
- },
714
- {
715
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message supported QOP',
716
- ReportName: 'csiv2MessageQOPRsc',
717
- ConfigPath: [
718
- 'CSI',
719
- 'performs',
720
- 'layers->MessageLayer_',
721
- 'supportedQOP',
722
- ],
723
- },
724
- {
725
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message required QOP',
726
- ReportName: 'csiv2MessageQOPRsc',
727
- ConfigPath: [
728
- 'CSI',
729
- 'performs',
730
- 'layers->MessageLayer_',
731
- 'requiredQOP',
732
- ],
733
- },
734
- {
735
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport',
736
- ReportName: 'csiv2TransportRsc',
737
- ConfigPath: [
738
- 'CSI',
739
- 'performs',
740
- 'layers->TransportLayer_',
741
- ],
742
- },
743
- {
744
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport Server Authentication',
745
- ReportName: 'csiv2TransportSrvSAuthRsc',
746
- ConfigPath: [
747
- 'CSI',
748
- 'performs',
749
- 'layers->TransportLayer_',
750
- 'serverAuthentication',
751
- ],
752
- },
753
- {
754
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport supported QOP',
755
- ReportName: 'csiv2TransportQOPRsc',
756
- ConfigPath: [
757
- 'CSI',
758
- 'performs',
759
- 'layers->TransportLayer_',
760
- 'supportedQOP',
761
- ],
762
- },
763
- {
764
- Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport required QOP',
765
- ReportName: 'csiv2TransportQOPRsc',
766
- ConfigPath: [
767
- 'CSI',
768
- 'performs',
769
- 'layers->TransportLayer_',
770
- 'requiredQOP',
771
- ],
772
- },
773
- {
774
- Title: 'Certificate Expiration Monitor',
775
- ReportName: 'certExpMonitorRsc',
776
- ConfigPath: [
777
- 'wsCertificateExpirationMonitor',
778
- ],
779
- },
780
- {
781
- Title: 'Certificate Expiration Monitor Notification',
782
- ReportName: 'notificationRsc',
783
- ConfigPath: [
784
- 'wsCertificateExpirationMonitor',
785
- 'wsNotification',
786
- ],
787
- },
788
- {
789
- Title: 'Certificate Expiration Monitor Scedule',
790
- ReportName: 'scheduleRsc',
791
- ConfigPath: [
792
- 'wsCertificateExpirationMonitor',
793
- 'wsSchedule',
794
- ],
795
- },
796
- ],
797
- SSLConfig: [
798
- {
799
- Title: 'SSL settings',
800
- ReportName: 'sslConfig1Rsc',
801
- ConfigPath: [
802
- 'setting',
803
- ],
804
- },
805
- {
806
- Title: 'Ciphers',
807
- ReportName: 'ciphers',
808
- ConfigPath: [
809
- 'setting',
810
- 'trustStore',
811
- ],
812
- ReportFunc: 'ciphersReport',
813
- },
814
- {
815
- Title: 'Trust Store',
816
- ReportName: 'keyStoreRsc',
817
- ConfigPath: [
818
- 'setting',
819
- 'trustStore',
820
- ],
821
- },
822
- {
823
- Title: 'Key Store',
824
- ReportName: 'keyStoreRsc',
825
- ConfigPath: [
826
- 'setting',
827
- 'keyStore',
828
- ],
829
- },
830
- {
831
- Title: 'Trust Manager',
832
- ReportName: 'trustManagerRsc',
833
- ConfigPath: [
834
- 'setting',
835
- 'trustManager',
836
- ],
837
- },
838
- {
839
- Title: 'Key Manager',
840
- ReportName: 'keyManagerRsc',
841
- ConfigPath: [
842
- 'setting',
843
- 'keyManager',
844
- ],
845
- },
846
- ],
847
- ResourceEnvironmentProvider: [
848
- {
849
- Title: 'Resource Environment Provider',
850
- ReportName: 'rscEnvProviderRsc',
851
- ConfigPath: [
852
- '',
853
- ],
854
- },
855
- ],
856
- ResourceEnvEntry: [
857
- {
858
- Title: 'Resource Environment Entry',
859
- ReportName: 'rscEnvEntryRsc',
860
- ConfigPath: [],
861
- },
862
- {
863
- Title: 'Referencable',
864
- ReportName: 'referencableRsc',
865
- ConfigPath: [
866
- 'referenceable',
867
- ],
868
- },
869
- {
870
- Title: 'Resource Environment Provider',
871
- ReportName: 'rscEnvProviderRsc',
872
- ConfigPath: [
873
- 'provider',
874
- ],
875
- },
876
- ],
877
- Application: [
878
- {
879
- Title: 'Application Deployment',
880
- ReportName: 'applicationDeployment',
881
- ConfigPath: [],
882
- },
883
- {
884
- Title: 'Application Deployment Classloader',
885
- ReportName: 'applicationClassloader',
886
- ConfigPath: [
887
- 'classloader',
888
- ],
889
- },
890
- ],
891
- ApplicationModules: [
892
- {
893
- Title: 'Application Module',
894
- ReportName: 'applicationDeployment',
895
- ConfigPath: [
896
- 'modules',
897
- ],
898
- },
899
- ],
900
- JMSProvider: [
901
- {
902
- Title: 'JMS Provider',
903
- ReportName: 'jmsProviderRsc',
904
- ConfigPath: [
905
- '',
906
- ],
907
- },
908
- ],
909
- GenericJMSConnectionFactory: [
910
- {
911
- Title: 'JMS Connection Factory',
912
- ReportName: 'genericJMSConnectionFactoryRsc',
913
- ConfigPath: [
914
- '',
915
- ],
916
- },
917
- {
918
- Title: 'Session Pool',
919
- ReportName: 'connectionPoolRsc',
920
- ConfigPath: [
921
- 'sessionPool',
922
- ],
923
- },
924
- {
925
- Title: 'JMS Provider',
926
- ReportName: 'jmsProviderRsc',
927
- ConfigPath: [
928
- 'provider',
929
- ],
930
- },
931
- {
932
- Title: 'Connection Pool',
933
- ReportName: 'connectionPoolRsc',
934
- ConfigPath: [
935
- 'connectionPool',
936
- ],
937
- },
938
- {
939
- Title: 'JAAS Mapping',
940
- ReportName: 'mappingModuleRsc',
941
- ConfigPath: [
942
- 'mapping',
943
- ],
944
- },
945
- {
946
- Title: 'J2C Authentication Alias',
947
- ReportName: 'jaasAuthDataRsc',
948
- ConfigPath: [
949
- 'mapping',
950
- ],
951
- ReportFunc: 'j2cAuthReport',
952
- },
953
- ],
954
- GenericJMSDestination: [
955
- {
956
- Title: 'JMS Destination',
957
- ReportName: 'genericJMSDestinationRsc',
958
- ConfigPath: [],
959
- },
960
- {
961
- Title: 'JMS Provider',
962
- ReportName: 'jmsProviderRsc',
963
- ConfigPath: [
964
- 'provider',
965
- ],
966
- },
967
- ],
968
- J2CActivationSpec: [
969
- {
970
- Title: 'J2C Activation Specification',
971
- ReportName: 'j2cActivationSpecRsc',
972
- ConfigPath: [],
973
- },
974
- {
975
- Title: 'Activation Specification',
976
- ReportName: 'activationSpecRsc',
977
- ConfigPath: [
978
- 'activationSpec',
979
- ],
980
- },
981
- ],
982
- JAASAuthData: [
983
- {
984
- Title: 'JAAS Alias',
985
- ReportName: 'jaasAuthDataRsc',
986
- ConfigPath: [
987
- '',
988
- ],
989
- },
990
- ],
991
- URLProvider: [
992
- {
993
- Title: 'URL Provider',
994
- ReportName: 'urlProviderRsc',
995
- ConfigPath: [
996
- '',
997
- ],
998
- },
999
- ],
1000
- URL: [
1001
- {
1002
- Title: 'URL',
1003
- ReportName: 'urlRsc',
1004
- ConfigPath: [],
1005
- },
1006
- {
1007
- Title: 'URL Provider',
1008
- ReportName: 'urlProviderRsc',
1009
- ConfigPath: [
1010
- 'provider',
1011
- ],
1012
- },
1013
- ],
1014
- J2CConnectionFactory: [
1015
- {
1016
- Title: 'J2C Connection Factory',
1017
- ReportName: 'j2cConnectionFactoryRsc',
1018
- ConfigPath: [],
1019
- },
1020
- {
1021
- Title: 'J2C CF Connection Pool',
1022
- ReportName: 'connectionPoolRsc',
1023
- ConfigPath: [
1024
- 'connectionPool',
1025
- ],
1026
- },
1027
- {
1028
- Title: 'J2C Resource Adapter',
1029
- ReportName: 'resourceAdapterRsc',
1030
- ConfigPath: [
1031
- 'provider',
1032
- ],
1033
- },
1034
- {
1035
- Title: 'J2C CF Connection Definition',
1036
- ReportName: 'j2cConnectionFactoryConDefRsc',
1037
- ConfigPath: [
1038
- 'connectionDefinition',
1039
- ],
1040
- },
1041
- ],
1042
- J2CAdminObject: [
1043
- {
1044
- Title: 'J2C Admin Object',
1045
- ReportName: 'j2cAdminObjectRsc',
1046
- ConfigPath: [],
1047
- },
1048
- {
1049
- Title: 'Admin Object',
1050
- ReportName: 'adminObjectRsc',
1051
- ConfigPath: [
1052
- 'adminObject',
1053
- ],
1054
- },
1055
- ],
1056
- MQConnectionFactory: [
1057
- {
1058
- Title: 'MQ Connection Factory',
1059
- ReportName: 'mqConnectionFactoryRsc',
1060
- ConfigPath: [],
1061
- },
1062
- {
1063
- Title: 'MQ Connection Pool',
1064
- ReportName: 'connectionPoolRsc',
1065
- ConfigPath: [
1066
- 'connectionPool',
1067
- ],
1068
- },
1069
- {
1070
- Title: 'MQ Session Pool',
1071
- ReportName: 'connectionPoolRsc',
1072
- ConfigPath: [
1073
- 'sessionPool',
1074
- ],
1075
- },
1076
- {
1077
- Title: 'JAAS Mapping',
1078
- ReportName: 'mappingModuleRsc',
1079
- ConfigPath: [
1080
- 'mapping',
1081
- ],
1082
- },
1083
- {
1084
- Title: 'MQ Provider',
1085
- ReportName: 'jmsProviderRsc',
1086
- ConfigPath: [
1087
- 'provider',
1088
- ],
1089
- },
1090
- ],
1091
- MQQueueConnectionFactory: [
1092
- {
1093
- Title: 'MQ Queue Connection Factory',
1094
- ReportName: 'mqQueueConnectionFactoryRsc',
1095
- ConfigPath: [],
1096
- },
1097
- {
1098
- Title: 'MQ Connection Pool',
1099
- ReportName: 'connectionPoolRsc',
1100
- ConfigPath: [
1101
- 'connectionPool',
1102
- ],
1103
- },
1104
- {
1105
- Title: 'MQ Session Pool',
1106
- ReportName: 'connectionPoolRsc',
1107
- ConfigPath: [
1108
- 'sessionPool',
1109
- ],
1110
- },
1111
- {
1112
- Title: 'JAAS Mapping',
1113
- ReportName: 'mappingModuleRsc',
1114
- ConfigPath: [
1115
- 'mapping',
1116
- ],
1117
- },
1118
- {
1119
- Title: 'MQ Provider',
1120
- ReportName: 'jmsProviderRsc',
1121
- ConfigPath: [
1122
- 'provider',
1123
- ],
1124
- },
1125
- ],
1126
- MQTopicConnectionFactory: [
1127
- {
1128
- Title: 'MQ Topic Connection Factory',
1129
- ReportName: 'mqTopicConnectionFactoryRsc',
1130
- ConfigPath: [],
1131
- },
1132
- {
1133
- Title: 'MQ Connection Pool',
1134
- ReportName: 'connectionPoolRsc',
1135
- ConfigPath: [
1136
- 'connectionPool',
1137
- ],
1138
- },
1139
- {
1140
- Title: 'MQ Session Pool',
1141
- ReportName: 'connectionPoolRsc',
1142
- ConfigPath: [
1143
- 'sessionPool',
1144
- ],
1145
- },
1146
- {
1147
- Title: 'JAAS Mapping',
1148
- ReportName: 'mappingModuleRsc',
1149
- ConfigPath: [
1150
- 'mapping',
1151
- ],
1152
- },
1153
- {
1154
- Title: 'MQ Provider',
1155
- ReportName: 'jmsProviderRsc',
1156
- ConfigPath: [
1157
- 'provider',
1158
- ],
1159
- },
1160
- ],
1161
- MQQueue: [
1162
- {
1163
- Title: 'MQ Queue ',
1164
- ReportName: 'mqQueueRsc',
1165
- ConfigPath: [],
1166
- },
1167
- {
1168
- Title: 'MQ Provider',
1169
- ReportName: 'jmsProviderRsc',
1170
- ConfigPath: [
1171
- 'provider',
1172
- ],
1173
- },
1174
- ],
1175
- MQTopic: [
1176
- {
1177
- Title: 'MQ Topic ',
1178
- ReportName: 'mqTopicRsc',
1179
- ConfigPath: [],
1180
- },
1181
- {
1182
- Title: 'MQ Provider',
1183
- ReportName: 'jmsProviderRsc',
1184
- ConfigPath: [
1185
- 'provider',
1186
- ],
1187
- },
1188
- ],
1189
- };
1190
- const resourceTypes = ['DataSource', 'JDBCProvider', 'ObjectCacheInstance', 'ServletCacheInstance', 'SIBus', 'ResourceEnvEntry', 'JMSProvider', 'GenericJMSConnectionFactory', 'GenericJMSDestination', 'J2CActivationSpec', 'URLProvider', 'URL', 'J2CConnectionFactory', 'J2CAdminObject', 'MQConnectionFactory', 'MQQueueConnectionFactory', 'MQTopicConnectionFactory', 'MQQueue', 'MQTopic'];
1191
- let reportingTable = '';
1192
- resourceTypes.forEach((resourceType) => {
1193
- let names = [];
1194
- names = getUniqueConfigAttrValues(resourceType, getNameAttribute(resourceType), MasterDict);
1195
- names.forEach((name) => {
1196
- let rptParms = {};
1197
- const rptTables = [];
1198
- const nameAttr = getNameAttribute(resourceType);
1199
- const configIDs = findConfigIDs(`.*\\#${resourceType}\\_.*`, true, MasterDict);
1200
- const resources = [];
1201
- const list = [];
1202
- configIDs.forEach((configID) => {
1203
- if (MasterDict[configID][nameAttr] === name) {
1204
- resources.push(configID);
1205
- }
1206
- });
1207
- resources.forEach((resource) => {
1208
- if (MasterDict[resource][nameAttr] === name) {
1209
- list.push(resource);
450
+ async function generateResourceReport(MasterDict) {
451
+ logger_1.logger.debug('Entering to the generateResourceReport function:');
452
+ try {
453
+ const PropertiesDict = readProperties();
454
+ const resourceReportDefinitions = {
455
+ DataSource: [
456
+ {
457
+ Title: 'Data Source',
458
+ ReportName: 'dataSourceRsc',
459
+ ConfigPath: [],
460
+ },
461
+ {
462
+ Title: 'Data Source Connection Pool',
463
+ ReportName: 'connectionPoolRsc',
464
+ ConfigPath: [
465
+ 'connectionPool',
466
+ ],
467
+ },
468
+ {
469
+ Title: 'Data Source Provider',
470
+ ReportName: 'providerReportRsc',
471
+ ConfigPath: [
472
+ 'provider',
473
+ ],
474
+ },
475
+ {
476
+ Title: 'Data Source Relational Resource Adpter',
477
+ ReportName: 'resourceAdapterRsc',
478
+ ConfigPath: [
479
+ 'relationalResourceAdapter',
480
+ ],
481
+ },
482
+ {
483
+ Title: 'Data Source Relational Resource Adpter Connector',
484
+ ReportName: 'connectorRsc',
485
+ ConfigPath: [
486
+ 'relationalResourceAdapter',
487
+ 'deploymentDescriptor',
488
+ ],
489
+ },
490
+ ],
491
+ J2CResourceAdapter: [
492
+ {
493
+ Title: 'J2C Resource Adapter',
494
+ ReportName: 'resourceAdapterRsc',
495
+ ConfigPath: [],
496
+ },
497
+ {
498
+ Title: 'J2C Resource Adpter Connector',
499
+ ReportName: 'connectorRsc',
500
+ ConfigPath: [
501
+ 'deploymentDescriptor',
502
+ ],
503
+ },
504
+ ],
505
+ JDBCProvider: [
506
+ {
507
+ Title: 'JDBC Provider',
508
+ ReportName: 'jdbcProviderRsc',
509
+ ConfigPath: [
510
+ '',
511
+ ],
512
+ },
513
+ ],
514
+ SIBus: [
515
+ {
516
+ Title: 'Service Integration Bus',
517
+ ReportName: 'sibRsc',
518
+ ConfigPath: [
519
+ '',
520
+ ],
521
+ },
522
+ ],
523
+ ObjectCacheInstance: [
524
+ {
525
+ Title: 'Object Cache',
526
+ ReportName: 'objectCacheRsc',
527
+ ConfigPath: [],
528
+ },
529
+ {
530
+ Title: 'Cache Provider',
531
+ ReportName: 'cacheProviderRsc',
532
+ ConfigPath: [
533
+ 'provider',
534
+ ],
535
+ },
536
+ ],
537
+ ServletCacheInstance: [
538
+ {
539
+ Title: 'Servlet Cache',
540
+ ReportName: 'objectCacheRsc',
541
+ ConfigPath: [],
542
+ },
543
+ {
544
+ Title: 'Cache Provider',
545
+ ReportName: 'cacheProviderRsc',
546
+ ConfigPath: [
547
+ 'provider',
548
+ ],
549
+ },
550
+ {
551
+ Title: 'Disk Cache custom Performance Settings',
552
+ ReportName: 'diskCacheCustomPerformanceSettingsRsc',
553
+ ConfigPath: [
554
+ 'diskCacheCustomPerformanceSettings',
555
+ ],
556
+ },
557
+ {
558
+ Title: 'Disk Cache Eviction Policy',
559
+ ReportName: 'diskCacheEvictionPolicyRsc',
560
+ ConfigPath: [
561
+ 'diskCacheEvictionPolicy',
562
+ ],
563
+ },
564
+ ],
565
+ Security: [
566
+ {
567
+ Title: 'Global Security',
568
+ ReportName: 'securityRsc',
569
+ ConfigPath: [],
570
+ },
571
+ {
572
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound',
573
+ ReportName: 'csiv2Rsc',
574
+ ConfigPath: [
575
+ 'CSI',
576
+ 'claims',
577
+ ],
578
+ },
579
+ {
580
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound ID assertion',
581
+ ReportName: 'csiv2idAssertRsc',
582
+ ConfigPath: [
583
+ 'CSI',
584
+ 'claims',
585
+ 'layers->IdentityAssertionLayer_',
586
+ ],
587
+ },
588
+ {
589
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound ID assertion QOP',
590
+ ReportName: 'csiv2idAssertQOPRsc',
591
+ ConfigPath: [
592
+ 'CSI',
593
+ 'claims',
594
+ 'layers->IdentityAssertionLayer_',
595
+ 'supportedQOP',
596
+ ],
597
+ },
598
+ {
599
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message',
600
+ ReportName: 'csiv2MessageRsc',
601
+ ConfigPath: [
602
+ 'CSI',
603
+ 'claims',
604
+ 'layers->MessageLayer_',
605
+ ],
606
+ },
607
+ {
608
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message supported QOP',
609
+ ReportName: 'csiv2MessageQOPRsc',
610
+ ConfigPath: [
611
+ 'CSI',
612
+ 'claims',
613
+ 'layers->MessageLayer_',
614
+ 'supportedQOP',
615
+ ],
616
+ },
617
+ {
618
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Message required QOP',
619
+ ReportName: 'csiv2MessageQOPRsc',
620
+ ConfigPath: [
621
+ 'CSI',
622
+ 'claims',
623
+ 'layers->MessageLayer_',
624
+ 'requiredQOP',
625
+ ],
626
+ },
627
+ {
628
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport',
629
+ ReportName: 'csiv2TransportRsc',
630
+ ConfigPath: [
631
+ 'CSI',
632
+ 'claims',
633
+ 'layers->TransportLayer_',
634
+ ],
635
+ },
636
+ {
637
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport Server Authentication',
638
+ ReportName: 'csiv2TransportSrvSAuthRsc',
639
+ ConfigPath: [
640
+ 'CSI',
641
+ 'claims',
642
+ 'layers->TransportLayer_',
643
+ 'serverAuthentication',
644
+ ],
645
+ },
646
+ {
647
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport supported QOP',
648
+ ReportName: 'csiv2TransportQOPRsc',
649
+ ConfigPath: [
650
+ 'CSI',
651
+ 'claims',
652
+ 'layers->TransportLayer_',
653
+ 'supportedQOP',
654
+ ],
655
+ },
656
+ {
657
+ Title: 'Cell Default Common Secure Interoperability (CSI) Inbound Transport required QOP',
658
+ ReportName: 'csiv2TransportQOPRsc',
659
+ ConfigPath: [
660
+ 'CSI',
661
+ 'claims',
662
+ 'layers->TransportLayer_',
663
+ 'requiredQOP',
664
+ ],
665
+ },
666
+ {
667
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound',
668
+ ReportName: 'csiv2Rsc',
669
+ ConfigPath: [
670
+ 'CSI',
671
+ 'performs',
672
+ ],
673
+ },
674
+ {
675
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound ID assertion',
676
+ ReportName: 'csiv2idAssertRsc',
677
+ ConfigPath: [
678
+ 'CSI',
679
+ 'performs',
680
+ 'layers->IdentityAssertionLayer_',
681
+ ],
682
+ },
683
+ {
684
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound ID assertion QOP',
685
+ ReportName: 'csiv2idAssertQOPRsc',
686
+ ConfigPath: [
687
+ 'CSI',
688
+ 'performs',
689
+ 'layers->IdentityAssertionLayer_',
690
+ 'supportedQOP',
691
+ ],
692
+ },
693
+ {
694
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message',
695
+ ReportName: 'csiv2MessageRsc',
696
+ ConfigPath: [
697
+ 'CSI',
698
+ 'performs',
699
+ 'layers->MessageLayer_',
700
+ ],
701
+ },
702
+ {
703
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message supported QOP',
704
+ ReportName: 'csiv2MessageQOPRsc',
705
+ ConfigPath: [
706
+ 'CSI',
707
+ 'performs',
708
+ 'layers->MessageLayer_',
709
+ 'supportedQOP',
710
+ ],
711
+ },
712
+ {
713
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Message required QOP',
714
+ ReportName: 'csiv2MessageQOPRsc',
715
+ ConfigPath: [
716
+ 'CSI',
717
+ 'performs',
718
+ 'layers->MessageLayer_',
719
+ 'requiredQOP',
720
+ ],
721
+ },
722
+ {
723
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport',
724
+ ReportName: 'csiv2TransportRsc',
725
+ ConfigPath: [
726
+ 'CSI',
727
+ 'performs',
728
+ 'layers->TransportLayer_',
729
+ ],
730
+ },
731
+ {
732
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport Server Authentication',
733
+ ReportName: 'csiv2TransportSrvSAuthRsc',
734
+ ConfigPath: [
735
+ 'CSI',
736
+ 'performs',
737
+ 'layers->TransportLayer_',
738
+ 'serverAuthentication',
739
+ ],
740
+ },
741
+ {
742
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport supported QOP',
743
+ ReportName: 'csiv2TransportQOPRsc',
744
+ ConfigPath: [
745
+ 'CSI',
746
+ 'performs',
747
+ 'layers->TransportLayer_',
748
+ 'supportedQOP',
749
+ ],
750
+ },
751
+ {
752
+ Title: 'Cell Default Common Secure Interoperability (CSI) Outbound Transport required QOP',
753
+ ReportName: 'csiv2TransportQOPRsc',
754
+ ConfigPath: [
755
+ 'CSI',
756
+ 'performs',
757
+ 'layers->TransportLayer_',
758
+ 'requiredQOP',
759
+ ],
760
+ },
761
+ {
762
+ Title: 'Certificate Expiration Monitor',
763
+ ReportName: 'certExpMonitorRsc',
764
+ ConfigPath: [
765
+ 'wsCertificateExpirationMonitor',
766
+ ],
767
+ },
768
+ {
769
+ Title: 'Certificate Expiration Monitor Notification',
770
+ ReportName: 'notificationRsc',
771
+ ConfigPath: [
772
+ 'wsCertificateExpirationMonitor',
773
+ 'wsNotification',
774
+ ],
775
+ },
776
+ {
777
+ Title: 'Certificate Expiration Monitor Scedule',
778
+ ReportName: 'scheduleRsc',
779
+ ConfigPath: [
780
+ 'wsCertificateExpirationMonitor',
781
+ 'wsSchedule',
782
+ ],
783
+ },
784
+ ],
785
+ SSLConfig: [
786
+ {
787
+ Title: 'SSL settings',
788
+ ReportName: 'sslConfig1Rsc',
789
+ ConfigPath: [
790
+ 'setting',
791
+ ],
792
+ },
793
+ {
794
+ Title: 'Ciphers',
795
+ ReportName: 'ciphers',
796
+ ConfigPath: [
797
+ 'setting',
798
+ 'trustStore',
799
+ ],
800
+ ReportFunc: 'ciphersReport',
801
+ },
802
+ {
803
+ Title: 'Trust Store',
804
+ ReportName: 'keyStoreRsc',
805
+ ConfigPath: [
806
+ 'setting',
807
+ 'trustStore',
808
+ ],
809
+ },
810
+ {
811
+ Title: 'Key Store',
812
+ ReportName: 'keyStoreRsc',
813
+ ConfigPath: [
814
+ 'setting',
815
+ 'keyStore',
816
+ ],
817
+ },
818
+ {
819
+ Title: 'Trust Manager',
820
+ ReportName: 'trustManagerRsc',
821
+ ConfigPath: [
822
+ 'setting',
823
+ 'trustManager',
824
+ ],
825
+ },
826
+ {
827
+ Title: 'Key Manager',
828
+ ReportName: 'keyManagerRsc',
829
+ ConfigPath: [
830
+ 'setting',
831
+ 'keyManager',
832
+ ],
833
+ },
834
+ ],
835
+ ResourceEnvironmentProvider: [
836
+ {
837
+ Title: 'Resource Environment Provider',
838
+ ReportName: 'rscEnvProviderRsc',
839
+ ConfigPath: [
840
+ '',
841
+ ],
842
+ },
843
+ ],
844
+ ResourceEnvEntry: [
845
+ {
846
+ Title: 'Resource Environment Entry',
847
+ ReportName: 'rscEnvEntryRsc',
848
+ ConfigPath: [],
849
+ },
850
+ {
851
+ Title: 'Referencable',
852
+ ReportName: 'referencableRsc',
853
+ ConfigPath: [
854
+ 'referenceable',
855
+ ],
856
+ },
857
+ {
858
+ Title: 'Resource Environment Provider',
859
+ ReportName: 'rscEnvProviderRsc',
860
+ ConfigPath: [
861
+ 'provider',
862
+ ],
863
+ },
864
+ ],
865
+ Application: [
866
+ {
867
+ Title: 'Application Deployment',
868
+ ReportName: 'applicationDeployment',
869
+ ConfigPath: [],
870
+ },
871
+ {
872
+ Title: 'Application Deployment Classloader',
873
+ ReportName: 'applicationClassloader',
874
+ ConfigPath: [
875
+ 'classloader',
876
+ ],
877
+ },
878
+ ],
879
+ ApplicationModules: [
880
+ {
881
+ Title: 'Application Module',
882
+ ReportName: 'applicationDeployment',
883
+ ConfigPath: [
884
+ 'modules',
885
+ ],
886
+ },
887
+ ],
888
+ JMSProvider: [
889
+ {
890
+ Title: 'JMS Provider',
891
+ ReportName: 'jmsProviderRsc',
892
+ ConfigPath: [
893
+ '',
894
+ ],
895
+ },
896
+ ],
897
+ GenericJMSConnectionFactory: [
898
+ {
899
+ Title: 'JMS Connection Factory',
900
+ ReportName: 'genericJMSConnectionFactoryRsc',
901
+ ConfigPath: [
902
+ '',
903
+ ],
904
+ },
905
+ {
906
+ Title: 'Session Pool',
907
+ ReportName: 'connectionPoolRsc',
908
+ ConfigPath: [
909
+ 'sessionPool',
910
+ ],
911
+ },
912
+ {
913
+ Title: 'JMS Provider',
914
+ ReportName: 'jmsProviderRsc',
915
+ ConfigPath: [
916
+ 'provider',
917
+ ],
918
+ },
919
+ {
920
+ Title: 'Connection Pool',
921
+ ReportName: 'connectionPoolRsc',
922
+ ConfigPath: [
923
+ 'connectionPool',
924
+ ],
925
+ },
926
+ {
927
+ Title: 'JAAS Mapping',
928
+ ReportName: 'mappingModuleRsc',
929
+ ConfigPath: [
930
+ 'mapping',
931
+ ],
932
+ },
933
+ {
934
+ Title: 'J2C Authentication Alias',
935
+ ReportName: 'jaasAuthDataRsc',
936
+ ConfigPath: [
937
+ 'mapping',
938
+ ],
939
+ ReportFunc: 'j2cAuthReport',
940
+ },
941
+ ],
942
+ GenericJMSDestination: [
943
+ {
944
+ Title: 'JMS Destination',
945
+ ReportName: 'genericJMSDestinationRsc',
946
+ ConfigPath: [],
947
+ },
948
+ {
949
+ Title: 'JMS Provider',
950
+ ReportName: 'jmsProviderRsc',
951
+ ConfigPath: [
952
+ 'provider',
953
+ ],
954
+ },
955
+ ],
956
+ J2CActivationSpec: [
957
+ {
958
+ Title: 'J2C Activation Specification',
959
+ ReportName: 'j2cActivationSpecRsc',
960
+ ConfigPath: [],
961
+ },
962
+ {
963
+ Title: 'Activation Specification',
964
+ ReportName: 'activationSpecRsc',
965
+ ConfigPath: [
966
+ 'activationSpec',
967
+ ],
968
+ },
969
+ ],
970
+ JAASAuthData: [
971
+ {
972
+ Title: 'JAAS Alias',
973
+ ReportName: 'jaasAuthDataRsc',
974
+ ConfigPath: [
975
+ '',
976
+ ],
977
+ },
978
+ ],
979
+ URLProvider: [
980
+ {
981
+ Title: 'URL Provider',
982
+ ReportName: 'urlProviderRsc',
983
+ ConfigPath: [
984
+ '',
985
+ ],
986
+ },
987
+ ],
988
+ URL: [
989
+ {
990
+ Title: 'URL',
991
+ ReportName: 'urlRsc',
992
+ ConfigPath: [],
993
+ },
994
+ {
995
+ Title: 'URL Provider',
996
+ ReportName: 'urlProviderRsc',
997
+ ConfigPath: [
998
+ 'provider',
999
+ ],
1000
+ },
1001
+ ],
1002
+ J2CConnectionFactory: [
1003
+ {
1004
+ Title: 'J2C Connection Factory',
1005
+ ReportName: 'j2cConnectionFactoryRsc',
1006
+ ConfigPath: [],
1007
+ },
1008
+ {
1009
+ Title: 'J2C CF Connection Pool',
1010
+ ReportName: 'connectionPoolRsc',
1011
+ ConfigPath: [
1012
+ 'connectionPool',
1013
+ ],
1014
+ },
1015
+ {
1016
+ Title: 'J2C Resource Adapter',
1017
+ ReportName: 'resourceAdapterRsc',
1018
+ ConfigPath: [
1019
+ 'provider',
1020
+ ],
1021
+ },
1022
+ {
1023
+ Title: 'J2C CF Connection Definition',
1024
+ ReportName: 'j2cConnectionFactoryConDefRsc',
1025
+ ConfigPath: [
1026
+ 'connectionDefinition',
1027
+ ],
1028
+ },
1029
+ ],
1030
+ J2CAdminObject: [
1031
+ {
1032
+ Title: 'J2C Admin Object',
1033
+ ReportName: 'j2cAdminObjectRsc',
1034
+ ConfigPath: [],
1035
+ },
1036
+ {
1037
+ Title: 'Admin Object',
1038
+ ReportName: 'adminObjectRsc',
1039
+ ConfigPath: [
1040
+ 'adminObject',
1041
+ ],
1042
+ },
1043
+ ],
1044
+ MQConnectionFactory: [
1045
+ {
1046
+ Title: 'MQ Connection Factory',
1047
+ ReportName: 'mqConnectionFactoryRsc',
1048
+ ConfigPath: [],
1049
+ },
1050
+ {
1051
+ Title: 'MQ Connection Pool',
1052
+ ReportName: 'connectionPoolRsc',
1053
+ ConfigPath: [
1054
+ 'connectionPool',
1055
+ ],
1056
+ },
1057
+ {
1058
+ Title: 'MQ Session Pool',
1059
+ ReportName: 'connectionPoolRsc',
1060
+ ConfigPath: [
1061
+ 'sessionPool',
1062
+ ],
1063
+ },
1064
+ {
1065
+ Title: 'JAAS Mapping',
1066
+ ReportName: 'mappingModuleRsc',
1067
+ ConfigPath: [
1068
+ 'mapping',
1069
+ ],
1070
+ },
1071
+ {
1072
+ Title: 'MQ Provider',
1073
+ ReportName: 'jmsProviderRsc',
1074
+ ConfigPath: [
1075
+ 'provider',
1076
+ ],
1077
+ },
1078
+ ],
1079
+ MQQueueConnectionFactory: [
1080
+ {
1081
+ Title: 'MQ Queue Connection Factory',
1082
+ ReportName: 'mqQueueConnectionFactoryRsc',
1083
+ ConfigPath: [],
1084
+ },
1085
+ {
1086
+ Title: 'MQ Connection Pool',
1087
+ ReportName: 'connectionPoolRsc',
1088
+ ConfigPath: [
1089
+ 'connectionPool',
1090
+ ],
1091
+ },
1092
+ {
1093
+ Title: 'MQ Session Pool',
1094
+ ReportName: 'connectionPoolRsc',
1095
+ ConfigPath: [
1096
+ 'sessionPool',
1097
+ ],
1098
+ },
1099
+ {
1100
+ Title: 'JAAS Mapping',
1101
+ ReportName: 'mappingModuleRsc',
1102
+ ConfigPath: [
1103
+ 'mapping',
1104
+ ],
1105
+ },
1106
+ {
1107
+ Title: 'MQ Provider',
1108
+ ReportName: 'jmsProviderRsc',
1109
+ ConfigPath: [
1110
+ 'provider',
1111
+ ],
1112
+ },
1113
+ ],
1114
+ MQTopicConnectionFactory: [
1115
+ {
1116
+ Title: 'MQ Topic Connection Factory',
1117
+ ReportName: 'mqTopicConnectionFactoryRsc',
1118
+ ConfigPath: [],
1119
+ },
1120
+ {
1121
+ Title: 'MQ Connection Pool',
1122
+ ReportName: 'connectionPoolRsc',
1123
+ ConfigPath: [
1124
+ 'connectionPool',
1125
+ ],
1126
+ },
1127
+ {
1128
+ Title: 'MQ Session Pool',
1129
+ ReportName: 'connectionPoolRsc',
1130
+ ConfigPath: [
1131
+ 'sessionPool',
1132
+ ],
1133
+ },
1134
+ {
1135
+ Title: 'JAAS Mapping',
1136
+ ReportName: 'mappingModuleRsc',
1137
+ ConfigPath: [
1138
+ 'mapping',
1139
+ ],
1140
+ },
1141
+ {
1142
+ Title: 'MQ Provider',
1143
+ ReportName: 'jmsProviderRsc',
1144
+ ConfigPath: [
1145
+ 'provider',
1146
+ ],
1147
+ },
1148
+ ],
1149
+ MQQueue: [
1150
+ {
1151
+ Title: 'MQ Queue ',
1152
+ ReportName: 'mqQueueRsc',
1153
+ ConfigPath: [],
1154
+ },
1155
+ {
1156
+ Title: 'MQ Provider',
1157
+ ReportName: 'jmsProviderRsc',
1158
+ ConfigPath: [
1159
+ 'provider',
1160
+ ],
1161
+ },
1162
+ ],
1163
+ MQTopic: [
1164
+ {
1165
+ Title: 'MQ Topic ',
1166
+ ReportName: 'mqTopicRsc',
1167
+ ConfigPath: [],
1168
+ },
1169
+ {
1170
+ Title: 'MQ Provider',
1171
+ ReportName: 'jmsProviderRsc',
1172
+ ConfigPath: [
1173
+ 'provider',
1174
+ ],
1175
+ },
1176
+ ],
1177
+ };
1178
+ const resourceTypes = ['DataSource', 'JDBCProvider', 'ObjectCacheInstance', 'ServletCacheInstance', 'SIBus', 'ResourceEnvEntry', 'JMSProvider', 'GenericJMSConnectionFactory', 'GenericJMSDestination', 'J2CActivationSpec', 'URLProvider', 'URL', 'J2CConnectionFactory', 'J2CAdminObject', 'MQConnectionFactory', 'MQQueueConnectionFactory', 'MQTopicConnectionFactory', 'MQQueue', 'MQTopic'];
1179
+ let reportingTable = '';
1180
+ resourceTypes.forEach((resourceType) => {
1181
+ let names = [];
1182
+ names = getUniqueConfigAttrValues(resourceType, getNameAttribute(resourceType), MasterDict);
1183
+ names.forEach((name) => {
1184
+ let rptParms = {};
1185
+ const rptTables = [];
1186
+ const nameAttr = getNameAttribute(resourceType);
1187
+ const configIDs = findConfigIDs(`.*\\#${resourceType}\\_.*`, true, MasterDict);
1188
+ const resources = [];
1189
+ const list = [];
1190
+ configIDs.forEach((configID) => {
1191
+ if (MasterDict[configID][nameAttr] === name) {
1192
+ resources.push(configID);
1193
+ }
1194
+ });
1195
+ resources.forEach((resource) => {
1196
+ if (MasterDict[resource][nameAttr] === name) {
1197
+ list.push(resource);
1198
+ }
1199
+ });
1200
+ rptParms = { ServerList: list };
1201
+ resourceReportDefinitions[resourceType].forEach((resourceReport) => {
1202
+ const rscRptTitle = `${resourceReport.Title}(${name})`;
1203
+ Object.assign(rptParms, { Title: rscRptTitle, ConfigPath: resourceReport.ConfigPath, ReportName: resourceReport.ReportName });
1204
+ if (PropertiesDict[`${resourceReport.ReportName}:attributes`] !== undefined) {
1205
+ Object.assign(rptParms, { Attributes: PropertiesDict[`${resourceReport.ReportName}:attributes`].split(',') });
1206
+ }
1207
+ const columnHeaders = [];
1208
+ const initialConfigIDs = [];
1209
+ const tableData = [];
1210
+ const rowHeaders = [];
1211
+ rptParms.ServerList.forEach((server) => {
1212
+ if (rptParms.ColumnHeaderFunc === undefined) {
1213
+ columnHeaders.push((MasterDict[server].name).concat(' (', getConfigIDNode(server), ', ', getConfigIDCell(server), ')'));
1210
1214
  }
1211
1215
  });
1212
- rptParms = { ServerList: list };
1213
- resourceReportDefinitions[resourceType].forEach((resourceReport) => {
1214
- const rscRptTitle = `${resourceReport.Title}(${name})`;
1215
- Object.assign(rptParms, { Title: rscRptTitle, ConfigPath: resourceReport.ConfigPath, ReportName: resourceReport.ReportName });
1216
- if (PropertiesDict[`${resourceReport.ReportName}:attributes`] !== undefined) {
1217
- Object.assign(rptParms, { Attributes: PropertiesDict[`${resourceReport.ReportName}:attributes`].split(',') });
1218
- }
1219
- const columnHeaders = [];
1220
- const initialConfigIDs = [];
1221
- const tableData = [];
1222
- const rowHeaders = [];
1216
+ rptParms.Attributes.forEach((attribute) => {
1217
+ const attributeValues = [];
1223
1218
  rptParms.ServerList.forEach((server) => {
1224
- if (rptParms.ColumnHeaderFunc === undefined) {
1225
- columnHeaders.push((MasterDict[server].name).concat(' (', getConfigIDNode(server), ', ', getConfigIDCell(server), ')'));
1226
- }
1227
- });
1228
- rptParms.Attributes.forEach((attribute) => {
1229
- const attributeValues = [];
1230
- rptParms.ServerList.forEach((server) => {
1231
- let config = {};
1232
- try {
1233
- const pathElements = [];
1234
- pathElements.push(server);
1235
- if ((rptParms.ConfigPath).length > 0) {
1236
- rptParms.ConfigPath.forEach((ConfigPath) => {
1237
- pathElements.push(ConfigPath);
1238
- });
1239
- }
1240
- pathElements.forEach((pathElement) => {
1241
- if (isConfigID(pathElement)) {
1242
- if (MasterDict[pathElement] !== undefined) {
1243
- config = MasterDict[pathElement];
1244
- }
1245
- }
1246
- else if (MasterDict[config[pathElement]] !== undefined) {
1247
- config = MasterDict[config[pathElement]];
1248
- }
1249
- });
1250
- if (config !== undefined) {
1251
- if (initialConfigIDs.hasOwnProperty(config.CONFIG_ID)) {
1252
- initialConfigIDs.push(config.CONFIG_ID);
1253
- }
1254
- }
1255
- }
1256
- catch (error) {
1257
- logger_1.logger.debug('error %s', error.message);
1258
- }
1259
- const keys = Object.keys(config);
1260
- if (keys.length === 0) {
1261
- attributeValues.push('configuration not defined');
1262
- }
1263
- else {
1264
- keys.forEach((key) => {
1265
- if (attribute === key) {
1266
- attributeValues.push(config[attribute]);
1267
- }
1219
+ let config = {};
1220
+ try {
1221
+ const pathElements = [];
1222
+ pathElements.push(server);
1223
+ if ((rptParms.ConfigPath).length > 0) {
1224
+ rptParms.ConfigPath.forEach((ConfigPath) => {
1225
+ pathElements.push(ConfigPath);
1268
1226
  });
1269
1227
  }
1270
- });
1271
- let attrSet = 'false';
1272
- const BreakException = {};
1273
- try {
1274
- if (attributeValues.length !== 0) {
1275
- attributeValues.forEach((attValue) => {
1276
- if (attValue.indexOf(' not ') === -1) {
1277
- attrSet = 'true';
1278
- throw BreakException;
1228
+ pathElements.forEach((pathElement) => {
1229
+ if (isConfigID(pathElement)) {
1230
+ if (MasterDict[pathElement] !== undefined) {
1231
+ config = MasterDict[pathElement];
1279
1232
  }
1280
- });
1233
+ }
1234
+ else if (MasterDict[config[pathElement]] !== undefined) {
1235
+ config = MasterDict[config[pathElement]];
1236
+ }
1237
+ });
1238
+ if (config !== undefined) {
1239
+ if (initialConfigIDs.hasOwnProperty(config.CONFIG_ID)) {
1240
+ initialConfigIDs.push(config.CONFIG_ID);
1241
+ }
1281
1242
  }
1282
1243
  }
1283
- catch (e) {
1284
- if (e !== BreakException)
1285
- throw e;
1244
+ catch (error) {
1245
+ logger_1.logger.debug('error %s', error.message);
1286
1246
  }
1287
- if (attrSet === 'true') {
1288
- rowHeaders.push(attribute);
1289
- tableData.push(attributeValues);
1247
+ const keys = Object.keys(config);
1248
+ if (keys.length === 0) {
1249
+ attributeValues.push('configuration not defined');
1290
1250
  }
1291
- });
1292
- const attributeDict = {
1293
- RowHeaders: rowHeaders, TableData: tableData, Title: rptParms.Title, FirstColumnHeader: 'Attribute', ConfigIDs: initialConfigIDs, Type: 'Attributes',
1294
- };
1295
- Object.assign(rptParms, { ColumnHeaders: columnHeaders });
1296
- rptTables.push(attributeDict);
1297
- Object.assign(rptParms, { Tables: rptTables });
1298
- const PropertyAttributes = [{ PropName: 'properties', PropPath: [] },
1299
- { PropName: 'customProperties', PropPath: [] },
1300
- { PropName: 'systemProperties', PropPath: [] },
1301
- { PropName: 'environment', PropPath: [] },
1302
- { PropName: 'properties', PropPath: ['adminObjectTemplateProps'] },
1303
- { PropName: 'additionalTrustManagerAttrs', PropPath: [] },
1304
- { PropName: 'webAuthAttrs', PropPath: [] },
1305
- { PropName: 'trustProperties', PropPath: [] }, { PropName: 'resourceProperties', PropPath: ['connectionDefTemplateProps', 'resourceProperties'] },
1306
- { PropName: 'resourceProperties', PropPath: ['propertySet'] },
1307
- { PropName: 'resourceProperties', PropPath: ['activationSpecTemplateProps'] },
1308
- ];
1309
- const clusterDict = {};
1310
- const initialconfigIDs = [];
1311
- PropertyAttributes.forEach((propAttr) => {
1312
- const propNames = [];
1313
- rptParms.ServerList.forEach((server) => {
1314
- const serverDict = {};
1315
- let config = {};
1316
- try {
1317
- const pathElements = [];
1318
- pathElements.push(server);
1319
- if ((rptParms.ConfigPath).length > 0) {
1320
- rptParms.ConfigPath.forEach((ConfigPath) => {
1321
- pathElements.push(ConfigPath);
1322
- });
1251
+ else {
1252
+ keys.forEach((key) => {
1253
+ if (attribute === key) {
1254
+ attributeValues.push(config[attribute]);
1323
1255
  }
1324
- if ((propAttr.PropPath).length > 0) {
1325
- propAttr.PropPath.forEach((PropPath) => {
1326
- pathElements.push(PropPath);
1327
- });
1256
+ });
1257
+ }
1258
+ });
1259
+ let attrSet = 'false';
1260
+ const BreakException = {};
1261
+ try {
1262
+ if (attributeValues.length !== 0) {
1263
+ attributeValues.forEach((attValue) => {
1264
+ if (attValue.indexOf(' not ') === -1) {
1265
+ attrSet = 'true';
1266
+ throw BreakException;
1328
1267
  }
1329
- pathElements.forEach((pathElement) => {
1330
- if (isConfigID(pathElement)) {
1331
- if (MasterDict[pathElement] !== undefined) {
1332
- config = MasterDict[pathElement];
1333
- }
1334
- }
1335
- else if (MasterDict[config[pathElement]] !== undefined) {
1336
- config = MasterDict[config[pathElement]];
1337
- }
1268
+ });
1269
+ }
1270
+ }
1271
+ catch (e) {
1272
+ if (e !== BreakException)
1273
+ throw e;
1274
+ }
1275
+ if (attrSet === 'true') {
1276
+ rowHeaders.push(attribute);
1277
+ tableData.push(attributeValues);
1278
+ }
1279
+ });
1280
+ const attributeDict = {
1281
+ RowHeaders: rowHeaders, TableData: tableData, Title: rptParms.Title, FirstColumnHeader: 'Attribute', ConfigIDs: initialConfigIDs, Type: 'Attributes',
1282
+ };
1283
+ Object.assign(rptParms, { ColumnHeaders: columnHeaders });
1284
+ rptTables.push(attributeDict);
1285
+ Object.assign(rptParms, { Tables: rptTables });
1286
+ const PropertyAttributes = [{ PropName: 'properties', PropPath: [] },
1287
+ { PropName: 'customProperties', PropPath: [] },
1288
+ { PropName: 'systemProperties', PropPath: [] },
1289
+ { PropName: 'environment', PropPath: [] },
1290
+ { PropName: 'properties', PropPath: ['adminObjectTemplateProps'] },
1291
+ { PropName: 'additionalTrustManagerAttrs', PropPath: [] },
1292
+ { PropName: 'webAuthAttrs', PropPath: [] },
1293
+ { PropName: 'trustProperties', PropPath: [] }, { PropName: 'resourceProperties', PropPath: ['connectionDefTemplateProps', 'resourceProperties'] },
1294
+ { PropName: 'resourceProperties', PropPath: ['propertySet'] },
1295
+ { PropName: 'resourceProperties', PropPath: ['activationSpecTemplateProps'] },
1296
+ ];
1297
+ const clusterDict = {};
1298
+ const initialconfigIDs = [];
1299
+ PropertyAttributes.forEach((propAttr) => {
1300
+ const propNames = [];
1301
+ rptParms.ServerList.forEach((server) => {
1302
+ const serverDict = {};
1303
+ let config = {};
1304
+ try {
1305
+ const pathElements = [];
1306
+ pathElements.push(server);
1307
+ if ((rptParms.ConfigPath).length > 0) {
1308
+ rptParms.ConfigPath.forEach((ConfigPath) => {
1309
+ pathElements.push(ConfigPath);
1338
1310
  });
1339
1311
  }
1340
- catch (error) {
1341
- logger_1.logger.debug('error %s', error.message);
1312
+ if ((propAttr.PropPath).length > 0) {
1313
+ propAttr.PropPath.forEach((PropPath) => {
1314
+ pathElements.push(PropPath);
1315
+ });
1342
1316
  }
1343
- let props = config[propAttr.PropName];
1344
- if (props !== undefined && props.length > 0) {
1345
- if (isConfigID(props)) {
1346
- props = props.slice(1, -1).split(' ');
1347
- props.forEach((prop) => {
1348
- let found = false;
1349
- propNames.forEach((propname) => {
1350
- if (propname === MasterDict[prop].name) {
1351
- found = true;
1352
- }
1353
- });
1354
- let value = '';
1355
- if (!found) {
1356
- propNames.push(MasterDict[prop].name);
1357
- }
1358
- if (MasterDict[prop].value !== undefined) {
1359
- value = MasterDict[prop].value;
1360
- }
1361
- else {
1362
- value = 'present but null';
1363
- }
1364
- Object.assign(serverDict, { [MasterDict[prop].name]: value });
1365
- if (MasterDict[prop].CONFIG_ID !== undefined) {
1366
- initialconfigIDs.push(MasterDict[prop].CONFIG_ID);
1317
+ pathElements.forEach((pathElement) => {
1318
+ if (isConfigID(pathElement)) {
1319
+ if (MasterDict[pathElement] !== undefined) {
1320
+ config = MasterDict[pathElement];
1321
+ }
1322
+ }
1323
+ else if (MasterDict[config[pathElement]] !== undefined) {
1324
+ config = MasterDict[config[pathElement]];
1325
+ }
1326
+ });
1327
+ }
1328
+ catch (error) {
1329
+ logger_1.logger.debug('error %s', error.message);
1330
+ }
1331
+ let props = config[propAttr.PropName];
1332
+ if (props !== undefined && props.length > 0) {
1333
+ if (isConfigID(props)) {
1334
+ props = props.slice(1, -1).split(' ');
1335
+ props.forEach((prop) => {
1336
+ let found = false;
1337
+ propNames.forEach((propname) => {
1338
+ if (propname === MasterDict[prop].name) {
1339
+ found = true;
1367
1340
  }
1368
1341
  });
1369
- }
1370
- Object.assign(clusterDict, { [server]: serverDict });
1371
- }
1372
- });
1373
- if (propNames.length > 0) {
1374
- propNames.sort();
1375
- const propertyTableData = [];
1376
- propNames.forEach((propName) => {
1377
- let row = [];
1378
- rptParms.ServerList.forEach((server) => {
1379
- if (server === 'NOT_FOUND') {
1380
- row = 'Interceptor not configured in domain';
1342
+ let value = '';
1343
+ if (!found) {
1344
+ propNames.push(MasterDict[prop].name);
1381
1345
  }
1382
- else if (clusterDict[server][propName] !== undefined) {
1383
- row = clusterDict[server][propName];
1346
+ if (MasterDict[prop].value !== undefined) {
1347
+ value = MasterDict[prop].value;
1384
1348
  }
1385
1349
  else {
1386
- row = 'Property not set';
1350
+ value = 'present but null';
1351
+ }
1352
+ Object.assign(serverDict, { [MasterDict[prop].name]: value });
1353
+ if (MasterDict[prop].CONFIG_ID !== undefined) {
1354
+ initialconfigIDs.push(MasterDict[prop].CONFIG_ID);
1387
1355
  }
1388
1356
  });
1389
- propertyTableData.push(row);
1390
- });
1391
- const propsDict = {
1392
- RowHeaders: propNames,
1393
- TableData: propertyTableData,
1394
- Title: `${propAttr.PropName} for ${rptParms.Title}`,
1395
- FirstColumnHeader: propAttr.PropName,
1396
- ConfigIDs: initialconfigIDs,
1397
- Type: 'Properties',
1398
- };
1399
- rptTables.push(propsDict);
1400
- Object.assign(rptParms, { Tables: rptTables });
1357
+ }
1358
+ Object.assign(clusterDict, { [server]: serverDict });
1401
1359
  }
1402
1360
  });
1361
+ if (propNames.length > 0) {
1362
+ propNames.sort();
1363
+ const propertyTableData = [];
1364
+ propNames.forEach((propName) => {
1365
+ let row = [];
1366
+ rptParms.ServerList.forEach((server) => {
1367
+ if (server === 'NOT_FOUND') {
1368
+ row = 'Interceptor not configured in domain';
1369
+ }
1370
+ else if (clusterDict[server][propName] !== undefined) {
1371
+ row = clusterDict[server][propName];
1372
+ }
1373
+ else {
1374
+ row = 'Property not set';
1375
+ }
1376
+ });
1377
+ propertyTableData.push(row);
1378
+ });
1379
+ const propsDict = {
1380
+ RowHeaders: propNames,
1381
+ TableData: propertyTableData,
1382
+ Title: `${propAttr.PropName} for ${rptParms.Title}`,
1383
+ FirstColumnHeader: propAttr.PropName,
1384
+ ConfigIDs: initialconfigIDs,
1385
+ Type: 'Properties',
1386
+ };
1387
+ rptTables.push(propsDict);
1388
+ Object.assign(rptParms, { Tables: rptTables });
1389
+ }
1403
1390
  });
1404
- let tbody = '';
1405
- const reportTables = rptParms.Tables;
1406
- const colHeaders = rptParms.ColumnHeaders;
1407
- reportingTable = `${reportingTable}<table style="table-layout:fixed" border="2" cellpadding="2" cellspacing="0" width=554>`;
1408
- reportTables.forEach((table) => {
1409
- const firstColumnHeader = table.FirstColumnHeader;
1410
- const rowHeadersData = table.RowHeaders;
1411
- const reportTableData = table.TableData;
1412
- const title = table.Title;
1413
- tbody = `${tbody}<tbody>`;
1414
- tbody = `${tbody}<tr align="left"><td colspan="3" rowspan="1" bgcolor="#999999" valign="top"><big><big><b>${title}</b></big></big><br></td></tr>`;
1415
- tbody = `${tbody}<tr><td class="wrapped" valign="top"><b>${firstColumnHeader}</b><b><br></b> </td>`;
1416
- colHeaders.forEach((header) => {
1417
- tbody = `${tbody}<td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>`;
1418
- });
1419
- tbody = `${tbody}<tr>`;
1420
- let idx = 0;
1421
- rowHeadersData.forEach((rowHeaderData) => {
1422
- tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b>${rowHeadersData[idx]}</b><b><br></b> </td>`;
1423
- tbody = `${tbody}<td class="wrapped" valign="top">${reportTableData[idx]}<br></td>`;
1424
- tbody = `${tbody}</tr>`;
1425
- idx += 1;
1426
- });
1427
- tbody = `${tbody}</tbody>`;
1391
+ });
1392
+ let tbody = '';
1393
+ const reportTables = rptParms.Tables;
1394
+ const colHeaders = rptParms.ColumnHeaders;
1395
+ reportingTable = `${reportingTable}<table style="table-layout:fixed" border="2" cellpadding="2" cellspacing="0" width=554>`;
1396
+ reportTables.forEach((table) => {
1397
+ const firstColumnHeader = table.FirstColumnHeader;
1398
+ const rowHeadersData = table.RowHeaders;
1399
+ const reportTableData = table.TableData;
1400
+ const title = table.Title;
1401
+ tbody = `${tbody}<tbody>`;
1402
+ tbody = `${tbody}<tr align="left"><td colspan="3" rowspan="1" bgcolor="#999999" valign="top"><big><big><b>${title}</b></big></big><br></td></tr>`;
1403
+ tbody = `${tbody}<tr><td class="wrapped" valign="top"><b>${firstColumnHeader}</b><b><br></b> </td>`;
1404
+ colHeaders.forEach((header) => {
1405
+ tbody = `${tbody}<td class="wrapped" bgcolor="#cccccc" valign="top"><b>${header}</b><b><br></b> </td>`;
1406
+ });
1407
+ tbody = `${tbody}<tr>`;
1408
+ let idx = 0;
1409
+ rowHeadersData.forEach((rowHeaderData) => {
1410
+ tbody = `${tbody}<tr><td class="wrapped" bgcolor="#cccccc" valign="top"><b>${rowHeadersData[idx]}</b><b><br></b> </td>`;
1411
+ tbody = `${tbody}<td class="wrapped" valign="top">${reportTableData[idx]}<br></td>`;
1412
+ tbody = `${tbody}</tr>`;
1413
+ idx += 1;
1428
1414
  });
1429
- reportingTable = `${reportingTable}${tbody}</table></br>`;
1415
+ tbody = `${tbody}</tbody>`;
1430
1416
  });
1417
+ reportingTable = `${reportingTable}${tbody}</table></br>`;
1431
1418
  });
1432
- const resourceReport = `
1419
+ });
1420
+ const resourceReport = `
1433
1421
  <!DOCTYPE html>
1434
1422
  <html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n<title>Cell Summary Report</title>\n</head>\n<body>
1435
1423
  <head><style type="text/css">
@@ -1482,7 +1470,7 @@ function generateResourceReport(MasterDict) {
1482
1470
  </style>
1483
1471
  </head>
1484
1472
  <body>
1485
- <div><h1>Resources Report ${moment_1.default().format('MM/DD/YY h:mm:ss')}</h1>
1473
+ <div><h1>Resources Report ${(0, moment_1.default)().format('MM/DD/YY h:mm:ss')}</h1>
1486
1474
  <div class="Div1">
1487
1475
  <svg width="20" height="20">
1488
1476
  <rect width="20" height="20" style="fill:#87CEEB;stroke-width:3;stroke:rgb(0,0,0)" />
@@ -1537,23 +1525,22 @@ function generateResourceReport(MasterDict) {
1537
1525
  </script>
1538
1526
  </body>
1539
1527
  </html>`;
1540
- try {
1541
- const outputFileName = utils_1.getFileNameWithTimeStamp(constants_1.CONSTANT_VALUES.resourceReport);
1542
- const outputFileLocation = `${path_1.default.resolve(utils_1.getStoreDir(), constants_1.CONSTANT_VALUES.outputFileLocation)}/${constants_1.CONSTANT_VALUES.reportCFG}`;
1543
- const writeFileResponse = yield filesServices_1.fileServices.writeFile(resourceReport, outputFileLocation, `${outputFileName}.${constants_1.FileType.HTML}`);
1544
- logger_1.logger.info(utils_1.message('EXPORT_RESOURCE_REPORT_SUCCESS', { 0: writeFileResponse }));
1545
- }
1546
- catch (error) {
1547
- logger_1.logger.debug('Error in writing file %o', error);
1548
- return false;
1549
- }
1528
+ try {
1529
+ const outputFileName = (0, utils_1.getFileNameWithTimeStamp)(constants_1.CONSTANT_VALUES.resourceReport);
1530
+ const outputFileLocation = `${path_1.default.resolve((0, utils_1.getStoreDir)(), constants_1.CONSTANT_VALUES.outputFileLocation)}/${constants_1.CONSTANT_VALUES.reportCFG}`;
1531
+ const writeFileResponse = await filesServices_1.fileServices.writeFile(resourceReport, outputFileLocation, `${outputFileName}.${constants_1.FileType.HTML}`);
1532
+ logger_1.logger.info((0, utils_1.message)('EXPORT_RESOURCE_REPORT_SUCCESS', { 0: writeFileResponse }));
1550
1533
  }
1551
1534
  catch (error) {
1552
- logger_1.logger.debug('Error in generating resource report %s', error.message);
1535
+ logger_1.logger.debug('Error in writing file %o', error);
1553
1536
  return false;
1554
1537
  }
1555
- return true;
1556
- });
1538
+ }
1539
+ catch (error) {
1540
+ logger_1.logger.debug('Error in generating resource report %s', error.message);
1541
+ return false;
1542
+ }
1543
+ return true;
1557
1544
  }
1558
1545
  exports.differentialReportUtils = {
1559
1546
  readConfigs,