SAP Hybris EXTENSIONS Hybris extensions Overview The hybris
SAP Hybris – EXTENSIONS
Hybris – extensions - Overview The hybris Commerce Suite is based on a flexible, modular concept that allows you to put new functionality into extensions. An extension is an encapsulated piece of the hybris Commerce Suite that can contain business logic, type definitions, a web application, or a hybris Management Console (h. MC) configuration. That way, you link up in one place all of the functionality that covers a certain field of use, for example a webshop. Because extensions are independent of one another by default, you can migrate an extension from one hybris Commerce Suite version to another.
Hybris – extensions - Types
Hybris – extensions - Types - Core Localization Files The resources/localization directory of an extension contains the localization files for the extension's types and the types' attributes
Hybris – extensions - Types - hmc
Hybris – extensions - Types - Web Extension Module The web extension module is the part of an extension that is accessible via a web browser, such as the hybris Store. Foundation. 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 my. Extension locally on default settings, the URL would be http: //localhost: 9001/my. Extension.
Hybris – extensions - Overview
Hybris – extensions - Basic Structure
Hybris – extensions - Basic Structure /. external. Tool. Buildersdirectory Contains the Eclipse builder that automatically generates hybris Models if any extension's items. xml file has been modified in Eclipse http: //www. eclipse. org/articles/Article-Builders/builders. html: Project Builders and Natures in the Eclipse
Hybris – extensions - Basic Structure /. settings directory /lib directory Contains configuration files for Eclipse in general and Eclipserelated Spring configuration files. All external • extensioninfo. xml File section library files • Using External Libraries section should be stored here.
Hybris – extensions - Basic Structure /resources directory Contains the $extension • The Core Extension items. xml file and the Module section localization for the extension types (within the /localizationsubdirectory). /src directory Contains the source code files for the extension's coreextension module.
Hybris – extensions - Basic Structure testsrc directory JUnit test files for the extension are located here. /web directory This directory contains the web extension module parts of the extension (JSP files, libraries). Sources and resources from this directory are only accessible to a Web application containing the extension. They cannot be accessed from another extension. • Web extension module section • Using External Libraries section • Extension Dependencies
Hybris – extensions - Basic Structure. classpath file Classpath file for Eclipse. . pmd file Control file for PMD with hybris specific settings. • http: //pmd. sourceforge. n et/: PMD . project file Project file for Eclipse. . ruleset file Ruleset file for PMD with hybris-specific settings. • http: //pmd. sourceforge. n et/howtomakearuleset. ht ml: How to make a new rule set with PMD
Hybris – extensions - Basic Structure . spring. Beans file Configuration for Spring IDE Eclipse plugin. buildcallbacks. xml Allows you to implement custom build framework logic. • Build Framework extensioninfo. xml file Configures the extension modules. This file is used by the build framework. It also determines which extensions are required for proper functioning. • Build Framework • extensioninfo. xml • Extension Dependencies • extensioninfo. xml File section
Hybris – extensions - Basic Structure project. properties file Configuration properties for the extension. • Configuring the Behavior of hybris Commerce Suite external-dependenciesfile Third party dependencies of Hybris Commerce extensions are defined here. • external-dependencies. xml
Hybris – extensions - Basic Structure The directories and files above exist after the extension is generated (or after ant clean is run). During an extension build, some additional directories and files are created
Hybris – extensions - Basic Structure
Hybris – extensions - XML Files
Hybris – extensions - XML files
Hybris – extensions - XML files – Items. xml The items. xml file specifies types of an extension. By editing the items. xml file, you can define new types or extend existing types. In addition, you can define, override, and extend attributes in the same way.
Hybris – extensions - XML files – Items. xml XML Editor Recommended If you create XML files based on the items. xsd file, you can create valid items. xml files easily. The IDE Eclipse, for example, contains such XML editors. Not only will your items. xml files content be valid, but Eclipse also shows description of XML elements from the XSD file
Hybris – extensions - Items. xml - Locatoin The items. xml is located in the resources directory of an extension. The items. xml files are prefixed with the name of their respective extension in the form of extension name-items. xml. For example: For the core extension, the file is called core-items. xml. For the catalog extension, the file is called catalog-items. xml
Hybris – extensions - Items. xml – Basic Structure
Hybris – extensions - Items. xml – Types
Hybris – extensions - Items. xml – Types
Hybris – extensions - Items. xml – Service Layer
Hybris – extensions - Items. xml – Jalo Layer
Hybris – extensions - Items. xml – Update Possibilities
Hybris – extensions - Items. xml – Update Possibilities
Hybris – extensions - Items. xml – Update Possibilities
Hybris – extensions - Items. xml – Types
Hybris – extensions - Items. xml – Types
Hybris – extensions - Templates
Hybris – extensions - New
Hybris – extensions - New
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
Hybris – extensions - Eclipse Setup
- Slides: 43