Class DefaultAbstractOrderEntryPreparer
- java.lang.Object
-
- de.hybris.platform.order.interceptors.AbstractAttributesModificationAwareInterceptor
-
- de.hybris.platform.order.interceptors.DefaultAbstractOrderEntryPreparer
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
public class DefaultAbstractOrderEntryPreparer extends AbstractAttributesModificationAwareInterceptor implements PrepareInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description protected static intAPPEND_AS_LAST
-
Constructor Summary
Constructors Constructor Description DefaultAbstractOrderEntryPreparer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreateEntryInformation(AbstractOrderEntryModel newEntry, InterceptorContext ctx)protected java.util.Collection<java.lang.String>getAttributesForOrderRecalculation()org.apache.log4j.LoggergetLogger()protected java.lang.ObjectgetModelSource(InterceptorContext ctx, ItemModel model)protected ItemModelgoToConcreteItem(ItemModel item, java.lang.String substring, InterceptorContext ctx)voidonPrepare(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetAttributesForOrderRecalculation(java.util.Collection<java.lang.String> attributesForOrderRecalculation)voidsetConfigurationService(ConfigurationService configurationService)protected voidsetEntryNumberAslast(AbstractOrderEntryModel entryModel, java.util.List<AbstractOrderEntryModel> currentOrderEntries)voidsetTypeService(TypeService typeService)-
Methods inherited from class de.hybris.platform.order.interceptors.AbstractAttributesModificationAwareInterceptor
isAttributeModified, isOneOfAttributesModified
-
-
-
-
Field Detail
-
APPEND_AS_LAST
protected static final int APPEND_AS_LAST
- See Also:
- Constant Field Values
-
-
Method Detail
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
setEntryNumberAslast
protected void setEntryNumberAslast(AbstractOrderEntryModel entryModel, java.util.List<AbstractOrderEntryModel> currentOrderEntries)
-
createEntryInformation
protected java.lang.String createEntryInformation(AbstractOrderEntryModel newEntry, InterceptorContext ctx) throws InterceptorException
- Throws:
InterceptorException
-
goToConcreteItem
protected ItemModel goToConcreteItem(ItemModel item, java.lang.String substring, InterceptorContext ctx) throws InterceptorException
- Throws:
InterceptorException
-
setTypeService
public void setTypeService(TypeService typeService)
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
setAttributesForOrderRecalculation
public void setAttributesForOrderRecalculation(java.util.Collection<java.lang.String> attributesForOrderRecalculation)
-
getAttributesForOrderRecalculation
protected java.util.Collection<java.lang.String> getAttributesForOrderRecalculation()
-
getLogger
public org.apache.log4j.Logger getLogger()
- Specified by:
getLoggerin classAbstractAttributesModificationAwareInterceptor
-
getModelSource
protected java.lang.Object getModelSource(InterceptorContext ctx, ItemModel model)
-
-