Class RemoveLastLanguageInterceptor
- java.lang.Object
-
- de.hybris.platform.servicelayer.i18n.interceptors.RemoveLastLanguageInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
public class RemoveLastLanguageInterceptor extends java.lang.Object implements 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 Constructor Description RemoveLastLanguageInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRemove(java.lang.Object model, InterceptorContext ctx)Called in themodelService.removeAll()method.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetSessionService(SessionService sessionService)
-
-
-
Method Detail
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
- Parameters:
flexibleSearchService- the flexibleSearchService to set
-
setSessionService
public void setSessionService(SessionService sessionService)
- Parameters:
sessionService- the sessionService to set
-
onRemove
public void onRemove(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
-
-