Class VariantCategoryValidateInterceptor

java.lang.Object
de.hybris.platform.variants.interceptor.VariantCategoryValidateInterceptor
All Implemented Interfaces:
Interceptor, ValidateInterceptor<VariantCategoryModel>

public class VariantCategoryValidateInterceptor extends Object implements ValidateInterceptor<VariantCategoryModel>
This interceptor validates that the VariantCategory that you try to save has at most one supercategory and this supercategory is of type VariantCategory. Also it validates that all subcategories are either of type VariantCategory or VariantValueCategory. If the subcategories include VariantCategory it may not be in there only once.