public class ConsignmentPackagingInfoPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<ConsignmentModel>
ConsignmentModel.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_DIMENSION_UNIT |
protected static java.lang.String |
DEFAULT_VALUE |
protected static java.lang.String |
DEFAULT_WEIGHT_UNIT |
| Constructor and Description |
|---|
ConsignmentPackagingInfoPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected ModelService |
getModelService() |
protected TimeService |
getTimeService() |
void |
onPrepare(ConsignmentModel consignment,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
void |
setModelService(ModelService modelService) |
void |
setTimeService(TimeService timeService) |
protected static final java.lang.String DEFAULT_DIMENSION_UNIT
protected static final java.lang.String DEFAULT_VALUE
protected static final java.lang.String DEFAULT_WEIGHT_UNIT
public ConsignmentPackagingInfoPrepareInterceptor()
public void onPrepare(ConsignmentModel consignment, InterceptorContext context) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<ConsignmentModel>consignment - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationprotected ModelService getModelService()
public void setModelService(ModelService modelService)
protected TimeService getTimeService()
public void setTimeService(TimeService timeService)
Copyright © 2018 SAP SE. All Rights Reserved.