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:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
@Deprecated(since="4.4",
forRemoval=true)
public class AfterSessionUserChangeListener
extends AbstractEventListener<AfterSessionUserChangeEvent>
Deprecated, for removal: This API element is subject to removal in a future version.
Since 4.4. Uses JaloSession migration pending fix https://jira.hybris.com/browse/PLA-10932
This 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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected B2BCostCenterServiceDeprecated, for removal: This API element is subject to removal in a future version.protected B2BUnitService<B2BUnitModel,B2BCustomerModel> Deprecated, for removal: This API element is subject to removal in a future version.protected CommonI18NServiceDeprecated, for removal: This API element is subject to removal in a future version.protected ModelServiceDeprecated, for removal: This API element is subject to removal in a future version.protected SessiongetSession(JaloSession jaloSession) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.protected SessionServiceDeprecated, for removal: This API element is subject to removal in a future version.protected UserServiceDeprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.protected voidresetCurrency(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.Sets the the current currency from the list of available currencies from the users cost centers.voidsetB2BCostCenterService(B2BCostCenterService b2bCostCenterService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCommonI18NService(CommonI18NService commonI18NService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetModelService(ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSessionService(SessionService sessionService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserService(UserService userService) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
AfterSessionUserChangeListener
public AfterSessionUserChangeListener()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
onEvent
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
event-- Returns:
- True if even executed.
-
resetCurrency
Deprecated, for removal: This API element is subject to removal in a future version.Sets the the current currency from the list of available currencies from the users cost centers.- Parameters:
user- the session user.
-
getUserService
Deprecated, for removal: This API element is subject to removal in a future version. -
setUserService
Deprecated, for removal: This API element is subject to removal in a future version. -
getCommonI18NService
Deprecated, for removal: This API element is subject to removal in a future version. -
setCommonI18NService
Deprecated, for removal: This API element is subject to removal in a future version. -
getB2BCostCenterService
Deprecated, for removal: This API element is subject to removal in a future version. -
setB2BCostCenterService
Deprecated, for removal: This API element is subject to removal in a future version. -
getB2BUnitService
Deprecated, for removal: This API element is subject to removal in a future version. -
setB2BUnitService
Deprecated, for removal: This API element is subject to removal in a future version. -
getModelService
Deprecated, for removal: This API element is subject to removal in a future version. -
setModelService
Deprecated, for removal: This API element is subject to removal in a future version. -
getSessionService
Deprecated, for removal: This API element is subject to removal in a future version. -
setSessionService
Deprecated, for removal: This API element is subject to removal in a future version.
-