on 2018 Mar 10 5:03 AM
Hi experts, May I know the purpose and differences between ValidateInterceptor, PrepareInterceptor in backoffice customization..
Request clarification before answering.
The Prepare Interceptor is called before a model is saved to the database before it is validated by Validate interceptors. This is used to add values to the model or modify existing ones before they are saved. An exception raised during execution prevents the model from being saved.
The Validate Interceptor is called before a model is saved to the database after is been prepared by the Prepare interceptors, above. You can use Validate Interceptors to validate values of the model and raise an InterceptorException if any values are not valid.
Also refer https://help.hybris.com/6.6.0/hcd/8bfbf43e8669101480d0f060d79b1baa.html for more detailed explanation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.