public class AsConfigurationPartOfCleanupInterceptor extends AbstractAsInterceptor implements PrepareInterceptor
CATALOG_VERSION_ATTRIBUTE, NULL_IDENTIFIER, SEARCH_CONFIGURATION_ATTRIBUTE, SEARCH_PROFILE_ATTRIBUTE, SEPARATOR| Constructor and Description |
|---|
AsConfigurationPartOfCleanupInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection |
collectItemsToRemove(java.lang.Object originalValue,
java.lang.Object currentValue) |
protected void |
forceRemove(java.lang.Object currentValue,
java.lang.Object originalValue) |
protected java.lang.Object |
getAttributeValue(InterceptorContext ctx,
AbstractItemModel model,
java.lang.String qualifier) |
protected java.lang.Object |
getAttributeValue(InterceptorContext ctx,
AbstractItemModel model,
java.lang.String qualifier,
java.util.Locale loc) |
protected java.lang.Object |
getOriginalValue(AbstractItemModel model,
java.lang.String partOfQualifier) |
protected java.lang.Object |
getOriginalValue(AbstractItemModel model,
java.lang.String partOfQualifier,
java.util.Locale loc) |
TypeService |
getTypeService() |
protected java.util.Set<java.lang.String> |
getWritablePartOfAttributes(InterceptorContext ctx,
java.lang.String itemType) |
protected boolean |
isModifiedItem(java.lang.Object object,
InterceptorContext ctx) |
void |
onPrepare(java.lang.Object object,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
protected void |
processPartOfVariables(InterceptorContext ctx,
AbstractItemModel model,
java.lang.String partOfAttributeQualifier) |
void |
setTypeService(TypeService typeService) |
decorateIdentifier, generateItemIdentifier, generateUid, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, getSearchProviderFactory, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsUidGenerator, setModelService, setSearchProviderFactorypublic AsConfigurationPartOfCleanupInterceptor()
public void onPrepare(java.lang.Object object,
InterceptorContext ctx)
throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptorobject - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationprotected void processPartOfVariables(InterceptorContext ctx, AbstractItemModel model, java.lang.String partOfAttributeQualifier)
protected void forceRemove(java.lang.Object currentValue,
java.lang.Object originalValue)
protected boolean isModifiedItem(java.lang.Object object,
InterceptorContext ctx)
protected java.util.Set<java.lang.String> getWritablePartOfAttributes(InterceptorContext ctx, java.lang.String itemType)
protected java.util.Collection collectItemsToRemove(java.lang.Object originalValue,
java.lang.Object currentValue)
protected java.lang.Object getOriginalValue(AbstractItemModel model, java.lang.String partOfQualifier)
protected java.lang.Object getOriginalValue(AbstractItemModel model, java.lang.String partOfQualifier, java.util.Locale loc)
protected java.lang.Object getAttributeValue(InterceptorContext ctx, AbstractItemModel model, java.lang.String qualifier)
protected java.lang.Object getAttributeValue(InterceptorContext ctx, AbstractItemModel model, java.lang.String qualifier, java.util.Locale loc)
public TypeService getTypeService()
public void setTypeService(TypeService typeService)
Copyright © 2018 SAP SE. All Rights Reserved.