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:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterSessionCreationEvent>
@Deprecated(since="4.4") public class AfterSessionCreationListener extends AbstractEventListener<AfterSessionCreationEvent>
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
-
-
Constructor Summary
Constructors Constructor Description AfterSessionCreationListener()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanexecuteEvent(AfterSessionCreationEvent event)Deprecated.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>getB2BUnitService()Deprecated.protected SessiongetSession(JaloSession jaloSession)Deprecated.Since 4.4.protected SessionServicegetSessionService()Deprecated.protected UserServicegetUserService()Deprecated.protected voidonEvent(AfterSessionCreationEvent event)Deprecated.This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)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(AfterSessionCreationEvent event)
Deprecated.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(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(AfterSessionCreationEvent event)
Deprecated.- Parameters:
event-- Returns:
- True if even executed.
-
getUserService
protected UserService getUserService()
Deprecated.
-
setUserService
public void setUserService(UserService userService)
Deprecated.
-
getB2BUnitService
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2BUnitService()
Deprecated.
-
setB2BUnitService
public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
Deprecated.
-
getSessionService
protected SessionService getSessionService()
Deprecated.
-
setSessionService
public void setSessionService(SessionService sessionService)
Deprecated.
-
-