Class 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 Details

    • AfterSessionCreationListener

      public AfterSessionCreationListener()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • onEvent

      protected void onEvent(AfterSessionCreationEvent event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: AbstractEventListener
      This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
      Specified by:
      onEvent in class AbstractEventListener<AfterSessionCreationEvent>
      Parameters:
      event - the event to be processed
      See Also:
      • ApplicationListener.onApplicationEvent(ApplicationEvent)
    • getSession

      @Deprecated(since="4.4", forRemoval=true) protected Session getSession(JaloSession jaloSession)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4. Use SystemService when it becomes availabe from hybris
      Looks up Session via SessionService ignores NullPointerException thown from SessionService.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, for removal: This API element is subject to removal in a future version.
      Parameters:
      event -
      Returns:
      True if even executed.
    • getUserService

      protected UserService getUserService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUserService

      public void setUserService(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUnitService

      protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2BUnitService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BUnitService

      public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSessionService

      protected SessionService getSessionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSessionService

      public void setSessionService(SessionService sessionService)
      Deprecated, for removal: This API element is subject to removal in a future version.