Class AsSortExpressionInterceptor
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
-
- de.hybris.platform.adaptivesearch.model.interceptors.AsSortExpressionInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AsSortExpressionModel>,RemoveInterceptor<AsSortExpressionModel>,ValidateInterceptor<AsSortExpressionModel>
public class AsSortExpressionInterceptor extends AbstractAsInterceptor implements PrepareInterceptor<AsSortExpressionModel>, ValidateInterceptor<AsSortExpressionModel>, RemoveInterceptor<AsSortExpressionModel>
Interceptor forAsSortExpressionModel.
-
-
Constructor Summary
Constructors Constructor Description AsSortExpressionInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgenerateUniqueIdx(AsSortExpressionModel sortExpression, InterceptorContext context)voidonPrepare(AsSortExpressionModel sortExpression, InterceptorContext context)Called in themodelService.saveAll()method.voidonRemove(AsSortExpressionModel sortExpression, InterceptorContext context)Called in themodelService.removeAll()method.voidonValidate(AsSortExpressionModel sortExpression, InterceptorContext context)Called in themodelService.saveAll()method.protected AbstractAsSortConfigurationModelresolveAndValidateSortConfiguration(ItemModel model)protected AbstractAsSortConfigurationModelresolveSortConfiguration(ItemModel model)-
Methods inherited from class de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
decorateIdentifier, generateItemIdentifier, generateUid, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, getSearchProviderFactory, markItemAsModified, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsUidGenerator, setModelService, setSearchProviderFactory
-
-
-
-
Method Detail
-
onPrepare
public void onPrepare(AsSortExpressionModel sortExpression, InterceptorContext context) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AsSortExpressionModel>- Parameters:
sortExpression- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
generateUniqueIdx
protected java.lang.String generateUniqueIdx(AsSortExpressionModel sortExpression, InterceptorContext context)
-
onValidate
public void onValidate(AsSortExpressionModel sortExpression, InterceptorContext context) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AsSortExpressionModel>- Parameters:
sortExpression- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
public void onRemove(AsSortExpressionModel sortExpression, InterceptorContext context) throws InterceptorException
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<AsSortExpressionModel>- Parameters:
sortExpression- the model which should be removedcontext- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
resolveSortConfiguration
protected AbstractAsSortConfigurationModel resolveSortConfiguration(ItemModel model)
-
resolveAndValidateSortConfiguration
protected AbstractAsSortConfigurationModel resolveAndValidateSortConfiguration(ItemModel model) throws InterceptorException
- Throws:
InterceptorException
-
-