Class ConsignmentPackagingInfoPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.warehousing.interceptor.ConsignmentPackagingInfoPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<ConsignmentModel>
public class ConsignmentPackagingInfoPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<ConsignmentModel>
Populate the packaging info with default data when preparing theConsignmentModel.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_DIMENSION_UNITprotected static java.lang.StringDEFAULT_VALUEprotected static java.lang.StringDEFAULT_WEIGHT_UNIT
-
Constructor Summary
Constructors Constructor Description ConsignmentPackagingInfoPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelServicegetModelService()protected TimeServicegetTimeService()voidonPrepare(ConsignmentModel consignment, InterceptorContext context)Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService)voidsetTimeService(TimeService timeService)
-
-
-
Field Detail
-
DEFAULT_DIMENSION_UNIT
protected static final java.lang.String DEFAULT_DIMENSION_UNIT
- See Also:
- Constant Field Values
-
DEFAULT_VALUE
protected static final java.lang.String DEFAULT_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_WEIGHT_UNIT
protected static final java.lang.String DEFAULT_WEIGHT_UNIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
-