Class ClassificationClassSupercategoriesUnassigningPrepareInterceptor
java.lang.Object
com.hybris.classificationgroupsservices.interceptors.classificationclass.ClassificationClassSupercategoriesUnassigningPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ClassificationClassModel>
public class ClassificationClassSupercategoriesUnassigningPrepareInterceptor
extends Object
implements PrepareInterceptor<ClassificationClassModel>
Invokes when user unassigns
ClassificationClassModel from supercategories. Removes
ClassFeatureGroupAssignmentModels in given category and its subcategories. Method doesn't remove
ClassFeatureGroupAssignmentModels which are connected with inherited ClassAttributeAssignmentModels
from another supercategories.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(ClassificationClassModel classificationClass, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetClassFeatureGroupAssignmentService(ClassFeatureGroupAssignmentService classFeatureGroupAssignmentService) voidsetModelService(ModelService modelService)
-
Constructor Details
-
ClassificationClassSupercategoriesUnassigningPrepareInterceptor
public ClassificationClassSupercategoriesUnassigningPrepareInterceptor()
-
-
Method Details
-
onPrepare
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ClassificationClassModel>- Parameters:
classificationClass- the model which values has to be preparedctx- theInterceptorContext
-
setClassFeatureGroupAssignmentService
public void setClassFeatureGroupAssignmentService(ClassFeatureGroupAssignmentService classFeatureGroupAssignmentService) -
setModelService
-