From 47463dcdec9e35535db9869739097ae35f2fb540 Mon Sep 17 00:00:00 2001 From: Neha2365 <110969715+Neha2365@users.noreply.github.com> Date: Tue, 30 Jan 2024 16:51:03 +0530 Subject: [PATCH] MOSIP-30687 on demand changes (#1175) * Added the jackson core dependency Signed-off-by: Neha Farheen * MOSIP-30687 On demand template extraction changes Signed-off-by: Neha Farheen * MOSIP-30687 On demand template extraction changes Signed-off-by: Neha Farheen * MOSIP-30687 On demand template extraction changes added bean in application config Signed-off-by: Neha Farheen --------- Signed-off-by: Neha Farheen Co-authored-by: Neha Farheen --- .../service/websub/impl/OndemandTemplateEventPublisher.java | 4 +++- .../io/mosip/authentication/otp/service/OtpApplication.java | 3 ++- .../authentication/service/IdAuthenticationApplication.java | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/websub/impl/OndemandTemplateEventPublisher.java b/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/websub/impl/OndemandTemplateEventPublisher.java index ed7fe266122..3bc49b4e2b9 100644 --- a/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/websub/impl/OndemandTemplateEventPublisher.java +++ b/authentication/authentication-common/src/main/java/io/mosip/authentication/common/service/websub/impl/OndemandTemplateEventPublisher.java @@ -52,7 +52,9 @@ public class OndemandTemplateEventPublisher extends BaseWebSubEventsInitializer private static final String PUBLISHER_IDA = "IDA"; /** The Constant logger. */ - private static final Logger logger = IdaLogger.getLogger(CredentialStoreStatusEventPublisher.class); + + private static final Logger logger = IdaLogger.getLogger(OndemandTemplateEventPublisher.class); + /** The on demand template extraction topic. */ @Value("${" + ON_DEMAND_TEMPLATE_EXTRACTION_TOPIC + "}") diff --git a/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java b/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java index bd2ed775ec3..c1d4c24781b 100644 --- a/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java +++ b/authentication/authentication-otp-service/src/main/java/io/mosip/authentication/otp/service/OtpApplication.java @@ -54,6 +54,7 @@ import io.mosip.authentication.common.service.websub.impl.AuthTransactionStatusEventPublisher; import io.mosip.authentication.common.service.websub.impl.IdAuthFraudAnalysisEventPublisher; import io.mosip.authentication.common.service.websub.impl.MasterDataUpdateEventInitializer; +import io.mosip.authentication.common.service.websub.impl.OndemandTemplateEventPublisher; import io.mosip.authentication.common.service.websub.impl.PartnerCACertEventInitializer; import io.mosip.authentication.common.service.websub.impl.PartnerServiceEventsInitializer; import io.mosip.authentication.core.util.IdTypeUtil; @@ -111,7 +112,7 @@ PartnerCACertEventServiceImpl.class, PartnerCACertEventInitializer.class, IdAuthWebSubInitializer.class, AuthAnonymousEventPublisher.class, EnvUtil.class, KeyBindedTokenMatcherUtil.class, HSMHealthCheck.class, PrivateKeyDecryptorHelper.class, - PasswordAuthServiceImpl.class, PasswordComparator.class }) + PasswordAuthServiceImpl.class, PasswordComparator.class, OndemandTemplateEventPublisher.class }) @ComponentScan(basePackages = { "io.mosip.authentication.otp.service.*", "io.mosip.kernel.core.logger.config", "${mosip.auth.adapter.impl.basepackage}" }, excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = { "io.mosip.idrepository.core.config.IdRepoDataSourceConfig.*" })) diff --git a/authentication/authentication-service/src/main/java/io/mosip/authentication/service/IdAuthenticationApplication.java b/authentication/authentication-service/src/main/java/io/mosip/authentication/service/IdAuthenticationApplication.java index ff5e3055cbc..c8314aca958 100644 --- a/authentication/authentication-service/src/main/java/io/mosip/authentication/service/IdAuthenticationApplication.java +++ b/authentication/authentication-service/src/main/java/io/mosip/authentication/service/IdAuthenticationApplication.java @@ -59,6 +59,7 @@ import io.mosip.authentication.common.service.websub.impl.AuthTransactionStatusEventPublisher; import io.mosip.authentication.common.service.websub.impl.IdAuthFraudAnalysisEventPublisher; import io.mosip.authentication.common.service.websub.impl.MasterDataUpdateEventInitializer; +import io.mosip.authentication.common.service.websub.impl.OndemandTemplateEventPublisher; import io.mosip.authentication.common.service.websub.impl.PartnerCACertEventInitializer; import io.mosip.authentication.common.service.websub.impl.PartnerServiceEventsInitializer; import io.mosip.authentication.core.util.DemoMatcherUtil; @@ -125,7 +126,7 @@ AuthAnonymousProfileServiceImpl.class, AuthAnonymousEventPublisher.class, SessionKeyDecrytorHelper.class, ExternalRestHelperConfig.class, IdaRequestResponsConsumerUtil.class, PartnerCACertEventServiceImpl.class, PartnerCACertEventInitializer.class, EnvUtil.class, KeyBindedTokenMatcherUtil.class, HSMHealthCheck.class, TokenValidationHelper.class, VCSchemaProviderUtil.class, PrivateKeyDecryptorHelper.class, - PasswordAuthServiceImpl.class, PasswordComparator.class }) + PasswordAuthServiceImpl.class, PasswordComparator.class, OndemandTemplateEventPublisher.class }) @ComponentScan(basePackages = { "io.mosip.authentication.service.*", "io.mosip.kernel.core.logger.config", "io.mosip.authentication.common.service.config", "${mosip.auth.adapter.impl.basepackage}" }, excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = { "io.mosip.idrepository.core.config.IdRepoDataSourceConfig.*" }))