Class RemoveSessionLanguageInterceptor
java.lang.Object
de.hybris.platform.servicelayer.i18n.interceptors.RemoveSessionLanguageInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
Interceptor handles remove the language which is the session current language. In such case
InterceptorException is thrown. Current language for session is retrieved by
SessionService.getAttribute(String) with key "language".-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(Object model, InterceptorContext ctx) Called in themodelService.removeAll()method.voidsetSessionService(SessionService sessionService)
-
Constructor Details
-
RemoveSessionLanguageInterceptor
public RemoveSessionLanguageInterceptor()
-
-
Method Details
-
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
-