@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.
- package/README.md +4 -0
- package/dist/configuration/config.json +1 -0
- package/dist/package.json +11 -11
- package/dist/packages/admintasks/package-lock.json +8622 -15410
- package/dist/packages/admintasks/package.json +10 -6
- package/dist/packages/admintasks/src/commands/createCredentialVault.d.ts +2 -2
- package/dist/packages/admintasks/src/commands/createCredentialVault.js +61 -74
- package/dist/packages/admintasks/src/commands/createCredentialVault.js.map +1 -1
- package/dist/packages/admintasks/src/commands/createSyndicationRelation.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/createSyndicationRelation.js +38 -49
- package/dist/packages/admintasks/src/commands/createSyndicationRelation.js.map +1 -1
- package/dist/packages/admintasks/src/commands/createVirtualPortal.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/createVirtualPortal.js +33 -44
- package/dist/packages/admintasks/src/commands/createVirtualPortal.js.map +1 -1
- package/dist/packages/admintasks/src/commands/differentialReport.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/differentialReport.js +107 -106
- package/dist/packages/admintasks/src/commands/differentialReport.js.map +1 -1
- package/dist/packages/admintasks/src/commands/exportVirtualPortal.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/exportVirtualPortal.js +35 -46
- package/dist/packages/admintasks/src/commands/exportVirtualPortal.js.map +1 -1
- package/dist/packages/admintasks/src/commands/exportWCMLibrary.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/exportWCMLibrary.js +104 -101
- package/dist/packages/admintasks/src/commands/exportWCMLibrary.js.map +1 -1
- package/dist/packages/admintasks/src/commands/importVirtualPortal.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/importVirtualPortal.js +36 -47
- package/dist/packages/admintasks/src/commands/importVirtualPortal.js.map +1 -1
- package/dist/packages/admintasks/src/commands/importWCMLibrary.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/importWCMLibrary.js +85 -82
- package/dist/packages/admintasks/src/commands/importWCMLibrary.js.map +1 -1
- package/dist/packages/admintasks/src/commands/listVirtualPortals.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/listVirtualPortals.js +26 -37
- package/dist/packages/admintasks/src/commands/listVirtualPortals.js.map +1 -1
- package/dist/packages/admintasks/src/commands/pznRulesExport.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/pznRulesExport.js +52 -63
- package/dist/packages/admintasks/src/commands/pznRulesExport.js.map +1 -1
- package/dist/packages/admintasks/src/commands/pznRulesImport.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/pznRulesImport.js +103 -100
- package/dist/packages/admintasks/src/commands/pznRulesImport.js.map +1 -1
- package/dist/packages/admintasks/src/commands/resEnvProviderActions.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/resEnvProviderActions.js +133 -130
- package/dist/packages/admintasks/src/commands/resEnvProviderActions.js.map +1 -1
- package/dist/packages/admintasks/src/commands/restartCorePods.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/restartCorePods.js +19 -30
- package/dist/packages/admintasks/src/commands/restartCorePods.js.map +1 -1
- package/dist/packages/admintasks/src/commands/restartDXCore.d.ts +1 -1
- package/dist/packages/admintasks/src/commands/restartDXCore.js +52 -50
- package/dist/packages/admintasks/src/commands/restartDXCore.js.map +1 -1
- package/dist/packages/admintasks/src/errors/CommandLineMessages_en.json +1 -1
- package/dist/packages/admintasks/src/services/createSyndicationRelationServices.js +6 -15
- package/dist/packages/admintasks/src/services/createSyndicationRelationServices.js.map +1 -1
- package/dist/packages/admintasks/src/services/differentialReportService.js +8 -17
- package/dist/packages/admintasks/src/services/differentialReportService.js.map +1 -1
- package/dist/packages/admintasks/src/services/resEnvProviderService.js +54 -64
- package/dist/packages/admintasks/src/services/resEnvProviderService.js.map +1 -1
- package/dist/packages/admintasks/src/services/restartCorePodsService.js +7 -16
- package/dist/packages/admintasks/src/services/restartCorePodsService.js.map +1 -1
- package/dist/packages/admintasks/src/services/restartDXCoreService.js +15 -24
- package/dist/packages/admintasks/src/services/restartDXCoreService.js.map +1 -1
- package/dist/packages/admintasks/src/services/virtualPortalServices.js +40 -49
- package/dist/packages/admintasks/src/services/virtualPortalServices.js.map +1 -1
- package/dist/packages/admintasks/src/utils/differential-report-utils.js +1042 -1055
- package/dist/packages/admintasks/src/utils/differential-report-utils.js.map +1 -1
- package/dist/packages/dam/package-lock.json +3013 -6449
- package/dist/packages/dam/package.json +11 -7
- package/dist/packages/dam/src/commands/createSecrets.d.ts +1 -1
- package/dist/packages/dam/src/commands/createSecrets.js +38 -45
- package/dist/packages/dam/src/commands/createSecrets.js.map +1 -1
- package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.d.ts +1 -1
- package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.js +22 -33
- package/dist/packages/dam/src/commands/deleteDAMStagingMismatch.js.map +1 -1
- package/dist/packages/dam/src/commands/deleteSchema.d.ts +1 -1
- package/dist/packages/dam/src/commands/deleteSchema.js +48 -59
- package/dist/packages/dam/src/commands/deleteSchema.js.map +1 -1
- package/dist/packages/dam/src/commands/exportAssets.d.ts +1 -1
- package/dist/packages/dam/src/commands/exportAssets.js +58 -69
- package/dist/packages/dam/src/commands/exportAssets.js.map +1 -1
- package/dist/packages/dam/src/commands/findDAMStagingMismatch.d.ts +1 -1
- package/dist/packages/dam/src/commands/findDAMStagingMismatch.js +25 -36
- package/dist/packages/dam/src/commands/findDAMStagingMismatch.js.map +1 -1
- package/dist/packages/dam/src/commands/importAssets.d.ts +1 -1
- package/dist/packages/dam/src/commands/importAssets.js +38 -49
- package/dist/packages/dam/src/commands/importAssets.js.map +1 -1
- package/dist/packages/dam/src/commands/listSchema.d.ts +1 -1
- package/dist/packages/dam/src/commands/listSchema.js +19 -30
- package/dist/packages/dam/src/commands/listSchema.js.map +1 -1
- package/dist/packages/dam/src/commands/stagingMismatchReport.d.ts +1 -1
- package/dist/packages/dam/src/commands/stagingMismatchReport.js +79 -76
- package/dist/packages/dam/src/commands/stagingMismatchReport.js.map +1 -1
- package/dist/packages/dam/src/commands/stagingResync.d.ts +1 -1
- package/dist/packages/dam/src/commands/stagingResync.js +25 -36
- package/dist/packages/dam/src/commands/stagingResync.js.map +1 -1
- package/dist/packages/dam/src/commands/subscriberDeRegistration.d.ts +1 -1
- package/dist/packages/dam/src/commands/subscriberDeRegistration.js +19 -30
- package/dist/packages/dam/src/commands/subscriberDeRegistration.js.map +1 -1
- package/dist/packages/dam/src/commands/subscriberDetails.d.ts +1 -1
- package/dist/packages/dam/src/commands/subscriberDetails.js +24 -35
- package/dist/packages/dam/src/commands/subscriberDetails.js.map +1 -1
- package/dist/packages/dam/src/commands/subscriberRegistration.d.ts +1 -1
- package/dist/packages/dam/src/commands/subscriberRegistration.js +34 -45
- package/dist/packages/dam/src/commands/subscriberRegistration.js.map +1 -1
- package/dist/packages/dam/src/commands/triggerDAMStaging.d.ts +1 -1
- package/dist/packages/dam/src/commands/triggerDAMStaging.js +19 -30
- package/dist/packages/dam/src/commands/triggerDAMStaging.js.map +1 -1
- package/dist/packages/dam/src/commands/triggerDamReindexing.d.ts +1 -1
- package/dist/packages/dam/src/commands/triggerDamReindexing.js +26 -38
- package/dist/packages/dam/src/commands/triggerDamReindexing.js.map +1 -1
- package/dist/packages/dam/src/commands/updateSecrets.d.ts +1 -1
- package/dist/packages/dam/src/commands/updateSecrets.js +36 -47
- package/dist/packages/dam/src/commands/updateSecrets.js.map +1 -1
- package/dist/packages/dam/src/commands/validateAssets.d.ts +1 -1
- package/dist/packages/dam/src/commands/validateAssets.js +29 -40
- package/dist/packages/dam/src/commands/validateAssets.js.map +1 -1
- package/dist/packages/dam/src/export/collection.d.ts +8 -8
- package/dist/packages/dam/src/export/collection.js +71 -80
- package/dist/packages/dam/src/export/collection.js.map +1 -1
- package/dist/packages/dam/src/export/favorite.d.ts +1 -1
- package/dist/packages/dam/src/export/favorite.js +10 -19
- package/dist/packages/dam/src/export/favorite.js.map +1 -1
- package/dist/packages/dam/src/export/media-item.d.ts +4 -4
- package/dist/packages/dam/src/export/media-item.js +61 -56
- package/dist/packages/dam/src/export/media-item.js.map +1 -1
- package/dist/packages/dam/src/export/media-type-group.d.ts +1 -1
- package/dist/packages/dam/src/export/media-type-group.js +7 -16
- package/dist/packages/dam/src/export/media-type-group.js.map +1 -1
- package/dist/packages/dam/src/export/media-type.d.ts +1 -1
- package/dist/packages/dam/src/export/media-type.js +7 -16
- package/dist/packages/dam/src/export/media-type.js.map +1 -1
- package/dist/packages/dam/src/export/renditions.d.ts +6 -6
- package/dist/packages/dam/src/export/renditions.js +78 -73
- package/dist/packages/dam/src/export/renditions.js.map +1 -1
- package/dist/packages/dam/src/import/collection.d.ts +3 -3
- package/dist/packages/dam/src/import/collection.js +26 -35
- package/dist/packages/dam/src/import/collection.js.map +1 -1
- package/dist/packages/dam/src/import/favorite.d.ts +1 -1
- package/dist/packages/dam/src/import/favorite.js +8 -17
- package/dist/packages/dam/src/import/favorite.js.map +1 -1
- package/dist/packages/dam/src/import/media-items.d.ts +3 -3
- package/dist/packages/dam/src/import/media-items.js +46 -41
- package/dist/packages/dam/src/import/media-items.js.map +1 -1
- package/dist/packages/dam/src/import/media-type-group.d.ts +1 -1
- package/dist/packages/dam/src/import/media-type-group.js +13 -22
- package/dist/packages/dam/src/import/media-type-group.js.map +1 -1
- package/dist/packages/dam/src/import/media-type.d.ts +1 -1
- package/dist/packages/dam/src/import/media-type.js +12 -21
- package/dist/packages/dam/src/import/media-type.js.map +1 -1
- package/dist/packages/dam/src/import/permission.d.ts +3 -3
- package/dist/packages/dam/src/import/permission.js +21 -30
- package/dist/packages/dam/src/import/permission.js.map +1 -1
- package/dist/packages/dam/src/import/renditions.d.ts +6 -6
- package/dist/packages/dam/src/import/renditions.js +69 -64
- package/dist/packages/dam/src/import/renditions.js.map +1 -1
- package/dist/packages/dam/src/services/authService.d.ts +1 -1
- package/dist/packages/dam/src/services/authService.js +9 -18
- package/dist/packages/dam/src/services/authService.js.map +1 -1
- package/dist/packages/dam/src/services/stagingService.js +76 -85
- package/dist/packages/dam/src/services/stagingService.js.map +1 -1
- package/dist/packages/dam/src/services/tokenCache.d.ts +1 -1
- package/dist/packages/dam/src/services/tokenCache.js +30 -41
- package/dist/packages/dam/src/services/tokenCache.js.map +1 -1
- package/dist/packages/dam/src/utils/constants.js +3 -3
- package/dist/packages/dam/src/utils/constants.js.map +1 -1
- package/dist/packages/dam/src/utils/service.js +59 -70
- package/dist/packages/dam/src/utils/service.js.map +1 -1
- package/dist/packages/dam/src/validation/collection-list-validate.js +26 -35
- package/dist/packages/dam/src/validation/collection-list-validate.js.map +1 -1
- package/dist/packages/dam/src/validation/media-list-validate.js +44 -39
- package/dist/packages/dam/src/validation/media-list-validate.js.map +1 -1
- package/dist/packages/dam/src/validation/media-type-group-validate.js +5 -14
- package/dist/packages/dam/src/validation/media-type-group-validate.js.map +1 -1
- package/dist/packages/dam/src/validation/media-type-validate.js +5 -14
- package/dist/packages/dam/src/validation/media-type-validate.js.map +1 -1
- package/dist/packages/dam/src/validation/root-validate.js +10 -19
- package/dist/packages/dam/src/validation/root-validate.js.map +1 -1
- package/dist/packages/dam/src/validation/validate.rendition.js +17 -26
- package/dist/packages/dam/src/validation/validate.rendition.js.map +1 -1
- package/dist/packages/dam/src/validation/validate.versions.js +16 -25
- package/dist/packages/dam/src/validation/validate.versions.js.map +1 -1
- package/dist/packages/deployportlet/package-lock.json +9970 -12728
- package/dist/packages/deployportlet/package.json +20 -6
- package/dist/packages/deployportlet/src/commands/deployPortlet.d.ts +1 -1
- package/dist/packages/deployportlet/src/commands/deployPortlet.js +65 -62
- package/dist/packages/deployportlet/src/commands/deployPortlet.js.map +1 -1
- package/dist/packages/deployportlet/src/commands/undeployPortlet.d.ts +1 -1
- package/dist/packages/deployportlet/src/commands/undeployPortlet.js +80 -77
- package/dist/packages/deployportlet/src/commands/undeployPortlet.js.map +1 -1
- package/dist/packages/deployportlet/src/commands/xmlaccess.d.ts +1 -1
- package/dist/packages/deployportlet/src/commands/xmlaccess.js +14 -25
- package/dist/packages/deployportlet/src/commands/xmlaccess.js.map +1 -1
- package/dist/packages/deployportlet/src/services/undeployPortletServices.js +34 -43
- package/dist/packages/deployportlet/src/services/undeployPortletServices.js.map +1 -1
- package/dist/packages/deployscriptapplication/package-lock.json +6395 -12760
- package/dist/packages/deployscriptapplication/package.json +11 -4
- package/dist/packages/deployscriptapplication/src/commands/pull.d.ts +1 -2
- package/dist/packages/deployscriptapplication/src/commands/pull.js +146 -159
- package/dist/packages/deployscriptapplication/src/commands/pull.js.map +1 -1
- package/dist/packages/deployscriptapplication/src/commands/push.d.ts +3 -3
- package/dist/packages/deployscriptapplication/src/commands/push.js +149 -157
- package/dist/packages/deployscriptapplication/src/commands/push.js.map +1 -1
- package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.d.ts +2 -2
- package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.js +88 -101
- package/dist/packages/deployscriptapplication/src/commands/restoreScriptApplication.js.map +1 -1
- package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.d.ts +2 -2
- package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.js +118 -131
- package/dist/packages/deployscriptapplication/src/commands/undeployScriptApplication.js.map +1 -1
- package/dist/packages/deployscriptapplication/src/util/constants.js.map +1 -1
- package/dist/packages/deployscriptapplication/src/util/generic.js.map +1 -1
- package/dist/packages/deploytheme/package-lock.json +7190 -13434
- package/dist/packages/deploytheme/package.json +9 -6
- package/dist/packages/deploytheme/src/commands/deployApplication.d.ts +1 -1
- package/dist/packages/deploytheme/src/commands/deployApplication.js +87 -84
- package/dist/packages/deploytheme/src/commands/deployApplication.js.map +1 -1
- package/dist/packages/deploytheme/src/commands/deployTheme.d.ts +4 -4
- package/dist/packages/deploytheme/src/commands/deployTheme.js +223 -226
- package/dist/packages/deploytheme/src/commands/deployTheme.js.map +1 -1
- package/dist/packages/deploytheme/src/commands/undeployApplication.d.ts +1 -1
- package/dist/packages/deploytheme/src/commands/undeployApplication.js +21 -32
- package/dist/packages/deploytheme/src/commands/undeployApplication.js.map +1 -1
- package/dist/packages/deploytheme/src/commands/undeployTheme.d.ts +4 -4
- package/dist/packages/deploytheme/src/commands/undeployTheme.js +214 -223
- package/dist/packages/deploytheme/src/commands/undeployTheme.js.map +1 -1
- package/dist/packages/deploytheme/src/services/themeServices.js +84 -90
- package/dist/packages/deploytheme/src/services/themeServices.js.map +1 -1
- package/dist/packages/livesync/package-lock.json +2202 -3754
- package/dist/packages/livesync/package.json +9 -5
- package/dist/packages/livesync/src/commands/pullTheme.d.ts +2 -2
- package/dist/packages/livesync/src/commands/pullTheme.js +62 -75
- package/dist/packages/livesync/src/commands/pullTheme.js.map +1 -1
- package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.d.ts +2 -1
- package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.js +255 -288
- package/dist/packages/livesync/src/commands/pullWcmDesignLibrary.js.map +1 -1
- package/dist/packages/livesync/src/commands/pushTheme.d.ts +4 -4
- package/dist/packages/livesync/src/commands/pushTheme.js +125 -140
- package/dist/packages/livesync/src/commands/pushTheme.js.map +1 -1
- package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.d.ts +2 -2
- package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.js +545 -548
- package/dist/packages/livesync/src/commands/pushWcmDesignLibrary.js.map +1 -1
- package/dist/packages/livesync/src/errors/CommandLineMessages_en.json +15 -11
- package/dist/packages/livesync/src/messages/messages_en.json +1 -0
- package/dist/packages/livesync/src/services/EventsQueue.js +11 -24
- package/dist/packages/livesync/src/services/EventsQueue.js.map +1 -1
- package/dist/packages/livesync/src/services/foldersWcmServices.js +21 -30
- package/dist/packages/livesync/src/services/foldersWcmServices.js.map +1 -1
- package/dist/packages/livesync/src/services/htmlComponentWcmServices.js +19 -28
- package/dist/packages/livesync/src/services/htmlComponentWcmServices.js.map +1 -1
- package/dist/packages/livesync/src/services/initialSyncServices.js +65 -81
- package/dist/packages/livesync/src/services/initialSyncServices.js.map +1 -1
- package/dist/packages/livesync/src/services/livesyncUtils.js +54 -49
- package/dist/packages/livesync/src/services/livesyncUtils.js.map +1 -1
- package/dist/packages/livesync/src/services/metadataServices.js +113 -77
- package/dist/packages/livesync/src/services/metadataServices.js.map +1 -1
- package/dist/packages/livesync/src/services/ongoingSyncServices.js +192 -176
- package/dist/packages/livesync/src/services/ongoingSyncServices.js.map +1 -1
- package/dist/packages/livesync/src/services/presentationTemplateWcmServices.js +19 -28
- package/dist/packages/livesync/src/services/presentationTemplateWcmServices.js.map +1 -1
- package/dist/packages/livesync/src/services/styleSheetComponentWcmServices.js +18 -27
- package/dist/packages/livesync/src/services/styleSheetComponentWcmServices.js.map +1 -1
- package/dist/packages/livesync/src/services/wcmContext/initialSync.js +29 -23
- package/dist/packages/livesync/src/services/wcmContext/initialSync.js.map +1 -1
- package/dist/packages/livesync/src/services/wcmContext/stylesheetComponent.js +221 -206
- package/dist/packages/livesync/src/services/wcmContext/stylesheetComponent.js.map +1 -1
- package/dist/packages/livesync/src/services/wcmContext/wcmLibraryContext.js +4 -4
- package/dist/packages/livesync/src/services/wcmContext/wcmLibraryContext.js.map +1 -1
- package/dist/packages/livesync/src/services/wcmRestV2Services.js +20 -26
- package/dist/packages/livesync/src/services/wcmRestV2Services.js.map +1 -1
- package/dist/packages/livesync/src/types/EventHandler.type.d.ts +1 -1
- package/dist/packages/livesync/src/types/EventQueueItem.type.d.ts +2 -2
- package/dist/packages/livesync/src/types/OngoingSyncHooks.type.d.ts +1 -1
- package/dist/packages/livesync/src/types/WCMDesignLibraryCache.type.d.ts +1 -1
- package/dist/packages/livesync/src/types/WcmRestApiV2.type.d.ts +8 -8
- package/dist/packages/livesync/src/types/index.d.ts +6 -0
- package/dist/packages/livesync/src/types/index.js +5 -1
- package/dist/packages/livesync/src/types/index.js.map +1 -1
- package/dist/packages/mls_exim/package-lock.json +2908 -5990
- package/dist/packages/mls_exim/package.json +10 -6
- package/dist/packages/mls_exim/src/errors/CommandLineMessages_en.json +1 -0
- package/dist/packages/mls_exim/src/export/mlsExport.d.ts +2 -2
- package/dist/packages/mls_exim/src/export/mlsExport.js +81 -78
- package/dist/packages/mls_exim/src/export/mlsExport.js.map +1 -1
- package/dist/packages/mls_exim/src/export/mlsExport.ts +9 -9
- package/dist/packages/mls_exim/src/import/mlsImport.d.ts +1 -1
- package/dist/packages/mls_exim/src/import/mlsImport.js +38 -46
- package/dist/packages/mls_exim/src/import/mlsImport.js.map +1 -1
- package/dist/packages/mls_exim/src/import/mlsImport.ts +9 -4
- package/dist/packages/sharedlibrary/package-lock.json +6221 -12629
- package/dist/packages/sharedlibrary/package.json +9 -6
- package/dist/packages/sharedlibrary/src/commands/delete.d.ts +1 -1
- package/dist/packages/sharedlibrary/src/commands/delete.js +40 -37
- package/dist/packages/sharedlibrary/src/commands/delete.js.map +1 -1
- package/dist/packages/sharedlibrary/src/commands/upload.d.ts +1 -1
- package/dist/packages/sharedlibrary/src/commands/upload.js +73 -70
- package/dist/packages/sharedlibrary/src/commands/upload.js.map +1 -1
- package/dist/packages/sharedlibrary/src/errors/CommandLineMessages_en.json +1 -0
- package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.js +29 -30
- package/dist/packages/sharedlibrary/src/services/sharedLibraryServices.js.map +1 -1
- package/dist/packages/syndication/package-lock.json +9970 -12728
- package/dist/packages/syndication/package.json +21 -7
- package/dist/packages/syndication/src/commands/subscriber.d.ts +1 -1
- package/dist/packages/syndication/src/commands/subscriber.js +33 -44
- package/dist/packages/syndication/src/commands/subscriber.js.map +1 -1
- package/dist/packages/syndication/src/commands/syndicator.d.ts +1 -1
- package/dist/packages/syndication/src/commands/syndicator.js +33 -44
- package/dist/packages/syndication/src/commands/syndicator.js.map +1 -1
- package/dist/packages/syndication/src/commands/syndicatorFailedItem.d.ts +1 -1
- package/dist/packages/syndication/src/commands/syndicatorFailedItem.js +67 -78
- package/dist/packages/syndication/src/commands/syndicatorFailedItem.js.map +1 -1
- package/dist/packages/syndication/src/services/syndicationService.d.ts +8 -8
- package/dist/packages/syndication/src/services/syndicationService.js +39 -48
- package/dist/packages/syndication/src/services/syndicationService.js.map +1 -1
- package/dist/src/errors/CommandLineMessages_en.json +3 -1
- package/dist/src/index.js +939 -959
- package/dist/src/index.js.map +1 -1
- package/dist/src/services/apiServices.js +187 -178
- package/dist/src/services/apiServices.js.map +1 -1
- package/dist/src/services/filesServices.d.ts +0 -1
- package/dist/src/services/filesServices.js +14 -23
- package/dist/src/services/filesServices.js.map +1 -1
- package/dist/src/services/requestService.js +16 -22
- package/dist/src/services/requestService.js.map +1 -1
- package/dist/src/utils/constants.d.ts +1 -1
- package/dist/src/utils/constants.js +59 -59
- package/dist/src/utils/constants.js.map +1 -1
- package/dist/src/utils/logger.d.ts +1 -0
- package/dist/src/utils/logger.js +58 -61
- package/dist/src/utils/logger.js.map +1 -1
- package/dist/src/utils/utils.d.ts +8 -6
- package/dist/src/utils/utils.js +139 -113
- package/dist/src/utils/utils.js.map +1 -1
- package/dist/src/utils/validateOptions.d.ts +3 -3
- package/dist/src/utils/validateOptions.js +354 -333
- package/dist/src/utils/validateOptions.js.map +1 -1
- 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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (report
|
|
260
|
-
|
|
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> <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
|
-
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
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> <font size="1">${scope}</font>`;
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
value = `<br>${value}`;
|
|
262
|
+
}
|
|
263
|
+
rElements.push(value);
|
|
277
264
|
});
|
|
278
|
-
|
|
265
|
+
rElements.sort();
|
|
266
|
+
list.push(rElements.toString());
|
|
279
267
|
});
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
tbody = `${tbody}<
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
tbody = `${tbody}
|
|
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
|
-
|
|
298
|
-
|
|
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
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
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
|
|
408
|
+
logger_1.logger.debug('Error in writing file %o', error);
|
|
424
409
|
return false;
|
|
425
410
|
}
|
|
426
|
-
|
|
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
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
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
|
|
1213
|
-
|
|
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
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
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
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
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 (
|
|
1284
|
-
|
|
1285
|
-
throw e;
|
|
1244
|
+
catch (error) {
|
|
1245
|
+
logger_1.logger.debug('error %s', error.message);
|
|
1286
1246
|
}
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1247
|
+
const keys = Object.keys(config);
|
|
1248
|
+
if (keys.length === 0) {
|
|
1249
|
+
attributeValues.push('configuration not defined');
|
|
1290
1250
|
}
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
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
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
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
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
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
|
-
|
|
1341
|
-
|
|
1312
|
+
if ((propAttr.PropPath).length > 0) {
|
|
1313
|
+
propAttr.PropPath.forEach((PropPath) => {
|
|
1314
|
+
pathElements.push(PropPath);
|
|
1315
|
+
});
|
|
1342
1316
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1383
|
-
|
|
1346
|
+
if (MasterDict[prop].value !== undefined) {
|
|
1347
|
+
value = MasterDict[prop].value;
|
|
1384
1348
|
}
|
|
1385
1349
|
else {
|
|
1386
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
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
|
-
|
|
1415
|
+
tbody = `${tbody}</tbody>`;
|
|
1430
1416
|
});
|
|
1417
|
+
reportingTable = `${reportingTable}${tbody}</table></br>`;
|
|
1431
1418
|
});
|
|
1432
|
-
|
|
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
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
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
|
|
1535
|
+
logger_1.logger.debug('Error in writing file %o', error);
|
|
1553
1536
|
return false;
|
|
1554
1537
|
}
|
|
1555
|
-
|
|
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,
|