public class AsConfigurationPartOfCleanupInterceptor extends AbstractAsInterceptor implements PrepareInterceptor<AbstractAsConfigurationModel>
| Constructor and Description |
|---|
AsConfigurationPartOfCleanupInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<ItemModel> |
collectItemsToRemove(java.lang.Object originalValue,
java.lang.Object currentValue) |
protected java.lang.Object |
getAttributeValue(AbstractAsConfigurationModel configuration,
java.lang.String attribute) |
protected java.lang.Object |
getAttributeValue(AbstractAsConfigurationModel configuration,
java.lang.String attribute,
java.util.Locale locale) |
protected java.lang.Object |
getOriginalValue(AbstractAsConfigurationModel configuration,
java.lang.String attribute) |
protected java.lang.Object |
getOriginalValue(AbstractAsConfigurationModel configuration,
java.lang.String attribute,
java.util.Locale locale) |
TypeService |
getTypeService() |
protected java.util.Set<java.lang.String> |
getWritablePartOfAttributes(AbstractAsConfigurationModel configuration,
InterceptorContext context) |
void |
onPrepare(AbstractAsConfigurationModel configuration,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
protected void |
processPartOfAttribute(AbstractAsConfigurationModel configuration,
java.lang.String partOfAttribute,
InterceptorContext context) |
protected void |
removeItems(AbstractAsConfigurationModel configuration,
java.lang.Object currentValue,
java.lang.Object originalValue,
InterceptorContext context) |
void |
setTypeService(TypeService typeService) |
protected boolean |
shouldProcessConfiguration(AbstractAsConfigurationModel configuration,
InterceptorContext context) |
decorateIdentifier, generateItemIdentifier, generateUid, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, getSearchProviderFactory, markItemAsModified, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsUidGenerator, setModelService, setSearchProviderFactorypublic AsConfigurationPartOfCleanupInterceptor()
public void onPrepare(AbstractAsConfigurationModel configuration, InterceptorContext context)
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<AbstractAsConfigurationModel>configuration - the model which values has to be preparedcontext - the InterceptorContextprotected boolean shouldProcessConfiguration(AbstractAsConfigurationModel configuration, InterceptorContext context)
protected java.util.Set<java.lang.String> getWritablePartOfAttributes(AbstractAsConfigurationModel configuration, InterceptorContext context)
protected void processPartOfAttribute(AbstractAsConfigurationModel configuration, java.lang.String partOfAttribute, InterceptorContext context)
protected void removeItems(AbstractAsConfigurationModel configuration, java.lang.Object currentValue, java.lang.Object originalValue, InterceptorContext context)
protected java.util.Collection<ItemModel> collectItemsToRemove(java.lang.Object originalValue, java.lang.Object currentValue)
protected java.lang.Object getOriginalValue(AbstractAsConfigurationModel configuration, java.lang.String attribute)
protected java.lang.Object getOriginalValue(AbstractAsConfigurationModel configuration, java.lang.String attribute, java.util.Locale locale)
protected java.lang.Object getAttributeValue(AbstractAsConfigurationModel configuration, java.lang.String attribute)
protected java.lang.Object getAttributeValue(AbstractAsConfigurationModel configuration, java.lang.String attribute, java.util.Locale locale)
public TypeService getTypeService()
public void setTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.