public class AsSearchConfigurationInterceptor extends AbstractAsInterceptor implements PrepareInterceptor<AbstractAsSearchConfigurationModel>, ValidateInterceptor<AbstractAsSearchConfigurationModel>
AbstractAsSearchConfigurationModel.CATALOG_VERSION_ATTRIBUTE, NULL_IDENTIFIER, SEARCH_CONFIGURATION_ATTRIBUTE, SEARCH_PROFILE_ATTRIBUTE, SEPARATOR| Constructor and Description |
|---|
AsSearchConfigurationInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onPrepare(AbstractAsSearchConfigurationModel searchConfiguration,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
void |
onValidate(AbstractAsSearchConfigurationModel searchConfiguration,
InterceptorContext interceptorContext)
Called in the
modelService.saveAll() method. |
decorateIdentifier, generateItemIdentifier, generateUid, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, getSearchProviderFactory, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsUidGenerator, setModelService, setSearchProviderFactorypublic void onPrepare(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<AbstractAsSearchConfigurationModel>searchConfiguration - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationpublic void onValidate(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext interceptorContext) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<AbstractAsSearchConfigurationModel>searchConfiguration - the model which values has to be validatedinterceptorContext - the InterceptorContextInterceptorException - if any values of the model are not valid.Copyright © 2017 SAP SE. All Rights Reserved.