Class DefaultQuotePrepareInterceptor
java.lang.Object
de.hybris.platform.order.interceptors.DefaultQuotePrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<QuoteModel>
public class DefaultQuotePrepareInterceptor
extends Object
implements PrepareInterceptor<QuoteModel>
Sets default values for the following attributes of new
QuoteModel instances:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QuoteStateprotected Integerprotected KeyGeneratorprotected StringvoidonPrepare(QuoteModel quote, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetInitialState(QuoteState initialState) voidsetInitialVersion(Integer initialVersion) voidsetKeyGenerator(KeyGenerator keyGenerator)
-
Constructor Details
-
DefaultQuotePrepareInterceptor
public DefaultQuotePrepareInterceptor()
-
-
Method Details
-
onPrepare
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<QuoteModel>- Parameters:
quote- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getLocalizedTypeName
-
getInitialVersion
-
setInitialVersion
-
getInitialState
-
setInitialState
-
getKeyGenerator
-
setKeyGenerator
-