[英]Hybris CDC customize GigyaLoginAddon, GigyaFacades and GigyaServices
I need to customize this OOTB extensions, in order to achieve this and create my own custom logic which are the steps that I must follow?我需要自定义此 OOTB 扩展,以实现此目的并创建我自己的自定义逻辑,我必须遵循哪些步骤? Do I have to create through ant extgen a new extension based on Gigya template (if this exists) and there override the beans or can I just override the bean in my trainingfacades extension?
我是否必须通过 ant extgen 创建一个基于 Gigya 模板的新扩展(如果存在)并且覆盖 bean 或者我可以在我的 trainingfacades 扩展中覆盖 bean?
When you want to change a facade or service you can just extend the default implementation and override the public method you want to change.当您想要更改外观或服务时,您只需扩展默认实现并覆盖您想要更改的公共方法。 An example is the product service here:
一个例子是这里的产品服务:
public class TrainingGigyaServiceImpl extends DefaultGigyaService implements GigyaService
{
// Override your methods here
}
Then define a unique bean for it and override the only the alias with your newly created bean id:然后为它定义一个唯一的 bean,并用你新创建的 bean id 覆盖唯一的别名:
<alias name="trainingGigyaService" alias="gigyaService"/>
Make also sure you load the gigya* extensions before your training extension by adding it to the extensioninfo.xml
还要确保在训练扩展之前加载 gigya* 扩展,方法是将其添加到
extensioninfo.xml
This process of overriding is also more elaborated on the SAP help page https://help.sap.com/viewer/aa417173fe4a4ba5a473c93eb730a417/v2105/en-US/034a7f51580e45b19d67c51cc3e6a6dc.html This process of overriding is also more elaborated on the SAP help page https://help.sap.com/viewer/aa417173fe4a4ba5a473c93eb730a417/v2105/en-US/034a7f51580e45b19d67c51cc3e6a6dc.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.