Class DefaultQuotePrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.order.interceptors.DefaultQuotePrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<QuoteModel>
public class DefaultQuotePrepareInterceptor extends java.lang.Object implements PrepareInterceptor<QuoteModel>
Sets default values for the following attributes of newQuoteModelinstances:
-
-
Constructor Summary
Constructors Constructor Description DefaultQuotePrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuoteStategetInitialState()protected java.lang.IntegergetInitialVersion()protected KeyGeneratorgetKeyGenerator()protected java.lang.StringgetLocalizedTypeName()voidonPrepare(QuoteModel quote, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetInitialState(QuoteState initialState)voidsetInitialVersion(java.lang.Integer initialVersion)voidsetKeyGenerator(KeyGenerator keyGenerator)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(QuoteModel quote, InterceptorContext ctx) throws InterceptorException
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
protected java.lang.String getLocalizedTypeName()
-
getInitialVersion
protected java.lang.Integer getInitialVersion()
-
setInitialVersion
public void setInitialVersion(java.lang.Integer initialVersion)
-
getInitialState
protected QuoteState getInitialState()
-
setInitialState
public void setInitialState(QuoteState initialState)
-
getKeyGenerator
protected KeyGenerator getKeyGenerator()
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
-
-