SAP Commerce Extension Module

Extension modules are structural elements of an extension. 类似ABAP开发包的概念。

> An extension may include several extension modules serving as structural elements. Each of them offers a certain set of functionality. The functionality of the extension that you wish to have depends on extension modules that you implement.

Extension module分为core和web两类。

core extension module包含这些组件:

  1. type system definition

位于items.xml文件里,位置和命名规范:

  1. java file
  2. extension版本

> In addition, every SAP Commerce package contains a <build.number> file with no prefix. This package-related build.number file contains the same information as the <$extension>.<build.number> files, but also has a list of the extensions contained by the package.

  1. localization files, 用于本地化

web extension module

extension的一部分,可以被浏览器访问。

访问方式:

> To launch a web extension module via your web browser, go to the URL path to Platform on the server/name of extension/starting page. For example, if you are running myExtension locally on default settings, the URL would be <http://localhost&gt;:9001/myExtension.

You can set up the list of extensions that are available to SAP Commerce by:

  1. Modifying the localextensions.xml file located in the <${HYBRIS_CONFIG_DIR}> directory.
  2. Building SAP Commerce.

localextensions.xml的位置和内容:

&lt;hybrisconfig xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='../bin/platform/resources/schemas/extensions.xsd'&gt;
  &lt;extensions&gt;
    &lt;path dir='${HYBRIS_BIN_DIR}' autoload='false' /&gt;
    &lt;extension name='mcc' /&gt;
    &lt;extension name='adaptivesearchsolr' /&gt;
    &lt;extension name='adaptivesearchbackoffice' /&gt;
    &lt;extension name='adaptivesearchsamplesaddon' /&gt;
    &lt;extension name='adaptivesearchwebservices' /&gt;
    &lt;extension name='commerceservicesbackoffice' /&gt;
    &lt;extension name='solrfacetsearchbackoffice' /&gt;
    &lt;extension name='solrserver' /&gt;
    &lt;extension name='yacceleratorcockpits' /&gt;
    &lt;extension name='yacceleratorinitialdata' /&gt;
    &lt;extension name='yacceleratorfulfilmentprocess' /&gt;
    &lt;extension name='yacceleratorstorefront' /&gt;
    &lt;extension name='ycommercewebservices' /&gt;
    &lt;extension name='ycommercewebservicestest' /&gt;
    &lt;extension name='electronicsstore' /&gt;
    &lt;extension name='acceleratorwebservicesaddon' /&gt;
    &lt;extension name='orderselfserviceaddon' /&gt;
    &lt;extension name='customersupportbackoffice' /&gt;
    &lt;extension name='customerticketingaddon' /&gt;
    &lt;extension name='commerceorgsamplesaddon' /&gt;
    &lt;extension name='rulebuilderbackoffice' /&gt;
    &lt;extension name='couponbackoffice' /&gt;
    &lt;extension name='droolsruleengineservices' /&gt;
    &lt;extension name='couponfacades' /&gt;
    &lt;extension name='promotionenginesamplesaddon' /&gt;
    &lt;extension name='cmswebservices' /&gt;
    &lt;extension name='smarteditwebservices' /&gt;
    &lt;extension name='cmssmarteditwebservices' /&gt;
    &lt;extension name='permissionswebservices' /&gt;
    &lt;extension name='smarteditaddon' /&gt;
    &lt;extension name='cmssmartedit' /&gt;
    &lt;extension name='cmsbackoffice' /&gt;
    &lt;extension name='previewpersonalizationweb' /&gt;
    &lt;extension name='personalizationcmsweb' /&gt;
    &lt;extension name='personalizationsmartedit' /&gt;
    &lt;extension name='personalizationpromotionssmartedit' /&gt;
    &lt;extension name='personalizationsampledataaddon' /&gt;
    &lt;extension name='personalizationpromotions' /&gt;
    &lt;extension name='personalizationpromotionsweb' /&gt;
    &lt;extension name='personalizationservicesbackoffice' /&gt;
    &lt;extension name='personalizationpromotionsbackoffice' /&gt;
    &lt;extension name='personalizationcmsbackoffice' /&gt;
    &lt;extension name='personalizationsearchbackoffice' /&gt;
    &lt;extension name='personalizationsearchsmartedit' /&gt;
    &lt;extension name='personalizationsearchweb' /&gt;
    &lt;extension name='personalizationsearchsamplesaddon' /&gt;
    &lt;extension name='textfieldconfiguratortemplatebackoffice' /&gt;
    &lt;extension name='textfieldconfiguratortemplateaddon' /&gt;
    &lt;extension name='assistedservicestorefront' /&gt;
    &lt;extension name='assistedservicewebservices' /&gt;
    &lt;extension name='assistedservicepromotionaddon' /&gt;
    &lt;extension name='assistedserviceatddtests' /&gt;
    &lt;extension name='promotionengineatddtests' /&gt;
    &lt;extension name='textfieldconfiguratortemplateatddtests' /&gt;
    &lt;extension name='pcmbackoffice' /&gt;
    &lt;extension name='chineseprofileaddon' /&gt;
    &lt;extension name='chineselogisticaddon' /&gt;
    &lt;extension name='chineselogisticbackoffice' /&gt;
    &lt;extension name='chinesepaymentaddon' /&gt;
    &lt;extension name='chinesetaxinvoiceaddon' /&gt;
    &lt;extension name='chinesetaxinvoicebackoffice' /&gt;
    &lt;extension name='chinesepspalipaymock' /&gt;
    &lt;extension name='chinesepspalipaysamplesaddon' /&gt;
    &lt;extension name='chinesepspalipaysbackoffice' /&gt;
    &lt;extension name='chinesestoreaddon' /&gt;
    &lt;extension name='verticalnavigationaddon' /&gt;
    &lt;extension name='chineseaddressaddon' /&gt;
    &lt;extension name='chineseaddressbackoffice' /&gt;
    &lt;extension name='chinesepspwechatpaymentaddon' /&gt;
    &lt;extension name='chinesepspwechatpaysamplesaddon' /&gt;
    &lt;extension name='chinesepspwechatpaysbackoffice' /&gt;
    &lt;extension name='consignmenttrackingaddon' /&gt;
    &lt;extension name='consignmenttrackingmock' /&gt;
    &lt;extension name='consignmenttrackingbackoffice' /&gt;
    &lt;extension name='notificationaddon' /&gt;
    &lt;extension name='customerinterestsaddon' /&gt;
    &lt;extension name='stocknotificationaddon' /&gt;
    &lt;extension name='chineseproductsharingaddon' /&gt;
    &lt;extension name='selectivecartaddon' /&gt;
    &lt;extension name='customercouponaddon' /&gt;
    &lt;extension name='customercouponsamplesaddon' /&gt;
    &lt;extension name='customercouponbackoffice' /&gt;
    &lt;extension name='timedaccesspromotionengineaddon' /&gt;
    &lt;extension name='timedaccesspromotionenginesamplesaddon' /&gt;
    &lt;extension name='timedaccesspromotionenginebackoffice' /&gt;
    &lt;extension name='messagecentercsoccaddon' /&gt;
    &lt;extension name='consignmenttrackingoccaddon' /&gt;
    &lt;extension name='customerinterestsoccaddon' /&gt;
    &lt;extension name='customercouponoccaddon' /&gt;
    &lt;extension name='notificationoccaddon' /&gt;
    &lt;extension name='stocknotificationoccaddon' /&gt;
  &lt;/extensions&gt;
&lt;/hybrisconfig&gt;

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

声明:该文章系转载,转载该文章的目的在于更广泛的传递信息,并不代表本网站赞同其观点,文章内容仅供参考。

本站是一个个人学习和交流平台,网站上部分文章为网站管理员和网友从相关媒体转载而来,并不用于任何商业目的,内容为作者个人观点, 并不代表本网站赞同其观点和对其真实性负责。

我们已经尽可能的对作者和来源进行了通告,但是可能由于能力有限或疏忽,导致作者和来源有误,亦可能您并不期望您的作品在我们的网站上发布。我们为这些问题向您致歉,如果您在我站上发现此类问题,请及时联系我们,我们将根据您的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。