Class RemoveLastLanguageInterceptor
java.lang.Object
de.hybris.platform.servicelayer.i18n.interceptors.RemoveLastLanguageInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
Interceptor preventing before removing the last language in the tenant scope. Search for a language is performed
without restrictions.
TODO Should there be all restrictions turned off.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(Object model, InterceptorContext ctx) Called in themodelService.removeAll()method.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetSessionService(SessionService sessionService)
-
Constructor Details
-
RemoveLastLanguageInterceptor
public RemoveLastLanguageInterceptor()
-
-
Method Details
-
setFlexibleSearchService
- Parameters:
flexibleSearchService- the flexibleSearchService to set
-
setSessionService
- Parameters:
sessionService- the sessionService to set
-
onRemove
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor- Parameters:
model- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-