meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sap_hybris_commerce:orders:commerce_facades_key_concepts_features [2019/08/26 16:41] – created Antonio Robirosa | sap_hybris_commerce:orders:commerce_facades_key_concepts_features [2019/12/18 20:17] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
The **commercefacades** extension exposes a group of facades which simplify the communication between the store frontend and the service layer. This is a summary which I wrote while studying for the certification. The Hybris Documentation about commercefacades has one page and it is worth reading. | The **commercefacades** extension exposes a group of facades which simplify the communication between the store frontend and the service layer. This is a summary which I wrote while studying for the certification. The Hybris Documentation about commercefacades has one page and it is worth reading. | ||
- | ====== Key Concepts ====== | + | ===== Key Concepts ====== |
* The facades return **data objects** which are completely separated from the models. They can be extend using the file ***-beans.xml.** | * The facades return **data objects** which are completely separated from the models. They can be extend using the file ***-beans.xml.** | ||
Line 16: | Line 16: | ||
* First the converter creates a data object using all the populators which fill the mandatory fields. | * First the converter creates a data object using all the populators which fill the mandatory fields. | ||
* Then a configurable populator fills the fields which are only required by some components/ | * Then a configurable populator fills the fields which are only required by some components/ | ||
- | * A class diagram can be found here: [[https://wiki.hybris.com/x/NApiE|Converters and Populators]] | + | * [[https://help.sap.com/viewer/9d346683b0084da2938be8a285c0c27a/ |
- | + | ===== Key Features ====== | |
- | ====== Key Features ====== | + | |
* There are facades for: | * There are facades for: | ||
Line 36: | Line 35: | ||
* Extending or new data objects | * Extending or new data objects | ||
* yacceleratorfacades is an example of an extension which extends the facades. | * yacceleratorfacades is an example of an extension which extends the facades. | ||
- | * Out-of-the-box converters and populators: | + | * Out-of-the-box converters and populators: |
* The **URLResolver** must be implemented to provide relative URLs for the business objects. Hybris comes with URL resolvers for products, categories and search using facets. | * The **URLResolver** must be implemented to provide relative URLs for the business objects. Hybris comes with URL resolvers for products, categories and search using facets. | ||
- | ====== Workflow ====== | + | ===== Workflow ====== |
- | + | ||
- | The interaction of the controllers, | + | |
- | [[https:// | + | The interaction of the controllers, |
**In the B2C Accelerator the converters and the populators are never used to convert from a DTO to a model.** But they could be used. | **In the B2C Accelerator the converters and the populators are never used to convert from a DTO to a model.** But they could be used. | ||
--Based on Hybris 6.3 | --Based on Hybris 6.3 |