Package de.hybris.platform.b2b.listeners
Class AfterSessionCreationListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterSessionCreationEvent>
de.hybris.platform.b2b.listeners.AfterSessionCreationListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterSessionCreationEvent>
@Deprecated(since="4.4",
forRemoval=true)
public class AfterSessionCreationListener
extends AbstractEventListener<AfterSessionCreationEvent>
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-
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 B2BUnitService<B2BUnitModel,B2BCustomerModel> Deprecated, 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 voidonEvent(AfterSessionCreationEvent event) Deprecated, 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.voidsetB2BUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) 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
-
AfterSessionCreationListener
public AfterSessionCreationListener()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<AfterSessionCreationEvent>- 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.
-
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. -
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. -
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.
-