public class AsBoostRuleInterceptor extends AbstractAsInterceptor implements PrepareInterceptor<AsBoostRuleModel>, ValidateInterceptor<AsBoostRuleModel>
AsBoostRuleModel.CATALOG_VERSION_ATTRIBUTE, NULL_IDENTIFIER, SEARCH_CONFIGURATION_ATTRIBUTE, SEARCH_PROFILE_ATTRIBUTE, SEPARATOR| Constructor and Description |
|---|
AsBoostRuleInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onPrepare(AsBoostRuleModel boostRule,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
void |
onValidate(AsBoostRuleModel boostRule,
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(AsBoostRuleModel boostRule, InterceptorContext context) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<AsBoostRuleModel>boostRule - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationpublic void onValidate(AsBoostRuleModel boostRule, InterceptorContext interceptorContext) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<AsBoostRuleModel>boostRule - 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.