1

我想使用 Hybris 的 hotfolder 功能将类别添加到目录中。

但是,当时在使用 hotfolder 添加类别时,我遇到了一个为检查当前用户而编写的拦截器的问题。由于 hotfolder 没有找到任何特定用户,这就是它向我显示 InterceptorException 的原因。

任何人都可以知道如何以管理员权限或任何我可以指定此执行的用户详细信息的方式执行此操作。

提前致谢。

PS:无法粘贴代码或其他任何在安全环境中工作的内容。

4

2 回答 2

0

For who still need this, here you have an exemple:

<bean id="batchB2BCustomerConverter" class="de.hybris.platform.acceleratorservices.dataimport.batch.converter.impl.DefaultImpexConverter">
    <property name="header">
        <value># Insert b2bCustomer
            INSERT_UPDATE B2BCustomer[disable.interceptor.beans='B2BCustomerActivationInterceptor,B2BCustomerModelValidateInterceptor'] ; uid[unique=true]; email; name; title(code); groups(uid); sessionCurrency(isocode)[default='EUR']; sessionLanguage(isocode)[default='de'];active[default='true']
        </value>
    </property>
    <property name="impexRow">
        <value>;{+0};{+1};{+2};{3};{+4};{5};{6};{7}</value>
    </property>
</bean>
于 2020-06-29T11:07:54.607 回答
0

你有几个选择。您可以尝试在导入时启用旧模式,也可以尝试设置存在当前用户的上下文。

你的拦截器想要达到什么目的?您的解决方案确实取决于此。

于 2016-04-29T17:28:06.233 回答