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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateEntryInformation(AbstractOrderEntryModel newEntry, InterceptorContext ctx) protected Collection<String>org.apache.log4j.Loggerprotected ObjectgetModelSource(InterceptorContext ctx, ItemModel model) protected ItemModelgoToConcreteItem(ItemModel item, String substring, InterceptorContext ctx) voidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetAttributesForOrderRecalculation(Collection<String> attributesForOrderRecalculation) voidsetConfigurationService(ConfigurationService configurationService) protected voidsetEntryNumberAslast(AbstractOrderEntryModel entryModel, List<AbstractOrderEntryModel> currentOrderEntries) voidsetTypeService(TypeService typeService) Methods inherited from class de.hybris.platform.order.interceptors.AbstractAttributesModificationAwareInterceptor
isAttributeModified, isOneOfAttributesModified
-
Field Details
-
APPEND_AS_LAST
protected static final int APPEND_AS_LAST- See Also:
-
-
Constructor Details
-
DefaultAbstractOrderEntryPreparer
public DefaultAbstractOrderEntryPreparer()
-
-
Method Details
-
onPrepare
Description 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, List<AbstractOrderEntryModel> currentOrderEntries) -
createEntryInformation
protected String createEntryInformation(AbstractOrderEntryModel newEntry, InterceptorContext ctx) throws InterceptorException - Throws:
InterceptorException
-
goToConcreteItem
protected ItemModel goToConcreteItem(ItemModel item, String substring, InterceptorContext ctx) throws InterceptorException - Throws:
InterceptorException
-
setTypeService
-
setConfigurationService
-
getAttributesForOrderRecalculation
-
setAttributesForOrderRecalculation
-
getLogger
public org.apache.log4j.Logger getLogger()- Specified by:
getLoggerin classAbstractAttributesModificationAwareInterceptor
-
getModelSource
-