public class DefaultAbstractOrderEntryPreparer extends AbstractAttributesModificationAwareInterceptor implements PrepareInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected static int |
APPEND_AS_LAST |
| Constructor and Description |
|---|
DefaultAbstractOrderEntryPreparer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createEntryInformation(AbstractOrderEntryModel newEntry,
InterceptorContext ctx) |
protected java.util.Collection<java.lang.String> |
getAttributesForOrderRecalculation() |
Logger |
getLogger() |
protected java.lang.Object |
getModelSource(InterceptorContext ctx,
ItemModel model) |
protected ItemModel |
goToConcreteItem(ItemModel item,
java.lang.String substring,
InterceptorContext ctx) |
void |
onPrepare(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setAttributesForOrderRecalculation(java.util.Collection<java.lang.String> attributesForOrderRecalculation) |
void |
setConfigurationService(ConfigurationService configurationService) |
protected void |
setEntryNumberAslast(AbstractOrderEntryModel entryModel,
java.util.List<AbstractOrderEntryModel> currentOrderEntries) |
void |
setTypeService(TypeService typeService) |
isAttributeModified, isOneOfAttributesModifiedprotected static final int APPEND_AS_LAST
public void onPrepare(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptormodel - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationprotected void setEntryNumberAslast(AbstractOrderEntryModel entryModel, java.util.List<AbstractOrderEntryModel> currentOrderEntries)
protected java.lang.String createEntryInformation(AbstractOrderEntryModel newEntry, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionprotected ItemModel goToConcreteItem(ItemModel item, java.lang.String substring, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionpublic void setTypeService(TypeService typeService)
public void setConfigurationService(ConfigurationService configurationService)
public void setAttributesForOrderRecalculation(java.util.Collection<java.lang.String> attributesForOrderRecalculation)
protected java.util.Collection<java.lang.String> getAttributesForOrderRecalculation()
public Logger getLogger()
getLogger in class AbstractAttributesModificationAwareInterceptorprotected java.lang.Object getModelSource(InterceptorContext ctx, ItemModel model)
Copyright © 2018 SAP SE. All Rights Reserved.