This project shows how to extend/customize the Hybris connector to achieve the following:
- Parse some custom Hybris data when importing products from Hybris:
MyResponseParser#parseProductData - Import product references from Hybris:
MyResponseParser#parseUnknownProductAttribute - Add/update some specific product attributes in CQ when importing products from Hybris:
MyImportHandler#updateProduct - Modify the way assets are stored in CQ when importing products from Hybris:
MyImportHandler#updateAsset - Customize the way catalogs are imported/updated from Hybris:
MyImporter#importCatalog - Customize the way groups are imported from Hybris:
MyImporter#importGroups - Customize the catalog/product rollout process:
MyCommerceService#catalogRolloutHookandMyCommerceService#productRolloutHook - Change the price of a product:
MyCommerceSession#getProductPrice
Some other extension points:
HybrisFactory#getProductis responsible for creating Product instances.HybrisSession#getProductPriceInfois responsible for getting the correct price for a product for the current user.HybrisService#loginis responsible for extracting SessionInfo from a request.HybrisFactory#getSessionis responsible for creating HybrisSession instances.ProfileSynchronizer#syncProfileis responsible for syncing the user’s CQ profile to the respective Hybris account.HybrisConnectionis responsible for actually sending HTTP(S) requests to the Hybris server.HybrisAuthenticationHandler(s) are responsible for authenticating HTTP(S) requests.
The project can be built and deployed with Maven.