Class CategoryRemovalValidator
java.lang.Object
de.hybris.platform.category.interceptors.CategoryRemovalValidator
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
Validator for removal of
CategoryModel. It checks if the specific category can be removed, and denies removal
request if it holds sub-categories. It can be disabled by setting the
CategoryConstants.DISABLE_SUBCATEGORY_REMOVALCHECK in the session to true.- Spring Bean ID:
- categoryRemovalValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(Object model, InterceptorContext ctx) Called in themodelService.removeAll()method.voidsetCategoryService(CategoryService categoryService)
-
Constructor Details
-
CategoryRemovalValidator
public CategoryRemovalValidator()
-
-
Method Details
-
onRemove
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor- Parameters:
model- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
setCategoryService
-