覆盖组件';s在Liferay DXP中提供服务

覆盖组件';s在Liferay DXP中提供服务,liferay,osgi,liferay-dxp,Liferay,Osgi,Liferay Dxp,我是为Liferay DXP和OSGi开发的新手。 当我们使用Liferay 6.2时,我们使用Spring配置com.Liferay.portal.security.ldap.PortalLDAPExporterUtil来使用实现com.Liferay.portal.security.ldap.PortalLDAPExporter的类,com.liferay.portal.security.ldap.PortalDapImporterUtil使用实现com.liferay.portal.sec

我是为Liferay DXP和OSGi开发的新手。 当我们使用Liferay 6.2时,我们使用Spring配置com.Liferay.portal.security.ldap.PortalLDAPExporterUtil来使用实现com.Liferay.portal.security.ldap.PortalLDAPExporter的类,com.liferay.portal.security.ldap.PortalDapImporterUtil使用实现com.liferay.portal.security.ldap.PortalDapExporter的类,并实现我们自己的com.liferay.portal.security.auth.Authenticator
现在我们正在使用Liferay DXP,我已经能够更改模块组件使用的服务之一,但是如果我想更改组件提供的服务,我该怎么办?我注意到com.liferay.portal.security.ldap.internal.authenticator.LDAPAuthcom.liferay.portal.security.ldap.internal.exportimport.LDAPUserExporterImplcom.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl都是ldap应用程序的组件“Liferay门户安全LDAP“模块。我希望确保使用这些东西的我的版本,而不是LDAP的版本。是否可以替换模块的组件或组件提供的服务的实现?或者我需要用我自己的版本替换整个LDAP应用程序吗?

您可以使用具有更高服务的自定义捆绑包覆盖Liferay模块。排名可能如下[留言](您可以使用具有更高服务的自定义捆绑包覆盖Liferay模块。这可能有助于某些服务的情况,但在身份验证过程中,Liferay会获取所有可用的com.Liferay.portal.security.auth.Authenticator服务并使用它们中的每一个。为了确保使用了我们的服务和Liferay的w我们最终替换了Liferay LDAP模块。