Class ConsignmentPackagingInfoPrepareInterceptor
java.lang.Object
de.hybris.platform.warehousing.interceptor.ConsignmentPackagingInfoPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ConsignmentModel>
public class ConsignmentPackagingInfoPrepareInterceptor
extends Object
implements PrepareInterceptor<ConsignmentModel>
Populate the packaging info with default data when preparing the
ConsignmentModel.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServiceprotected TimeServicevoidonPrepare(ConsignmentModel consignment, InterceptorContext context) Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService) voidsetTimeService(TimeService timeService)
-
Field Details
-
DEFAULT_DIMENSION_UNIT
- See Also:
-
DEFAULT_VALUE
- See Also:
-
DEFAULT_WEIGHT_UNIT
- See Also:
-
-
Constructor Details
-
ConsignmentPackagingInfoPrepareInterceptor
public ConsignmentPackagingInfoPrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(ConsignmentModel consignment, InterceptorContext context) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<ConsignmentModel>- Parameters:
consignment- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getModelService
-
setModelService
-
getTimeService
-
setTimeService
-