Package de.hybris.platform.b2b.listeners
Class AfterSessionUserChangeListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterSessionUserChangeEvent>
-
- de.hybris.platform.b2b.listeners.AfterSessionUserChangeListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
@Deprecated(since="4.4") public class AfterSessionUserChangeListener extends AbstractEventListener<AfterSessionUserChangeEvent>
Deprecated.Since 4.4. Uses JaloSession migration pending fix https://jira.hybris.com/browse/PLA-10932This listener sets up the organization branch & root unit of the currently logged in user in the.SessionContextas well as current currency from the list of available currencies from the list of cost centers for the currently logged in user.
-
-
Constructor Summary
Constructors Constructor Description AfterSessionUserChangeListener()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanexecuteEvent(AfterSessionUserChangeEvent event)Deprecated.protected B2BCostCenterServicegetB2BCostCenterService()Deprecated.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>getB2BUnitService()Deprecated.protected CommonI18NServicegetCommonI18NService()Deprecated.protected ModelServicegetModelService()Deprecated.protected SessiongetSession(JaloSession jaloSession)Deprecated.Since 4.4.protected SessionServicegetSessionService()Deprecated.protected UserServicegetUserService()Deprecated.protected voidonEvent(AfterSessionUserChangeEvent event)Deprecated.This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.protected voidresetCurrency(UserModel user)Deprecated.Sets the the current currency from the list of available currencies from the users cost centers.voidsetB2BCostCenterService(B2BCostCenterService b2bCostCenterService)Deprecated.voidsetB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)Deprecated.voidsetCommonI18NService(CommonI18NService commonI18NService)Deprecated.voidsetModelService(ModelService modelService)Deprecated.voidsetSessionService(SessionService sessionService)Deprecated.voidsetUserService(UserService userService)Deprecated.-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
onEvent
protected void onEvent(AfterSessionUserChangeEvent event)
Deprecated.Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AfterSessionUserChangeEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getSession
@Deprecated(since="4.4") protected Session getSession(JaloSession jaloSession)
Deprecated.Since 4.4. Use SystemService when it becomes availabe from hybrisLooks upSessionviaSessionServiceignoresNullPointerExceptionthown fromSessionService.getSession(String)assuming that system is initializing when the listener got called- Parameters:
jaloSession- A hybris JaloSession- Returns:
- A service layer Session object.
-
executeEvent
protected boolean executeEvent(AfterSessionUserChangeEvent event)
Deprecated.- Parameters:
event-- Returns:
- True if even executed.
-
resetCurrency
protected void resetCurrency(UserModel user)
Deprecated.Sets the the current currency from the list of available currencies from the users cost centers.- Parameters:
user- the session user.
-
getUserService
protected UserService getUserService()
Deprecated.
-
setUserService
public void setUserService(UserService userService)
Deprecated.
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
Deprecated.
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
Deprecated.
-
getB2BCostCenterService
protected B2BCostCenterService getB2BCostCenterService()
Deprecated.
-
setB2BCostCenterService
public void setB2BCostCenterService(B2BCostCenterService b2bCostCenterService)
Deprecated.
-
getB2BUnitService
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2BUnitService()
Deprecated.
-
setB2BUnitService
public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
Deprecated.
-
getModelService
protected ModelService getModelService()
Deprecated.
-
setModelService
public void setModelService(ModelService modelService)
Deprecated.
-
getSessionService
protected SessionService getSessionService()
Deprecated.
-
setSessionService
public void setSessionService(SessionService sessionService)
Deprecated.
-
-