@Deprecated public class AfterSessionUserChangeListener extends AbstractEventListener<AfterSessionUserChangeEvent>
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 and Description |
|---|
AfterSessionUserChangeListener()
Deprecated.
|
| Modifier and Type | Method and 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.
Use SystemService when it becomes availabe from hybris
|
protected SessionService |
getSessionService()
Deprecated.
|
protected UserService |
getUserService()
Deprecated.
|
protected void |
onEvent(AfterSessionUserChangeEvent event)
Deprecated.
This method is called by
AbstractEventListener#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.
|
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantServicepublic AfterSessionUserChangeListener()
protected void onEvent(AfterSessionUserChangeEvent event)
AbstractEventListenerAbstractEventListener#onApplicationEvent(ApplicationEvent) and processes the
given event.onEvent in class AbstractEventListener<AfterSessionUserChangeEvent>event - the event to be processed#onApplicationEvent(ApplicationEvent)@Deprecated protected Session getSession(JaloSession jaloSession)
Session via SessionService ignores NullPointerException thown from
SessionService.getSession(String) assuming that system is initializing when the listener got calledjaloSession - A hybris JaloSessionprotected boolean executeEvent(AfterSessionUserChangeEvent event)
event - protected void resetCurrency(UserModel user)
user - the session user.protected UserService getUserService()
public void setUserService(UserService userService)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected B2BCostCenterService getB2BCostCenterService()
public void setB2BCostCenterService(B2BCostCenterService b2bCostCenterService)
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2BUnitService()
public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2017 SAP SE. All Rights Reserved.