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.SessionContext
as 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 boolean
executeEvent(AfterSessionUserChangeEvent event)
Deprecated.protected B2BCostCenterService
getB2BCostCenterService()
Deprecated.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>
getB2BUnitService()
Deprecated.protected CommonI18NService
getCommonI18NService()
Deprecated.protected ModelService
getModelService()
Deprecated.protected Session
getSession(JaloSession jaloSession)
Deprecated.Since 4.4.protected SessionService
getSessionService()
Deprecated.protected UserService
getUserService()
Deprecated.protected void
onEvent(AfterSessionUserChangeEvent event)
Deprecated.This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)
and processes the given event.protected void
resetCurrency(UserModel user)
Deprecated.Sets the the current currency from the list of available currencies from the users cost centers.void
setB2BCostCenterService(B2BCostCenterService b2bCostCenterService)
Deprecated.void
setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
Deprecated.void
setCommonI18NService(CommonI18NService commonI18NService)
Deprecated.void
setModelService(ModelService modelService)
Deprecated.void
setSessionService(SessionService sessionService)
Deprecated.void
setUserService(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:AbstractEventListener
This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)
and processes the given event.- Specified by:
onEvent
in 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 upSession
viaSessionService
ignoresNullPointerException
thown 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.
-
-