Class FeatureOfReferenceTypePrepareInterceptor
java.lang.Object
de.hybris.platform.platformbackoffice.interceptors.FeatureOfReferenceTypePrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ClassAttributeAssignmentModel>
public class FeatureOfReferenceTypePrepareInterceptor
extends Object
implements PrepareInterceptor<ClassAttributeAssignmentModel>
Removes "referenceType" from
ClassAttributeAssignmentModel if its
"attributeType" changed from
Reference to non Reference type-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(ClassAttributeAssignmentModel assignment, InterceptorContext ctx) Called in themodelService.saveAll()method.protected boolean
-
Constructor Details
-
FeatureOfReferenceTypePrepareInterceptor
public FeatureOfReferenceTypePrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(ClassAttributeAssignmentModel assignment, InterceptorContext ctx) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ClassAttributeAssignmentModel>- Parameters:
assignment- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
wasFeatureTypeChangedFromReferenceToNonReference
protected boolean wasFeatureTypeChangedFromReferenceToNonReference(ClassAttributeAssignmentModel assignment)
-