Class ClassificationClassAttributeAssignmentRemovalPrepareInterceptor
java.lang.Object
com.hybris.classificationgroupsservices.interceptors.classificationclass.ClassificationClassAttributeAssignmentRemovalPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ClassificationClassModel>
public class ClassificationClassAttributeAssignmentRemovalPrepareInterceptor
extends Object
implements PrepareInterceptor<ClassificationClassModel>
Invokes when user removes
ClassAttributeAssignmentModels from the ClassificationClassModel. Removes
ClassFeatureGroupAssignmentModel 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 classificationClassModel, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetClassFeatureGroupAssignmentService(ClassFeatureGroupAssignmentService classFeatureGroupAssignmentService) voidsetModelService(ModelService modelService)
-
Constructor Details
-
ClassificationClassAttributeAssignmentRemovalPrepareInterceptor
public ClassificationClassAttributeAssignmentRemovalPrepareInterceptor()
-
-
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:
classificationClassModel- the model which values has to be preparedctx- theInterceptorContext
-
setModelService
-
setClassFeatureGroupAssignmentService
public void setClassFeatureGroupAssignmentService(ClassFeatureGroupAssignmentService classFeatureGroupAssignmentService)
-