public class AsFacetValueConfigurationInterceptor extends AbstractAsInterceptor implements PrepareInterceptor<AbstractAsFacetValueConfigurationModel>, ValidateInterceptor<AbstractAsFacetValueConfigurationModel>, RemoveInterceptor<AbstractAsFacetValueConfigurationModel>
AbstractAsFacetConfigurationModel.| Constructor and Description |
|---|
AsFacetValueConfigurationInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
generateUniqueIdx(AbstractAsFacetValueConfigurationModel facetValueConfiguration,
InterceptorContext context) |
void |
onPrepare(AbstractAsFacetValueConfigurationModel facetValueConfiguration,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
void |
onRemove(AbstractAsFacetValueConfigurationModel facetValueConfiguration,
InterceptorContext context)
Called in the
modelService.removeAll() method. |
void |
onValidate(AbstractAsFacetValueConfigurationModel facetValueConfiguration,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
protected AbstractAsFacetConfigurationModel |
resolveAndValidateFacetConfiguration(ItemModel model) |
protected AbstractAsFacetConfigurationModel |
resolveFacetConfiguration(ItemModel model) |
decorateIdentifier, generateItemIdentifier, generateUid, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, getSearchProviderFactory, markItemAsModified, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsUidGenerator, setModelService, setSearchProviderFactorypublic AsFacetValueConfigurationInterceptor()
public void onPrepare(AbstractAsFacetValueConfigurationModel facetValueConfiguration, InterceptorContext context) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<AbstractAsFacetValueConfigurationModel>facetValueConfiguration - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationprotected java.lang.String generateUniqueIdx(AbstractAsFacetValueConfigurationModel facetValueConfiguration, InterceptorContext context)
public void onValidate(AbstractAsFacetValueConfigurationModel facetValueConfiguration, InterceptorContext context) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<AbstractAsFacetValueConfigurationModel>facetValueConfiguration - the model which values has to be validatedcontext - the InterceptorContextInterceptorException - if any values of the model are not valid.public void onRemove(AbstractAsFacetValueConfigurationModel facetValueConfiguration, InterceptorContext context) throws InterceptorException
RemoveInterceptormodelService.removeAll() method.onRemove in interface RemoveInterceptor<AbstractAsFacetValueConfigurationModel>facetValueConfiguration - the model which should be removedcontext - the InterceptorContextInterceptorException - if the remove reports an errorprotected AbstractAsFacetConfigurationModel resolveFacetConfiguration(ItemModel model)
protected AbstractAsFacetConfigurationModel resolveAndValidateFacetConfiguration(ItemModel model) throws InterceptorException
InterceptorExceptionCopyright © 2018 SAP SE. All Rights Reserved.