Class RemoveSessionLanguageInterceptor
- java.lang.Object
-
- de.hybris.platform.servicelayer.i18n.interceptors.RemoveSessionLanguageInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
public class RemoveSessionLanguageInterceptor extends java.lang.Object implements RemoveInterceptor
Interceptor handles remove the language which is the session current language. In such caseInterceptorExceptionis thrown. Current language for session is retrieved bySessionService.getAttribute(String)with key "language".
-
-
Constructor Summary
Constructors Constructor Description RemoveSessionLanguageInterceptor()
-
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.voidsetSessionService(SessionService sessionService)
-
-
-
Method Detail
-
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
-
-